summaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_netlink.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-12-09 11:25:17 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-11 04:06:49 +0100
commit730054da3868c35809fd31a4018044ab10b0e215 (patch)
tree7b83e6854b19f4204e8785977f97ac3ff51df03a /net/hsr/hsr_netlink.h
parenttun: unbreak truncated packet signalling (diff)
downloadlinux-730054da3868c35809fd31a4018044ab10b0e215.tar.xz
linux-730054da3868c35809fd31a4018044ab10b0e215.zip
macvtap: signal truncated packets
macvtap_put_user() never return a value grater than iov length, this in fact bypasses the truncated checking in macvtap_recvmsg(). Fix this by always returning the size of packet plus the possible vlan header to let the truncated checking work. Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_netlink.h')
0 files changed, 0 insertions, 0 deletions