Searched refs:top_iph (Results 1 - 10 of 10) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/
H A Dxfrm6_mode_tunnel.c50 struct ipv6hdr *iph, *top_iph; local
57 top_iph = ipv6_hdr(skb);
61 top_iph->version = 6;
63 top_iph->priority = iph->priority;
64 top_iph->flow_lbl[0] = iph->flow_lbl[0];
65 top_iph->flow_lbl[1] = iph->flow_lbl[1];
66 top_iph->flow_lbl[2] = iph->flow_lbl[2];
67 top_iph->nexthdr = IPPROTO_IPV6;
69 top_iph->priority = 0;
70 top_iph
[all...]
H A Dah6.c225 struct ipv6hdr *top_iph; local
238 top_iph = (struct ipv6hdr *)skb->data;
239 top_iph->payload_len = htons(skb->len - sizeof(*top_iph));
247 memcpy(tmp_base, top_iph, sizeof(tmp_base));
259 memcpy(tmp_ext, &top_iph->saddr, extlen);
261 memcpy(tmp_ext, &top_iph->daddr, extlen);
263 err = ipv6_clear_mutable_options(top_iph,
265 sizeof(*top_iph),
274 top_iph
[all...]
H A Dxfrm6_mode_beet.c36 struct ipv6hdr *iph, *top_iph; local
50 top_iph = ipv6_hdr(skb);
54 ipv6_addr_copy(&top_iph->saddr, (struct in6_addr *)&x->props.saddr);
55 ipv6_addr_copy(&top_iph->daddr, (struct in6_addr *)&x->id.daddr);
H A Dxfrm6_tunnel.c245 struct ipv6hdr *top_iph; local
247 top_iph = (struct ipv6hdr *)skb->data;
248 top_iph->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
H A Desp6.c45 struct ipv6hdr *top_iph; local
91 top_iph = (struct ipv6hdr *)__skb_push(skb, hdr_len);
93 top_iph->payload_len = htons(skb->len + alen - sizeof(*top_iph));
H A Dipcomp6.c126 struct ipv6hdr *top_iph; local
162 top_iph = (struct ipv6hdr *)skb->data;
164 top_iph->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Dxfrm4_mode_tunnel.c46 struct iphdr *iph, *top_iph; local
54 top_iph = ip_hdr(skb);
56 top_iph->ihl = 5;
57 top_iph->version = 4;
63 top_iph->protocol = IPPROTO_IPIP;
64 top_iph->tos = INET_ECN_encapsulate(iph->tos, iph->tos);
65 top_iph->frag_off = (flags & XFRM_STATE_NOPMTUDISC) ?
71 top_iph->protocol = IPPROTO_IPV6;
72 top_iph->tos = INET_ECN_encapsulate(iph->tos, ipv6_get_dsfield(ipv6h));
73 top_iph
[all...]
H A Dah4.c60 struct iphdr *iph, *top_iph; local
68 top_iph = ip_hdr(skb);
71 iph->tos = top_iph->tos;
72 iph->ttl = top_iph->ttl;
73 iph->frag_off = top_iph->frag_off;
75 if (top_iph->ihl != 5) {
76 iph->daddr = top_iph->daddr;
77 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
78 err = ip_clear_mutable_options(top_iph,
[all...]
H A Dxfrm4_mode_beet.c32 struct iphdr *iph, *top_iph; local
45 top_iph = ip_hdr(skb);
48 memmove(top_iph, iph, sizeof(*iph));
57 ph->nexthdr = top_iph->protocol;
61 top_iph->protocol = IPPROTO_BEETPH;
62 top_iph->ihl = sizeof(struct iphdr) / 4;
65 top_iph->saddr = x->props.saddr.a4;
66 top_iph->daddr = x->id.daddr.a4;
H A Desp4.c18 struct iphdr *top_iph; local
63 top_iph = ip_hdr(skb);
65 top_iph->ihl * 4);
66 top_iph->tot_len = htons(skb->len + alen);
67 *(skb_tail_pointer(trailer) - 1) = top_iph->protocol;
78 uh->len = htons(skb->len + alen - top_iph->ihl*4);
93 top_iph->protocol = IPPROTO_UDP;
95 top_iph->protocol = IPPROTO_ESP;
137 ip_send_check(top_iph);

Completed in 41 milliseconds