Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Mere overlapping changes in the conflicts here. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -312,7 +312,7 @@ static int __init br_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
BUILD_BUG_ON(sizeof(struct br_input_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb));
|
||||
BUILD_BUG_ON(sizeof(struct br_input_skb_cb) > sizeof_field(struct sk_buff, cb));
|
||||
|
||||
err = stp_proto_register(&br_stp_proto);
|
||||
if (err < 0) {
|
||||
|
@@ -662,6 +662,9 @@ static unsigned int br_nf_forward_arp(void *priv,
|
||||
nf_bridge_pull_encap_header(skb);
|
||||
}
|
||||
|
||||
if (unlikely(!pskb_may_pull(skb, sizeof(struct arphdr))))
|
||||
return NF_DROP;
|
||||
|
||||
if (arp_hdr(skb)->ar_pln != 4) {
|
||||
if (is_vlan_arp(skb, state->net))
|
||||
nf_bridge_push_encap_header(skb);
|
||||
|
Reference in New Issue
Block a user