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
79#define IPPROTO_MPLS IPPROTO_MPLS79#define IPPROTO_MPLS IPPROTO_MPLS
80 IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */80 IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */
81#define IPPROTO_ETHERNET IPPROTO_ETHERNET81#define IPPROTO_ETHERNET IPPROTO_ETHERNET
82 IPPROTO_AGGFRAG = 144, /* AGGFRAG in ESP (RFC 9347) */
83#define IPPROTO_AGGFRAG IPPROTO_AGGFRAG
82 IPPROTO_RAW = 255, /* Raw IP packets */84 IPPROTO_RAW = 255, /* Raw IP packets */
83#define IPPROTO_RAW IPPROTO_RAW85#define IPPROTO_RAW IPPROTO_RAW
84 IPPROTO_SMC = 256, /* Shared Memory Communications */86 IPPROTO_SMC = 256, /* Shared Memory Communications */
include/uapi/linux/ip.h+16−0
@@ -137,6 +137,22 @@ struct ip_beet_phdr { · 136 unmodified lines
137 __u8 reserved;137 __u8 reserved;
138};138};
139 139
140struct ip_iptfs_hdr {
141 __u8 subtype; /* 0*: basic, 1: CC */
142 __u8 flags;
143 __be16 block_offset;
144};
145
146struct 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
140/* index values for the variables in ipv4_devconf */156/* index values for the variables in ipv4_devconf */
141enum157enum
142{158{