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
vhost: fix packed ring index wrapping
[dpdk.git]
/
examples
/
ipsec-secgw
/
parser.h
diff --git
a/examples/ipsec-secgw/parser.h
b/examples/ipsec-secgw/parser.h
index
1f8bd3e
..
a0ff7e1
100644
(file)
--- a/
examples/ipsec-secgw/parser.h
+++ b/
examples/ipsec-secgw/parser.h
@@
-2,12
+2,13
@@
* Copyright(c) 2016 Intel Corporation
*/
* Copyright(c) 2016 Intel Corporation
*/
+#ifndef __PARSER_H
+#define __PARSER_H
+
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>
-
-#ifndef __PARSER_H
-#define __PARSER_H
+#include <string.h>
struct parse_status {
int status;
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);
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);