X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fipsec-secgw%2Fparser.h;h=a0ff7e1b3fead770649bde74bce52e563de4e6c7;hb=8e693616fcb20fc03f9460836dde9c5e5eeff95d;hp=1f8bd3e9d4eab3aa2c647a489c90351cd8ae5747;hpb=e1143d7dbbf484837f3eefb077a9b0af0f7e1c45;p=dpdk.git diff --git a/examples/ipsec-secgw/parser.h b/examples/ipsec-secgw/parser.h index 1f8bd3e9d4..a0ff7e1b3f 100644 --- a/examples/ipsec-secgw/parser.h +++ b/examples/ipsec-secgw/parser.h @@ -2,12 +2,13 @@ * Copyright(c) 2016 Intel Corporation */ +#ifndef __PARSER_H +#define __PARSER_H + #include #include #include - -#ifndef __PARSER_H -#define __PARSER_H +#include struct parse_status { int status; @@ -66,10 +67,16 @@ parse_ipv6_addr(const char *token, struct in6_addr *ipv6, uint32_t *mask); int parse_range(const char *token, uint16_t *low, uint16_t *high); +void +sp4_sort_arr(void); + void parse_sp4_tokens(char **tokens, uint32_t n_tokens, struct parse_status *status); +void +sp6_sort_arr(void); + void parse_sp6_tokens(char **tokens, uint32_t n_tokens, struct parse_status *status);