diff options
author | 2013-12-11 13:08:34 +0800 | |
---|---|---|
committer | 2013-12-11 15:23:06 -0500 | |
commit | ce232ce01d61b184202bb185103d119820e1260c (patch) | |
tree | 19f4f7f8a47187531ef9fb8af4eec251b397f84e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tun: unbreak truncated packet signalling (diff) | |
download | wireguard-linux-ce232ce01d61b184202bb185103d119820e1260c.tar.xz wireguard-linux-ce232ce01d61b184202bb185103d119820e1260c.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 trunca
checking work.
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions