Turns out rtm_use does still exist, just under different name - for
a long time (since 6.1) it was #defined as rtm_fmask. Update manual page. While here, sync some constants with what's in route.h.
This commit is contained in:
parent
924e20c37b
commit
37d071982a
@ -196,6 +196,8 @@ Messages include:
|
||||
#define RTM_REDIRECT 0x6 /* Told to use different route */
|
||||
#define RTM_MISS 0x7 /* Lookup failed on this address */
|
||||
#define RTM_LOCK 0x8 /* fix specified metrics */
|
||||
#define RTM_OLDADD 0x9 /* caused by SIOCADDRT */
|
||||
#define RTM_OLDDEL 0xa /* caused by SIOCDELRT */
|
||||
#define RTM_RESOLVE 0xb /* request to resolve dst to LL addr - unused */
|
||||
#define RTM_NEWADDR 0xc /* address being added to iface */
|
||||
#define RTM_DELADDR 0xd /* address being removed from iface */
|
||||
@ -203,6 +205,7 @@ Messages include:
|
||||
#define RTM_NEWMADDR 0xf /* mcast group membership being added to if */
|
||||
#define RTM_DELMADDR 0x10 /* mcast group membership being deleted */
|
||||
#define RTM_IFANNOUNCE 0x11 /* iface arrival/departure */
|
||||
#define RTM_IEEE80211 0x12 /* IEEE80211 wireless event */
|
||||
.Ed
|
||||
.Pp
|
||||
A message header consists of one of the following:
|
||||
@ -217,6 +220,7 @@ struct rt_msghdr {
|
||||
pid_t rtm_pid; /* identify sender */
|
||||
int rtm_seq; /* for sender to identify action */
|
||||
int rtm_errno; /* why failed */
|
||||
int rtm_fmask; /* bitmask used in RTM_CHANGE message */
|
||||
u_long rtm_inits; /* which metrics we are initializing */
|
||||
struct rt_metrics rtm_rmx; /* metrics themselves */
|
||||
};
|
||||
@ -300,6 +304,7 @@ Specifiers for metric values in rmx_locks and rtm_inits are:
|
||||
#define RTV_SSTHRESH 0x20 /* init or lock _ssthresh */
|
||||
#define RTV_RTT 0x40 /* init or lock _rtt */
|
||||
#define RTV_RTTVAR 0x80 /* init or lock _rttvar */
|
||||
#define RTV_WEIGHT 0x100 /* init or lock _weight */
|
||||
.Ed
|
||||
.Pp
|
||||
Specifiers for which addresses are present in the messages are:
|
||||
|
Loading…
x
Reference in New Issue
Block a user