aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2018-06-12 08:07:12 -0400
committerSteffen Klassert <steffen.klassert@secunet.com>2018-06-23 10:07:25 -0400
commitf203b76d78092faf248db3f851840fbecf80b40e (patch)
tree108d48fe7d28b6096f1bc209bc497c36406c12f5 /include/uapi/linux
parent7e6526404adedf079279aa7aa11722deaca8fe2e (diff)
xfrm: Add virtual xfrm interfaces
This patch adds support for virtual xfrm interfaces. Packets that are routed through such an interface are guaranteed to be IPsec transformed or dropped. It is a generic virtual interface that ensures IPsec transformation, no need to know what happens behind the interface. This means that we can tunnel IPv4 and IPv6 through the same interface and support all xfrm modes (tunnel, transport and beet) on it. Co-developed-by: Lorenzo Colitti <lorenzo@google.com> Co-developed-by: Benedict Wong <benedictwong@google.com> Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: Benedict Wong <benedictwong@google.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Acked-by: Shannon Nelson <shannon.nelson@oracle.com> Tested-by: Benedict Wong <benedictwong@google.com> Tested-by: Antony Antony <antony@phenome.org> Reviewed-by: Eyal Birger <eyal.birger@gmail.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/if_link.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index cf01b6824244..bff0af507b32 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -459,6 +459,16 @@ enum {
459 459
460#define IFLA_MACSEC_MAX (__IFLA_MACSEC_MAX - 1) 460#define IFLA_MACSEC_MAX (__IFLA_MACSEC_MAX - 1)
461 461
462/* XFRM section */
463enum {
464 IFLA_XFRM_UNSPEC,
465 IFLA_XFRM_LINK,
466 IFLA_XFRM_IF_ID,
467 __IFLA_XFRM_MAX
468};
469
470#define IFLA_XFRM_MAX (__IFLA_XFRM_MAX - 1)
471
462enum macsec_validation_type { 472enum macsec_validation_type {
463 MACSEC_VALIDATE_DISABLED = 0, 473 MACSEC_VALIDATE_DISABLED = 0,
464 MACSEC_VALIDATE_CHECK = 1, 474 MACSEC_VALIDATE_CHECK = 1,