Keepalived can set global static ip routes or virtual ip routes dynamically following VRRP protocol states. Using a dedicated rtm_protocol will help keeping track of it. Changes in v2: - fix tab/space indenting
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -257,12 +257,12 @@ enum { · 256 unmodified lines | ||
| 257 | 257 | |
| 258 | 258 | /* rtm_protocol */ |
| 259 | 259 | |
| 260 | −#define RTPROT_UNSPEC 0 | |
| 261 | −#define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects; | |
| 262 | − not used by current IPv4 */ | |
| 263 | −#define RTPROT_KERNEL 2 /* Route installed by kernel */ | |
| 264 | −#define RTPROT_BOOT 3 /* Route installed during boot */ | |
| 265 | −#define RTPROT_STATIC 4 /* Route installed by administrator */ | |
| 260 | +#define RTPROT_UNSPEC 0 | |
| 261 | +#define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects; | |
| 262 | + not used by current IPv4 */ | |
| 263 | +#define RTPROT_KERNEL 2 /* Route installed by kernel */ | |
| 264 | +#define RTPROT_BOOT 3 /* Route installed during boot */ | |
| 265 | +#define RTPROT_STATIC 4 /* Route installed by administrator */ | |
| 266 | 266 | |
| 267 | 267 | /* Values of protocol >= RTPROT_STATIC are not interpreted by kernel; |
| 268 | 268 | they are just passed from user and back as is. |
| @@ -271,22 +271,23 @@ enum { · 2 unmodified lines | ||
| 271 | 271 | avoid conflicts. |
| 272 | 272 | */ |
| 273 | 273 | |
| 274 | −#define RTPROT_GATED 8 /* Apparently, GateD */ | |
| 275 | −#define RTPROT_RA 9 /* RDISC/ND router advertisements */ | |
| 276 | −#define RTPROT_MRT 10 /* Merit MRT */ | |
| 277 | −#define RTPROT_ZEBRA 11 /* Zebra */ | |
| 278 | −#define RTPROT_BIRD 12 /* BIRD */ | |
| 279 | −#define RTPROT_DNROUTED 13 /* DECnet routing daemon */ | |
| 280 | −#define RTPROT_XORP 14 /* XORP */ | |
| 281 | −#define RTPROT_NTK 15 /* Netsukuku */ | |
| 282 | −#define RTPROT_DHCP 16 /* DHCP client */ | |
| 283 | −#define RTPROT_MROUTED 17 /* Multicast daemon */ | |
| 284 | −#define RTPROT_BABEL 42 /* Babel daemon */ | |
| 285 | −#define RTPROT_BGP 186 /* BGP Routes */ | |
| 286 | −#define RTPROT_ISIS 187 /* ISIS Routes */ | |
| 287 | −#define RTPROT_OSPF 188 /* OSPF Routes */ | |
| 288 | −#define RTPROT_RIP 189 /* RIP Routes */ | |
| 289 | −#define RTPROT_EIGRP 192 /* EIGRP Routes */ | |
| 274 | +#define RTPROT_GATED 8 /* Apparently, GateD */ | |
| 275 | +#define RTPROT_RA 9 /* RDISC/ND router advertisements */ | |
| 276 | +#define RTPROT_MRT 10 /* Merit MRT */ | |
| 277 | +#define RTPROT_ZEBRA 11 /* Zebra */ | |
| 278 | +#define RTPROT_BIRD 12 /* BIRD */ | |
| 279 | +#define RTPROT_DNROUTED 13 /* DECnet routing daemon */ | |
| 280 | +#define RTPROT_XORP 14 /* XORP */ | |
| 281 | +#define RTPROT_NTK 15 /* Netsukuku */ | |
| 282 | +#define RTPROT_DHCP 16 /* DHCP client */ | |
| 283 | +#define RTPROT_MROUTED 17 /* Multicast daemon */ | |
| 284 | +#define RTPROT_KEEPALIVED 18 /* Keepalived daemon */ | |
| 285 | +#define RTPROT_BABEL 42 /* Babel daemon */ | |
| 286 | +#define RTPROT_BGP 186 /* BGP Routes */ | |
| 287 | +#define RTPROT_ISIS 187 /* ISIS Routes */ | |
| 288 | +#define RTPROT_OSPF 188 /* OSPF Routes */ | |
| 289 | +#define RTPROT_RIP 189 /* RIP Routes */ | |
| 290 | +#define RTPROT_EIGRP 192 /* EIGRP Routes */ | |
| 290 | 291 | |
| 291 | 292 | /* rtm_scope |
| 292 | 293 | |