From: Willem de Bruijn <willemdebruijn.ker...@gmail.com> Date: Sun, 3 Apr 2016 19:29:49 -0400
> From: Willem de Bruijn <will...@google.com> > > 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 support > 4/4 moves sk->sk_peek_off on read, to match Unix socket semantics. I don't see how you can separate patches #3 and #4. Once you hook up the socket operation, the user can successfully use the feature and therefore must receive the full set of semantics. You hook up the op in patch #3 but only give the full proper semantics in #4.