Re: [PATCH net-next v2] icmp: support rfc 4884

2020-07-19 Thread David Miller
From: Willem de Bruijn Date: Fri, 10 Jul 2020 09:29:02 -0400 > From: Willem de Bruijn > > Add setsockopt SOL_IP/IP_RECVERR_4884 to return the offset to an > extension struct if present. > > ICMP messages may include an extension structure after the original > datagram. RFC 4884 standardized th

Re: [PATCH net-next v2] icmp: support rfc 4884

2020-07-16 Thread Willem de Bruijn
On Fri, Jul 10, 2020 at 9:29 AM Willem de Bruijn wrote: > > From: Willem de Bruijn > > Add setsockopt SOL_IP/IP_RECVERR_4884 to return the offset to an > extension struct if present. > > ICMP messages may include an extension structure after the original > datagram. RFC 4884 standardized this beh

[PATCH net-next v2] icmp: support rfc 4884

2020-07-10 Thread Willem de Bruijn
From: Willem de Bruijn Add setsockopt SOL_IP/IP_RECVERR_4884 to return the offset to an extension struct if present. ICMP messages may include an extension structure after the original datagram. RFC 4884 standardized this behavior. It stores the offset in words to the extension header in u8 icmp