git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/tep_term: remove redundant info get
[dpdk.git]
/
examples
/
ipsec-secgw
/
parser.h
diff --git
a/examples/ipsec-secgw/parser.h
b/examples/ipsec-secgw/parser.h
index
be02537
..
6e764fe
100644
(file)
--- a/
examples/ipsec-secgw/parser.h
+++ b/
examples/ipsec-secgw/parser.h
@@
-14,14
+14,14
@@
struct parse_status {
char parse_msg[256];
};
char parse_msg[256];
};
-#define APP_CHECK(exp, st
atus, fmt, ...)
\
+#define APP_CHECK(exp, st
, fmt, ...)
\
do { \
if (!(exp)) { \
do { \
if (!(exp)) { \
- sprintf(
status->parse_msg, fmt "\n",
\
+ sprintf(
(st)->parse_msg, fmt "\n",
\
## __VA_ARGS__); \
## __VA_ARGS__); \
-
status->status = -1;
\
+
(st)->status = -1;
\
} else \
} else \
-
status->status = 0;
\
+
(st)->status = 0;
\
} while (0)
#define APP_CHECK_PRESENCE(val, str, status) \
} while (0)
#define APP_CHECK_PRESENCE(val, str, status) \
@@
-66,14
+66,23
@@
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);
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
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);
void
parse_sp6_tokens(char **tokens, uint32_t n_tokens,
struct parse_status *status);
+void
+sa_sort_arr(void);
+
void
parse_sa_tokens(char **tokens, uint32_t n_tokens,
struct parse_status *status);
void
parse_sa_tokens(char **tokens, uint32_t n_tokens,
struct parse_status *status);