Skip to content

Commit 64e8445

Browse files
choppsv1klassert
authored andcommitted
include: uapi: protocol number and packet structs for AGGFRAG in ESP
Add the RFC assigned IP protocol number for AGGFRAG. Add the on-wire basic and congestion-control IP-TFS packet headers. Signed-off-by: Christian Hopps <[email protected]> Tested-by: Antony Antony <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent ffa7948 commit 64e8445

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

include/uapi/linux/in.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ enum {
7979
#define IPPROTO_MPLS IPPROTO_MPLS
8080
IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */
8181
#define IPPROTO_ETHERNET IPPROTO_ETHERNET
82+
IPPROTO_AGGFRAG = 144, /* AGGFRAG in ESP (RFC 9347) */
83+
#define IPPROTO_AGGFRAG IPPROTO_AGGFRAG
8284
IPPROTO_RAW = 255, /* Raw IP packets */
8385
#define IPPROTO_RAW IPPROTO_RAW
8486
IPPROTO_SMC = 256, /* Shared Memory Communications */

include/uapi/linux/ip.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,22 @@ struct ip_beet_phdr {
137137
__u8 reserved;
138138
};
139139

140+
struct ip_iptfs_hdr {
141+
__u8 subtype; /* 0*: basic, 1: CC */
142+
__u8 flags;
143+
__be16 block_offset;
144+
};
145+
146+
struct ip_iptfs_cc_hdr {
147+
__u8 subtype; /* 0: basic, 1*: CC */
148+
__u8 flags;
149+
__be16 block_offset;
150+
__be32 loss_rate;
151+
__be64 rtt_adelay_xdelay;
152+
__be32 tval;
153+
__be32 techo;
154+
};
155+
140156
/* index values for the variables in ipv4_devconf */
141157
enum
142158
{

0 commit comments

Comments
 (0)