[RFC PATCH 01/20] add NET_ANY

Asbjørn Sloth Tønnesen ast at 2e8.dk
Mon Dec 30 17:56:27 CET 2019


---
 lib/net.c | 1 +
 lib/net.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/net.c b/lib/net.c
index 976ddbcc..2440506e 100644
--- a/lib/net.c
+++ b/lib/net.c
@@ -6,6 +6,7 @@
 
 
 const char * const net_label[] = {
+  [NET_ANY]	= "any",
   [NET_IP4]	= "ipv4",
   [NET_IP6]	= "ipv6",
   [NET_VPN4]	= "vpn4",
diff --git a/lib/net.h b/lib/net.h
index 0cd5f735..fe55d1b5 100644
--- a/lib/net.h
+++ b/lib/net.h
@@ -13,6 +13,7 @@
 #include "lib/ip.h"
 
 
+#define NET_ANY		0
 #define NET_IP4		1
 #define NET_IP6		2
 #define NET_VPN4	3
-- 
2.24.0



More information about the Bird-users mailing list