History

xfrm: add generic iptfs defines and functionality

Define `XFRM_MODE_IPTFS` and `IPSEC_MODE_IPTFS` constants, and add these to switch case and conditionals adjacent with the existing TUNNEL modes.

Christian Hopps committed 2 years ago

Commit d1716d51 parent 7ac64f412 files · +48 −6Browse files

Showing the changes to include/uapi (2 of 12 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/ipsec.h +2 −1
  2. include/uapi/linux/snmp.h +2 −0
include/uapi/linux/ipsec.h+2−1
@@ -14,7 +14,8 @@ enum { · 13 unmodified lines
14 IPSEC_MODE_ANY = 0, /* We do not support this for SA */14 IPSEC_MODE_ANY = 0, /* We do not support this for SA */
15 IPSEC_MODE_TRANSPORT = 1,15 IPSEC_MODE_TRANSPORT = 1,
16 IPSEC_MODE_TUNNEL = 2,16 IPSEC_MODE_TUNNEL = 2,
17 IPSEC_MODE_BEET = 317 IPSEC_MODE_BEET = 3,
18 IPSEC_MODE_IPTFS = 4
18};19};
19 20
20enum {21enum {
include/uapi/linux/snmp.h+2−0
@@ -339,6 +339,8 @@ enum · 338 unmodified lines
339 LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */339 LINUX_MIB_XFRMACQUIREERROR, /* XfrmAcquireError */
340 LINUX_MIB_XFRMOUTSTATEDIRERROR, /* XfrmOutStateDirError */340 LINUX_MIB_XFRMOUTSTATEDIRERROR, /* XfrmOutStateDirError */
341 LINUX_MIB_XFRMINSTATEDIRERROR, /* XfrmInStateDirError */341 LINUX_MIB_XFRMINSTATEDIRERROR, /* XfrmInStateDirError */
342 LINUX_MIB_XFRMINIPTFSERROR, /* XfrmInIptfsError */
343 LINUX_MIB_XFRMOUTNOQSPACE, /* XfrmOutNoQueueSpace */
342 __LINUX_MIB_XFRMMAX344 __LINUX_MIB_XFRMMAX
343};345};
344 346

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t