summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-09-17 12:56:47 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-09-17 14:46:07 +0000
commite6b83059af3365ab12bbe93655a7dea6f691dbda (patch)
tree7b15b70d2d8a24a5c7dc53ad69a3fb7318fb1383 /src/vnet/ip
parent5ef25165b505f761a099e6c3bc06569cfef74f26 (diff)
teib: Use ip_address_t not ip46_address_t
Type: improvement Change-Id: Ica75c4e43d6198658a1954640c7ac56ea68bb39a Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip')
-rw-r--r--src/vnet/ip/ip_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_types.h b/src/vnet/ip/ip_types.h
index 907d4f0afa9..2049170ea23 100644
--- a/src/vnet/ip/ip_types.h
+++ b/src/vnet/ip/ip_types.h
@@ -53,6 +53,7 @@ typedef struct ip_address
#define IP_ADDRESS_V4_ALL_0S {.ip.ip4.as_u32 = 0, .version = AF_IP4}
#define IP_ADDRESS_V6_ALL_0S {.ip.ip6.as_u64 = {0, 0}, .version = AF_IP6}
+#define ip_address_initializer IP_ADDRESS_V6_ALL_0S
#define ip_addr_46(_a) (_a)->ip
#define ip_addr_v4(_a) (_a)->ip.ip4