ipv4: raw: Fix sending packets from raw sockets via IPsec tunnels
[linux-2.6-microblaze.git] / net / ipv4 / raw.c
index 12b3740..dcb11f2 100644 (file)
@@ -357,6 +357,7 @@ static int raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4,
                goto error;
        skb_reserve(skb, hlen);
 
+       skb->protocol = htons(ETH_P_IP);
        skb->priority = READ_ONCE(sk->sk_priority);
        skb->mark = sockc->mark;
        skb->tstamp = sockc->transmit_time;