diff options
author | Neale Ranns <neale@graphiant.com> | 2021-10-25 09:47:09 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-11-18 14:06:02 +0000 |
commit | b28652ed7ab016177593b059390f2e99e6af2961 (patch) | |
tree | 99f1bc49227d37e467cb74216de8e9324436b416 /src/vnet/ip/ip.h | |
parent | fc8d0c510372823ac029b6330e876fab9400dbae (diff) |
ip: comparing IP prefixes should not modify them
Type: improvement
make the ip_prefix_cmp take const paramenters.
plus some other miscellaneous functions.
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Ib69bacfb09483a8a8f8b89900c92d3d55c354ac6
Diffstat (limited to 'src/vnet/ip/ip.h')
-rw-r--r-- | src/vnet/ip/ip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip/ip.h b/src/vnet/ip/ip.h index 87689076697..131d6879c14 100644 --- a/src/vnet/ip/ip.h +++ b/src/vnet/ip/ip.h @@ -287,6 +287,8 @@ void ip_feature_enable_disable (ip_address_family_t af, void *feature_config, u32 n_feature_config_bytes); +ethernet_type_t ip_address_family_to_ether_type (ip_address_family_t af); + always_inline u32 vlib_buffer_get_ip4_fib_index (vlib_buffer_t * b); always_inline u32 vlib_buffer_get_ip6_fib_index (vlib_buffer_t * b); always_inline u32 |