Home
last modified time | relevance | path

Searched refs:ipv6h (Results 1 – 10 of 10) sorted by relevance

/linux-3.4.99/include/net/
Ddsfield.h21 static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) in ipv6_get_dsfield() argument
23 return ntohs(*(const __be16 *)ipv6h) >> 4; in ipv6_get_dsfield()
43 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield() argument
48 tmp = ntohs(*(__be16 *) ipv6h); in ipv6_change_dsfield()
50 *(__be16 *) ipv6h = htons(tmp); in ipv6_change_dsfield()
/linux-3.4.99/net/ipv6/
Dip6_tunnel.c375 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *) raw; in parse_tlv_tnl_enc_lim() local
376 __u8 nexthdr = ipv6h->nexthdr; in parse_tlv_tnl_enc_lim()
377 __u16 off = sizeof (*ipv6h); in parse_tlv_tnl_enc_lim()
436 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *) skb->data; in ip6_tnl_err() local
450 if ((t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->daddr, in ip6_tnl_err()
451 &ipv6h->saddr)) == NULL) in ip6_tnl_err()
507 if ((len = sizeof (*ipv6h) + ntohs(ipv6h->payload_len)) > mtu) { in ip6_tnl_err()
672 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument
675 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate()
685 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate() argument
[all …]
Daf_inet6.c747 const struct ipv6hdr *ipv6h; in ipv6_gso_send_check() local
751 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_send_check()
754 ipv6h = ipv6_hdr(skb); in ipv6_gso_send_check()
755 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_send_check()
760 ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr)]); in ipv6_gso_send_check()
776 struct ipv6hdr *ipv6h; in ipv6_gso_segment() local
795 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment()
798 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment()
799 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_segment()
802 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment()
[all …]
Dexthdrs.c203 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local
228 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao()
240 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
246 tmp_addr = ipv6h->saddr; in ipv6_dest_hao()
247 ipv6h->saddr = hao->addr; in ipv6_dest_hao()
Dtcp_ipv6.c780 const struct ipv6hdr *ipv6h; in tcp_v6_gso_send_check() local
786 ipv6h = ipv6_hdr(skb); in tcp_v6_gso_send_check()
791 __tcp_v6_send_check(skb, &ipv6h->saddr, &ipv6h->daddr); in tcp_v6_gso_send_check()
929 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local
952 &tcp_hashinfo, &ipv6h->daddr, in tcp_v6_send_reset()
958 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); in tcp_v6_send_reset()
966 key = sk ? tcp_v6_md5_do_lookup(sk, &ipv6h->saddr) : NULL; in tcp_v6_send_reset()
Dip6mr.c1908 struct ipv6hdr *ipv6h; in ip6mr_forward2() local
1928 ipv6h = ipv6_hdr(skb); in ip6mr_forward2()
1932 .daddr = ipv6h->daddr, in ip6mr_forward2()
1962 if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) in ip6mr_forward2()
1965 ipv6h = ipv6_hdr(skb); in ip6mr_forward2()
1966 ipv6h->hop_limit--; in ip6mr_forward2()
Dudp.c1290 const struct ipv6hdr *ipv6h; in udp6_ufo_send_check() local
1296 ipv6h = ipv6_hdr(skb); in udp6_ufo_send_check()
1299 uh->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, skb->len, in udp6_ufo_send_check()
/linux-3.4.99/net/netfilter/
Dxt_TCPOPTSTRIP.c87 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpoptstrip_tg6() local
92 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6()
93 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
98 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpoptstrip_tg6()
Dxt_TCPMSS.c205 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6() local
211 nexthdr = ipv6h->nexthdr; in tcpmss_tg6()
212 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6()
218 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6()
222 ipv6h = ipv6_hdr(skb); in tcpmss_tg6()
223 ipv6h->payload_len = htons(ntohs(ipv6h->payload_len) + ret); in tcpmss_tg6()
/linux-3.4.99/drivers/net/ethernet/brocade/bna/
Dbnad.c2257 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in bnad_tso_prepare() local
2259 ipv6h->payload_len = 0; in bnad_tso_prepare()
2261 ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, 0, in bnad_tso_prepare()