patch-2.1.15 linux/net/ipv6/exthdrs.c
Next file: linux/net/ipv6/icmp.c
Previous file: linux/net/ipv6/datagram.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Thu Dec 12 16:54:25 1996
- Orig file:
v2.1.14/linux/net/ipv6/exthdrs.c
- Orig date:
Sun Nov 10 20:12:30 1996
diff -u --recursive --new-file v2.1.14/linux/net/ipv6/exthdrs.c linux/net/ipv6/exthdrs.c
@@ -57,7 +57,7 @@
{
struct ipv6_options *opt;
- opt = (struct ipv6_options *) skb->proto_priv;
+ opt = (struct ipv6_options *) skb->cb;
opt->srcrt = hdr;
skb->h.raw += (hdr->hdrlen + 1) << 3;
@@ -71,7 +71,7 @@
* Discard
*/
- pos = (__u8 *) hdr - (__u8 *) skb->ipv6_hdr + 2;
+ pos = (__u8 *) hdr - (__u8 *) skb->nh.ipv6h + 2;
if (hdr->type)
pos += 2;
@@ -92,7 +92,7 @@
if (hdr->segments_left > n)
{
- pos = (__u8 *) hdr - (__u8 *) skb->ipv6_hdr + 2;
+ pos = (__u8 *) hdr - (__u8 *) skb->nh.ipv6h + 2;
pos += 3;
@@ -116,8 +116,8 @@
}
ipv6_addr_copy(&daddr, addr);
- ipv6_addr_copy(addr, &skb->ipv6_hdr->daddr);
- ipv6_addr_copy(&skb->ipv6_hdr->daddr, &daddr);
+ ipv6_addr_copy(addr, &skb->nh.ipv6h->daddr);
+ ipv6_addr_copy(&skb->nh.ipv6h->daddr, &daddr);
/*
* Check Strick Source Route
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov