route.7p (2010 09)

r
route(7P) route(7P)
table.
Message types RTM_CHANGE and RTM_LOCK are not supported on HP-UX. If a user process issues
these messages, [EOPNOTSUPP] error will be returned.
Message Structure
Messages are formed by a message header followed by a small number of socket address structures.
What message header to use depends on the message type. The RTM_IFINFO messages use the
if_msghdr header. The RTM_NEWADDR and RTM_DELADDR messages use the
ifa_msghdr
header. All other message types use the rt_msghdr
header.
The
rt_msghdr structure contains the following members:
uint16_t rtm_msglen; /* to skip over unrecognized messages */
uint8_t rtm_version; /* future binary compatibility */
uint8_t rtm_type; /* message type */
uint16_t rtm_index; /* index for associated ifp */
int32_t rtm_flags; /* flags, incl. kern & message,
* e.g. DONE */
int32_t rtm_addrs; /* bitmask identifying sockaddrs in
* the message */
pid_t rtm_pid; /* identify sender */
int32_t rtm_seq; /* for sender to identify action */
int32_t rtm_errno; /* error indicator */
int32_t rtm_use; /* from rtentry */
uint32_t rtm_inits; /* which metrics we are initializing */
struct rt_metrics rtm_rmx; /* metrics themselves */
The
if_msghdr structure contains the following members:
uint16_t ifm_msglen; /* to skip over unrecognized messages */
uint8_t ifm_version; /* future binary compatibility */
uint8_t ifm_type; /* message type */
int32_t ifm_addrs; /* bitmask identifying sockaddrs in
* the message */
int32_t ifm_flags; /* value of if_flags */
uint16_t ifm_index; /* index for associated ifp */
struct if_data ifm_data; /* statistics and other data about
* interface */
The
ifa_msghdr structure contains the following members:
uint16_t ifam_msglen; /* to skip over unrecognized messages */
uint8_t ifam_version; /* future binary compatibility */
uint8_t ifam_type; /* message type */
int32_t ifam_addrs; /* bitmask identifying sockaddrs in
* the message */
int32_t ifam_flags; /* value of ifa_flags */
uint16_t ifam_index; /* index for associated ifp */
int32_t ifam_metric; /* value of ifa_metric */
To determine retransmission behavior, reliable protocols use the
rt_metrics structure included in the
rt_msghdr message header. The rt_metrics structure contains the following members:
uint32_t rmx_locks; /* Kernel must leave these values alone */
uint32_t rmx_mtu; /* MTU for this path */
uint32_t rmx_hopcount; /* max hops expected */
uint32_t rmx_expire; /* lifetime for route, e.g. redirect */
uint32_t rmx_recvpipe; /* inbound delay-bandwidth product */
uint32_t rmx_sendpipe; /* outbound delay-bandwidth product */
uint32_t rmx_ssthresh; /* outbound gateway buffer limit */
uint32_t rmx_rtt; /* estimated round trip time */
uint32_t rmx_rttvar; /* estimated rtt variance */
uint32_t rmx_pksent; /* packets sent using this route */
The
if_data structure included in the if_msghdr message header defines a queue for a network
interface and contains the following members:
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010