Re: [PATCH net 2/3] unix/dgram: fix peeking with an offset larger than data in queue

2013-04-25 Thread Eric Dumazet
On Thu, 2013-04-25 at 09:47 -0400, Benjamin Poirier wrote: > Currently, peeking on a unix datagram socket with an offset larger than len of > the data in the sk receive queue returns immediately with bogus data. That's > because *off is not reset between each skb_queue_walk(). > > This patch

[PATCH net 2/3] unix/dgram: fix peeking with an offset larger than data in queue

2013-04-25 Thread Benjamin Poirier
Currently, peeking on a unix datagram socket with an offset larger than len of the data in the sk receive queue returns immediately with bogus data. That's because *off is not reset between each skb_queue_walk(). This patch fixes this so that the behavior is the same as peeking with no offset on

[PATCH net 2/3] unix/dgram: fix peeking with an offset larger than data in queue

2013-04-25 Thread Benjamin Poirier
Currently, peeking on a unix datagram socket with an offset larger than len of the data in the sk receive queue returns immediately with bogus data. That's because *off is not reset between each skb_queue_walk(). This patch fixes this so that the behavior is the same as peeking with no offset on

Re: [PATCH net 2/3] unix/dgram: fix peeking with an offset larger than data in queue

2013-04-25 Thread Eric Dumazet
On Thu, 2013-04-25 at 09:47 -0400, Benjamin Poirier wrote: Currently, peeking on a unix datagram socket with an offset larger than len of the data in the sk receive queue returns immediately with bogus data. That's because *off is not reset between each skb_queue_walk(). This patch fixes