Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ipsec: Revert "IPSEC: remove byte swap operations in DP during SPD classify"
[vpp.git]
/
src
/
vnet
/
ipsec
/
ipsec_spd_policy.h
diff --git
a/src/vnet/ipsec/ipsec_spd_policy.h
b/src/vnet/ipsec/ipsec_spd_policy.h
index
40fad34
..
6d6b695
100644
(file)
--- a/
src/vnet/ipsec/ipsec_spd_policy.h
+++ b/
src/vnet/ipsec/ipsec_spd_policy.h
@@
-15,7
+15,7
@@
#ifndef __IPSEC_SPD_POLICY_H__
#define __IPSEC_SPD_POLICY_H__
#ifndef __IPSEC_SPD_POLICY_H__
#define __IPSEC_SPD_POLICY_H__
-#include <v
lib/vlib
.h>
+#include <v
net/ipsec/ipsec_spd
.h>
#define foreach_ipsec_policy_action \
_ (0, BYPASS, "bypass") \
#define foreach_ipsec_policy_action \
_ (0, BYPASS, "bypass") \
@@
-55,7
+55,9
@@
typedef struct ipsec_policy_t_
{
u32 id;
i32 priority;
{
u32 id;
i32 priority;
- u8 is_outbound;
+
+ // the type of policy
+ ipsec_spd_policy_type_t type;
// Selector
u8 is_ipv6;
// Selector
u8 is_ipv6;
@@
-84,6
+86,11
@@
extern uword unformat_ipsec_policy_action (unformat_input_t * input,
va_list * args);
va_list * args);
+extern int ipsec_policy_mk_type (bool is_outbound,
+ bool is_ipv6,
+ ipsec_policy_action_t action,
+ ipsec_spd_policy_type_t * type);
+
#endif /* __IPSEC_SPD_POLICY_H__ */
/*
#endif /* __IPSEC_SPD_POLICY_H__ */
/*