diff options
Diffstat (limited to 'src/vnet/ip')
-rw-r--r-- | src/vnet/ip/ip_types.api | 6 | ||||
-rw-r--r-- | src/vnet/ip/ip_types_api.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index 4c685670d5e..b962e1a6f31 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -41,7 +41,7 @@ typedef address { typedef prefix { vl_api_address_t address; - u8 address_length; + u8 len; }; typedef mprefix { @@ -52,11 +52,11 @@ typedef mprefix { }; typedef ip6_prefix { - vl_api_ip6_address_t prefix; + vl_api_ip6_address_t address; u8 len; }; typedef ip4_prefix { - vl_api_ip4_address_t prefix; + vl_api_ip4_address_t address; u8 len; }; diff --git a/src/vnet/ip/ip_types_api.c b/src/vnet/ip/ip_types_api.c index 6ad2c366dff..0343d2001ad 100644 --- a/src/vnet/ip/ip_types_api.c +++ b/src/vnet/ip/ip_types_api.c @@ -196,7 +196,7 @@ ip_prefix_decode (const vl_api_prefix_t * in, fib_prefix_t * out) out->fp_proto = FIB_PROTOCOL_IP6; break; } - out->fp_len = in->address_length; + out->fp_len = in->len; out->___fp___pad = 0; ip_address_decode (&in->address, &out->fp_addr); } @@ -204,7 +204,7 @@ ip_prefix_decode (const vl_api_prefix_t * in, fib_prefix_t * out) void ip_prefix_encode (const fib_prefix_t * in, vl_api_prefix_t * out) { - out->address_length = in->fp_len; + out->len = in->fp_len; ip_address_encode (&in->fp_addr, fib_proto_to_ip46 (in->fp_proto), &out->address); } |