aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 9af2b7853be4..9ffc2625cddd 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -108,6 +108,8 @@ int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb)
108 if (unlikely(!skb)) 108 if (unlikely(!skb))
109 return 0; 109 return 0;
110 110
111 skb->protocol = htons(ETH_P_IP);
112
111 return nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT, 113 return nf_hook(NFPROTO_IPV4, NF_INET_LOCAL_OUT,
112 net, sk, skb, NULL, skb_dst(skb)->dev, 114 net, sk, skb, NULL, skb_dst(skb)->dev,
113 dst_output); 115 dst_output);