X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fipv4%2Fip_output.c;h=661bda968594acee601a85096f87f6b4fcff8768;hb=e5c89b56c95ef08a87d17c47f3798f3745090ad3;hp=dbf7f7ee2958a0b2bb01d83eddab0cf919012074;hpb=662d618b983cd0566a1cc2ed28c09a0a4b07b9f3;p=firefly-linux-kernel-4.4.55.git diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index dbf7f7ee2958..661bda968594 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -102,6 +102,9 @@ int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) iph->tot_len = htons(skb->len); ip_send_check(iph); + + skb->protocol = htons(ETH_P_IP); + return nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, net, sk, skb, NULL, skb_dst(skb)->dev, dst_output);