[RFC PATCH 01/20] add NET_ANY
30 Dec
2019
30 Dec
'19
4:56 p.m.
--- 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
2357
Age (days ago)
2357
Last active (days ago)
0 comments
1 participants
participants (1)
-
Asbjørn Sloth Tønnesen