History

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.

Christian Hopps committed 2 years ago

Commit 64e84451 parent ffa79482 files · +18 −0Browse files

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

Unified · Split

2 files
  1. include/uapi/linux/in.h +2 −0
  2. include/uapi/linux/ip.h +16 −0
include/uapi/linux/in.h+2−0
@@ -79,6 +79,8 @@ enum { · 78 unmodified lines
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+16−0
@@ -137,6 +137,22 @@ struct ip_beet_phdr { · 136 unmodified lines
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 {