patch-2.1.15 linux/net/ipv6/reassembly.c
Next file: linux/net/ipv6/sit.c
Previous file: linux/net/ipv6/raw.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Thu Dec 12 16:54:26 1996
- Orig file:
v2.1.14/linux/net/ipv6/reassembly.c
- Orig date:
Sun Nov 10 20:12:31 1996
diff -u --recursive --new-file v2.1.14/linux/net/ipv6/reassembly.c linux/net/ipv6/reassembly.c
@@ -217,8 +217,8 @@
nfp->offset = ntohs(fhdr->frag_off) & ~0x7;
- nfp->len = (ntohs(skb->ipv6_hdr->payload_len) -
- ((u8 *) (fhdr + 1) - (u8 *) (skb->ipv6_hdr + 1)));
+ nfp->len = (ntohs(skb->nh.ipv6h->payload_len) -
+ ((u8 *) (fhdr + 1) - (u8 *) (skb->nh.ipv6h + 1)));
nfp->skb = skb;
@@ -286,7 +286,7 @@
* this means we have all fragments.
*/
- unfrag_len = (u8 *) (tail->fhdr) - (u8 *) (tail->skb->ipv6_hdr + 1);
+ unfrag_len = (u8 *) (tail->fhdr) - (u8 *) (tail->skb->nh.ipv6h + 1);
payload_len = (unfrag_len + tail->offset +
(tail->skb->tail - (__u8 *) (tail->fhdr + 1)));
@@ -302,20 +302,19 @@
copy = unfrag_len + sizeof(struct ipv6hdr);
- skb->ipv6_hdr = (struct ipv6hdr *) skb->data;
+ skb->nh.ipv6h = (struct ipv6hdr *) skb->data;
- skb->free = 1;
skb->dev = fq->dev;
nh = fq->nexthdr;
*(fq->nhptr) = nh;
- memcpy(skb_put(skb, copy), tail->skb->ipv6_hdr, copy);
+ memcpy(skb_put(skb, copy), tail->skb->nh.ipv6h, copy);
skb->h.raw = skb->tail;
- skb->ipv6_hdr->payload_len = ntohs(payload_len);
+ skb->nh.ipv6h->payload_len = ntohs(payload_len);
*skb_in = skb;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov