History

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

Alexandre Cassen committed 6 years ago

Commit 79a28dd1 parent 8af7b451 file · +23 −22Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/rtnetlink.h+23−22
@@ -257,12 +257,12 @@ enum { · 256 unmodified lines
257257
258258 /* rtm_protocol */
259259
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 */
266266
267267 /* Values of protocol >= RTPROT_STATIC are not interpreted by kernel;
268268 they are just passed from user and back as is.
@@ -271,22 +271,23 @@ enum { · 2 unmodified lines
271271 avoid conflicts.
272272 */
273273
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 */
290291
291292 /* rtm_scope
292293

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t