|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
15 #ifndef __IPSEC_SPD_H__
16 #define __IPSEC_SPD_H__
20 #define foreach_ipsec_spd_policy_type \
21 _(IP4_OUTBOUND, "ip4-outbound") \
22 _(IP6_OUTBOUND, "ip6-outbound") \
23 _(IP4_INBOUND_PROTECT, "ip4-inbound-protect") \
24 _(IP6_INBOUND_PROTECT, "ip6-inbound-protect") \
25 _(IP4_INBOUND_BYPASS, "ip4-inbound-bypass") \
26 _(IP6_INBOUND_BYPASS, "ip6-inbound-bypass") \
27 _(IP4_INBOUND_DISCARD, "ip4-inbound-discard") \
28 _(IP6_INBOUND_DISCARD, "ip6-inbound-discard")
32 #define _(s,v) IPSEC_SPD_POLICY_##s,
38 #define FOR_EACH_IPSEC_SPD_POLICY_TYPE(_t) \
39 for (_t = 0; _t < IPSEC_SPD_POLICY_N_TYPES; _t++)
#define foreach_ipsec_spd_policy_type
u8 * format_ipsec_spd(u8 *s, va_list *args)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
u32 id
the User's ID for this policy
@ IPSEC_SPD_POLICY_N_TYPES
u8 * format_ipsec_policy_type(u8 *s, va_list *args)
A Secruity Policy Database.
int ipsec_add_del_spd(vlib_main_t *vm, u32 spd_id, int is_add)
Add/Delete a SPD.
enum ipsec_spd_policy_t_ ipsec_spd_policy_type_t
vl_api_interface_index_t sw_if_index
int ipsec_set_interface_spd(vlib_main_t *vm, u32 sw_if_index, u32 spd_id, int is_add)
Bind/attach a SPD to an interface.