diff options
author | Neale Ranns <nranns@cisco.com> | 2019-11-12 17:16:47 +0000 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-11-12 18:56:04 +0000 |
commit | ea93e48cf6e918937422638cb574964b88a146b6 (patch) | |
tree | c35f8c921a8a9175b0dbf89e3e0775abc433e521 /src/vnet/ip/ip.h | |
parent | c046d709e1e493d20fee80f8c23b4106be67a98e (diff) |
ip: IP address and prefix types (moved from LISP)
Type: refactor
Change-Id: I2c6b59013bfd21136a2955442c779685f951932b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip.h')
-rw-r--r-- | src/vnet/ip/ip.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/vnet/ip/ip.h b/src/vnet/ip/ip.h index 65ccaef40c2..22daaabc096 100644 --- a/src/vnet/ip/ip.h +++ b/src/vnet/ip/ip.h @@ -46,6 +46,7 @@ #include <vnet/vnet.h> +#include <vnet/ip/ip_types.h> #include <vnet/ip/format.h> #include <vnet/ip/ip_packet.h> #include <vnet/ip/lookup.h> @@ -65,22 +66,6 @@ #include <vnet/ip/icmp6.h> #include <vnet/classify/vnet_classify.h> -typedef enum ip_address_family_t_ -{ - AF_IP4, - AF_IP6, -} ip_address_family_t; - -extern uword unformat_ip_address_family (unformat_input_t * input, - va_list * args); -extern u8 *format_ip_address_family (u8 * s, va_list * args); - -#define FOR_EACH_IP_ADDRESS_FAMILY(_af) \ - for (_af = AF_IP4; _af <= AF_IP6; _af++) - -#define u8_ptr_add(ptr, index) (((u8 *)ptr) + index) -#define u16_net_add(u, val) clib_host_to_net_u16(clib_net_to_host_u16(u) + (val)) - /* Per protocol info. */ typedef struct { |