Re: [PATCH] net: implement IP_RECVHDRS option to get full headers through recvmsg cmsg.

2018-04-02 Thread David Miller
From: Maciej Żenczykowski Date: Sat, 31 Mar 2018 22:43:14 -0700 > From: Luigi Rizzo > > We have all sorts of different ways to fetch pre-UDP payload metadata: > IP_RECVTOS > IP_RECVTTL > IP_RECVOPTS > IP_RETOPTS > > But nothing generic which

Re: [PATCH] net: implement IP_RECVHDRS option to get full headers through recvmsg cmsg.

2018-04-01 Thread Eric Dumazet
On 03/31/2018 10:43 PM, Maciej Żenczykowski wrote: > From: Luigi Rizzo > > We have all sorts of different ways to fetch pre-UDP payload metadata: > IP_RECVTOS > IP_RECVTTL > IP_RECVOPTS > IP_RETOPTS > > But nothing generic which simply allows you to receive the

[PATCH] net: implement IP_RECVHDRS option to get full headers through recvmsg cmsg.

2018-03-31 Thread Maciej Żenczykowski
From: Luigi Rizzo We have all sorts of different ways to fetch pre-UDP payload metadata: IP_RECVTOS IP_RECVTTL IP_RECVOPTS IP_RETOPTS But nothing generic which simply allows you to receive the entire packet header. This is in similar vein to TCP_SAVE_SYN but for UDP