Commit 79a28ddd authored by Alexandre Cassen's avatar Alexandre Cassen Committed by David S. Miller

rtnetlink: add keepalived rtm_protocol

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
Signed-off-by: default avatarAlexandre Cassen <acassen@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8af7b452
...@@ -257,12 +257,12 @@ enum { ...@@ -257,12 +257,12 @@ enum {
/* rtm_protocol */ /* rtm_protocol */
#define RTPROT_UNSPEC 0 #define RTPROT_UNSPEC 0
#define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects; #define RTPROT_REDIRECT 1 /* Route installed by ICMP redirects;
not used by current IPv4 */ not used by current IPv4 */
#define RTPROT_KERNEL 2 /* Route installed by kernel */ #define RTPROT_KERNEL 2 /* Route installed by kernel */
#define RTPROT_BOOT 3 /* Route installed during boot */ #define RTPROT_BOOT 3 /* Route installed during boot */
#define RTPROT_STATIC 4 /* Route installed by administrator */ #define RTPROT_STATIC 4 /* Route installed by administrator */
/* Values of protocol >= RTPROT_STATIC are not interpreted by kernel; /* Values of protocol >= RTPROT_STATIC are not interpreted by kernel;
they are just passed from user and back as is. they are just passed from user and back as is.
...@@ -271,22 +271,23 @@ enum { ...@@ -271,22 +271,23 @@ enum {
avoid conflicts. avoid conflicts.
*/ */
#define RTPROT_GATED 8 /* Apparently, GateD */ #define RTPROT_GATED 8 /* Apparently, GateD */
#define RTPROT_RA 9 /* RDISC/ND router advertisements */ #define RTPROT_RA 9 /* RDISC/ND router advertisements */
#define RTPROT_MRT 10 /* Merit MRT */ #define RTPROT_MRT 10 /* Merit MRT */
#define RTPROT_ZEBRA 11 /* Zebra */ #define RTPROT_ZEBRA 11 /* Zebra */
#define RTPROT_BIRD 12 /* BIRD */ #define RTPROT_BIRD 12 /* BIRD */
#define RTPROT_DNROUTED 13 /* DECnet routing daemon */ #define RTPROT_DNROUTED 13 /* DECnet routing daemon */
#define RTPROT_XORP 14 /* XORP */ #define RTPROT_XORP 14 /* XORP */
#define RTPROT_NTK 15 /* Netsukuku */ #define RTPROT_NTK 15 /* Netsukuku */
#define RTPROT_DHCP 16 /* DHCP client */ #define RTPROT_DHCP 16 /* DHCP client */
#define RTPROT_MROUTED 17 /* Multicast daemon */ #define RTPROT_MROUTED 17 /* Multicast daemon */
#define RTPROT_BABEL 42 /* Babel daemon */ #define RTPROT_KEEPALIVED 18 /* Keepalived daemon */
#define RTPROT_BGP 186 /* BGP Routes */ #define RTPROT_BABEL 42 /* Babel daemon */
#define RTPROT_ISIS 187 /* ISIS Routes */ #define RTPROT_BGP 186 /* BGP Routes */
#define RTPROT_OSPF 188 /* OSPF Routes */ #define RTPROT_ISIS 187 /* ISIS Routes */
#define RTPROT_RIP 189 /* RIP Routes */ #define RTPROT_OSPF 188 /* OSPF Routes */
#define RTPROT_EIGRP 192 /* EIGRP Routes */ #define RTPROT_RIP 189 /* RIP Routes */
#define RTPROT_EIGRP 192 /* EIGRP Routes */
/* rtm_scope /* rtm_scope
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment