TCP/IP Programming Manual
STRING .EXT p_name;
STRING .EXT p_aliases(pptrs);
INT(32) p_proto;
END;
p_name
points to the official name of the protocol.
p_aliases
points to an array of null-terminated pointers to various aliases for the protocol.
p_proto
is the protocol number.
rtentry
The route entry structure is used when adding or deleting routes. It is defined in the route.h
header file. NonStop TCP/IPv6 and NonStop TCP/IPv6 distinguish between routes to hosts and
routes to networks. When available, routes to hosts are preferred.
The interface to be used for each route is inferred from the gateway address supplied when the
route is entered. Routes that forward packets through gateways are marked so output routines can
determine that the packets are routed through a gateway, rather than directly to the destination
host.
C Declaration
#include <route.h>
#define RT_MAXNAMESIZ 12
struct rtentry {
unsigned long rt_hash;
struct sockaddr rt_dst;
struct sockaddr rt_gateway;
short rt_flags;
short rt_refcnt;
unsigned long rt_use;
struct ifnet *rt_ifp;
#ifdef __TANDEM
double rt_resettime;
unsigned char rt_name[RT_MAXNAMESIZ];
ushort context_val;
#endif /* __TANDEM */
};
TAL Declaration
?NOLIST, SOURCE SOCKDEFT
STRUCT rtentry (*);
BEGIN
INT(32) rt_hash;
struct rt_dst (sockaddr);
struct rt_gateway (sockaddr);
INT rt_flags;
INT rt_refcnt;
INT(32) rt_use;
INT(32) .rt_ifp (ifnet);
REAL(64) rt_resettime;
STRING rt_name[0:RT_MAXNAMESIZ-1];
END;
rt_hash
is not used.
74 Data Structures