summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bcmsysport.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2014-11-19 13:10:16 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-21 14:43:07 -0500
commit9c7077622dd917457ced680a23b7f175769471d9 (patch)
tree8c162e5ef188298d9fce81c7d2a6fb216f2d0a5c /drivers/net/ethernet/broadcom/bcmsysport.h
parentdf6ce47091620d76bbe036d0af3dc1abad4576c1 (diff)
packet: make packet_snd fail on len smaller than l2 header
When sending packets out with PF_PACKET, SOCK_RAW, ensure that the packet is at least as long as the device's expected link layer header. This check already exists in tpacket_snd, but not in packet_snd. Also rate limit the warning in tpacket_snd. Signed-off-by: Willem de Bruijn <willemb@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Acked-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
0 files changed, 0 insertions, 0 deletions