Re: [PATCH net-next 0/4] udp: support SO_PEEK_OFFSET

2016-04-04 Thread Willem de Bruijn
On Mon, Apr 4, 2016 at 5:49 PM, David Miller wrote: > From: Willem de Bruijn > Date: Sun, 3 Apr 2016 19:29:49 -0400 > >> From: Willem de Bruijn >> >> Support peeking at a non-zero offset for UDP sockets. Match the >> existing behavior on Unix datagram sockets. >> >> 1/4 makes the sk_peek_offset

Re: [PATCH net-next 0/4] udp: support SO_PEEK_OFFSET

2016-04-04 Thread David Miller
From: Willem de Bruijn Date: Sun, 3 Apr 2016 19:29:49 -0400 > From: Willem de Bruijn > > Support peeking at a non-zero offset for UDP sockets. Match the > existing behavior on Unix datagram sockets. > > 1/4 makes the sk_peek_offset functions safe to use outside locks > 2/4 removes udp headers

[PATCH net-next 0/4] udp: support SO_PEEK_OFFSET

2016-04-03 Thread Willem de Bruijn
From: Willem de Bruijn Support peeking at a non-zero offset for UDP sockets. Match the existing behavior on Unix datagram sockets. 1/4 makes the sk_peek_offset functions safe to use outside locks 2/4 removes udp headers before enqueue, to simplify offset arithmetic 3/4 introduces SO_PEEK_OFFSET