Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route.h
| Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | #define RTF_FMASK \ | ||||
| (RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \ | (RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \ | ||||
| RTF_REJECT | RTF_STATIC | RTF_STICKY) | RTF_REJECT | RTF_STATIC | RTF_STICKY) | ||||
| /* | /* | ||||
| * fib_ nexthop API flags. | * fib_ nexthop API flags. | ||||
| */ | */ | ||||
| /* Consumer-visible nexthop info flags */ | /* Consumer-visible nexthop info flags */ | ||||
| #define NHF_MULTIPATH 0x0008 /* Nexhop is a nexthop group */ | |||||
| #define NHF_REJECT 0x0010 /* RTF_REJECT */ | #define NHF_REJECT 0x0010 /* RTF_REJECT */ | ||||
| #define NHF_BLACKHOLE 0x0020 /* RTF_BLACKHOLE */ | #define NHF_BLACKHOLE 0x0020 /* RTF_BLACKHOLE */ | ||||
| #define NHF_REDIRECT 0x0040 /* RTF_DYNAMIC|RTF_MODIFIED */ | #define NHF_REDIRECT 0x0040 /* RTF_DYNAMIC|RTF_MODIFIED */ | ||||
| #define NHF_DEFAULT 0x0080 /* Default route */ | #define NHF_DEFAULT 0x0080 /* Default route */ | ||||
| #define NHF_BROADCAST 0x0100 /* RTF_BROADCAST */ | #define NHF_BROADCAST 0x0100 /* RTF_BROADCAST */ | ||||
| #define NHF_GATEWAY 0x0200 /* RTF_GATEWAY */ | #define NHF_GATEWAY 0x0200 /* RTF_GATEWAY */ | ||||
| #define NHF_HOST 0x0400 /* RTF_HOST */ | #define NHF_HOST 0x0400 /* RTF_HOST */ | ||||
| Show All 14 Lines | |||||
| struct rtstat { | struct rtstat { | ||||
| uint64_t rts_badredirect; /* bogus redirect calls */ | uint64_t rts_badredirect; /* bogus redirect calls */ | ||||
| uint64_t rts_dynamic; /* routes created by redirects */ | uint64_t rts_dynamic; /* routes created by redirects */ | ||||
| uint64_t rts_newgateway; /* routes modified by redirects */ | uint64_t rts_newgateway; /* routes modified by redirects */ | ||||
| uint64_t rts_unreach; /* lookups which failed */ | uint64_t rts_unreach; /* lookups which failed */ | ||||
| uint64_t rts_wildcard; /* lookups satisfied by a wildcard */ | uint64_t rts_wildcard; /* lookups satisfied by a wildcard */ | ||||
| uint64_t rts_nh_idx_alloc_failure; /* nexthop index alloc failure*/ | uint64_t rts_nh_idx_alloc_failure; /* nexthop index alloc failure*/ | ||||
| uint64_t rts_nh_alloc_failure; /* nexthop allocation failure*/ | uint64_t rts_nh_alloc_failure; /* nexthop allocation failure*/ | ||||
| uint64_t rts_add_failure; /* route addition failure */ | |||||
| uint64_t rts_add_retry; /* route addition failure */ | |||||
glebius: Looks like three descriptions in comments need to be fixed. | |||||
| uint64_t rts_del_failure; /* route addition failure */ | |||||
| uint64_t rts_del_retry; /* route addition failure */ | |||||
| }; | }; | ||||
| /* | /* | ||||
| * Structures for routing messages. | * Structures for routing messages. | ||||
| */ | */ | ||||
| struct rt_msghdr { | struct rt_msghdr { | ||||
| u_short rtm_msglen; /* to skip over non-understood messages */ | u_short rtm_msglen; /* to skip over non-understood messages */ | ||||
| u_char rtm_version; /* future binary compatibility */ | u_char rtm_version; /* future binary compatibility */ | ||||
| ▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines | |||||
Looks like three descriptions in comments need to be fixed.