diff options
author | Dave Barach <dave@barachs.net> | 2016-12-09 09:52:16 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-12-09 11:47:00 -0500 |
commit | d7cb1b5f22948eba272e1a8844c75a2b87706fc4 (patch) | |
tree | 20728b9b0e229ec43587f22fdbbcd4c2552b6965 /vnet/vnet/ip/ip_frag.h | |
parent | b78292efdfaf70baf89c778973d4bb3b822e95dd (diff) |
Coding standards cleanup for vnet/vnet/ip, VPP-255
Change-Id: I12892fa571cc50e0541d6463a8b68e1b618edd9f
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/ip/ip_frag.h')
-rw-r--r-- | vnet/vnet/ip/ip_frag.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/vnet/vnet/ip/ip_frag.h b/vnet/vnet/ip/ip_frag.h index 118acf86bf4..348f5a2fbc6 100644 --- a/vnet/vnet/ip/ip_frag.h +++ b/vnet/vnet/ip/ip_frag.h @@ -37,8 +37,8 @@ #include <vnet/vnet.h> -#define IP_FRAG_FLAG_IP4_HEADER 0x01 //Encapsulating IPv4 header -#define IP_FRAG_FLAG_IP6_HEADER 0x02 //Encapsulating IPv6 header +#define IP_FRAG_FLAG_IP4_HEADER 0x01 //Encapsulating IPv4 header +#define IP_FRAG_FLAG_IP6_HEADER 0x02 //Encapsulating IPv6 header #define IP4_FRAG_NODE_NAME "ip4-frag" #define IP6_FRAG_NODE_NAME "ip6-frag" @@ -46,7 +46,8 @@ extern vlib_node_registration_t ip4_frag_node; extern vlib_node_registration_t ip6_frag_node; -typedef enum { +typedef enum +{ IP4_FRAG_NEXT_IP4_LOOKUP, IP4_FRAG_NEXT_IP6_LOOKUP, IP4_FRAG_NEXT_ICMP_ERROR, @@ -54,7 +55,8 @@ typedef enum { IP4_FRAG_N_NEXT } ip4_frag_next_t; -typedef enum { +typedef enum +{ IP6_FRAG_NEXT_IP4_LOOKUP, IP6_FRAG_NEXT_IP6_LOOKUP, IP6_FRAG_NEXT_DROP, @@ -72,13 +74,23 @@ typedef enum { _(MEMORY, "could not allocate buffer") \ _(UNKNOWN, "unknown error") -typedef enum { +typedef enum +{ #define _(sym,str) IP_FRAG_ERROR_##sym, - foreach_ip_frag_error + foreach_ip_frag_error #undef _ - IP_FRAG_N_ERROR, - } ip_frag_error_t; + IP_FRAG_N_ERROR, +} ip_frag_error_t; -void ip_frag_set_vnet_buffer(vlib_buffer_t *b, u16 offset, u16 mtu, u8 next_index, u8 flags); +void ip_frag_set_vnet_buffer (vlib_buffer_t * b, u16 offset, u16 mtu, + u8 next_index, u8 flags); #endif /* ifndef IP_FRAG_H */ + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |