|
@@ -190,10 +190,7 @@ static int ip_local_deliver_finish(struct sk_buff *skb)
|
|
|
{
|
|
|
struct net *net = dev_net(skb->dev);
|
|
|
|
|
|
- __skb_pull(skb, ip_hdrlen(skb));
|
|
|
-
|
|
|
- /* Point into the IP datagram, just past the header. */
|
|
|
- skb_reset_transport_header(skb);
|
|
|
+ __skb_pull(skb, skb_network_header_len(skb));
|
|
|
|
|
|
rcu_read_lock();
|
|
|
{
|
|
@@ -437,6 +434,8 @@ int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
|
|
|
goto drop;
|
|
|
}
|
|
|
|
|
|
+ skb->transport_header = skb->network_header + iph->ihl*4;
|
|
|
+
|
|
|
/* Remove any debris in the socket control block */
|
|
|
memset(IPCB(skb), 0, sizeof(struct inet_skb_parm));
|
|
|
|