]> git.baikalelectronics.ru Git - kernel.git/commit
udp: do not expect udp headers on ioctl SIOCINQ
authorWillem de Bruijn <willemb@google.com>
Thu, 7 Apr 2016 22:12:58 +0000 (18:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 02:24:52 +0000 (22:24 -0400)
commit72ea15b85ac28d64444dfdf703b6cedd5aabe2c2
treea1f2b887720607b10c94a7fcf79c3fd2a8045dfb
parent9a931fcf086a3426c41a95dcc65420b7772639c0
udp: do not expect udp headers on ioctl SIOCINQ

On udp sockets, ioctl SIOCINQ returns the payload size of the first
packet. Since commit 44fa15a2618b pulled the headers, the result is
incorrect when subtracting header length. Remove that operation.

Fixes: 44fa15a2618b ("udp: remove headers from UDP packets before queueing")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c