Home
last modified time | relevance | path

Searched refs:icmp6h (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_icmpv6.c188 const struct icmp6hdr *icmp6h; in nf_conntrack_icmpv6_error() local
192 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv6_error()
193 if (icmp6h == NULL) { in nf_conntrack_icmpv6_error()
205 type = icmp6h->icmp6_type - 130; in nf_conntrack_icmpv6_error()
212 if (icmp6h->icmp6_type == NDISC_REDIRECT) in nf_conntrack_icmpv6_error()
216 if (icmp6h->icmp6_type >= 128) in nf_conntrack_icmpv6_error()
221 dataoff += sizeof(*icmp6h); in nf_conntrack_icmpv6_error()
H A Dxt_HMARK.c151 struct icmp6hdr *icmp6h, _ih6; in get_inner6_hdr() local
153 icmp6h = skb_header_pointer(skb, *offset, sizeof(_ih6), &_ih6); in get_inner6_hdr()
154 if (icmp6h == NULL) in get_inner6_hdr()
157 if (icmp6h->icmp6_type && icmp6h->icmp6_type < 128) { in get_inner6_hdr()
/openbmc/linux/net/ipv6/netfilter/
H A Dnf_reject_ipv6.c101 struct icmp6hdr *icmp6h; in nf_reject_skb_v6_unreach() local
130 icmp6h = skb_put_zero(nskb, sizeof(struct icmp6hdr)); in nf_reject_skb_v6_unreach()
131 icmp6h->icmp6_type = ICMPV6_DEST_UNREACH; in nf_reject_skb_v6_unreach()
132 icmp6h->icmp6_code = code; in nf_reject_skb_v6_unreach()
137 icmp6h->icmp6_cksum = in nf_reject_skb_v6_unreach()
141 csum_partial(icmp6h, in nf_reject_skb_v6_unreach()
/openbmc/linux/net/sched/
H A Dact_csum.c186 struct icmp6hdr *icmp6h; in tcf_csum_ipv6_icmp() local
189 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp()
190 if (icmp6h == NULL) in tcf_csum_ipv6_icmp()
194 icmp6h->icmp6_cksum = 0; in tcf_csum_ipv6_icmp()
195 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp()
196 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_icmp()
/openbmc/linux/net/ipv4/
H A Dip_tunnel_core.c291 struct icmp6hdr *icmp6h; in iptunnel_pmtud_build_icmpv6() local
304 err = pskb_trim(skb, IPV6_MIN_MTU - sizeof(*nip6h) - sizeof(*icmp6h)); in iptunnel_pmtud_build_icmpv6()
308 len = skb->len + sizeof(*icmp6h); in iptunnel_pmtud_build_icmpv6()
309 err = skb_cow(skb, sizeof(*nip6h) + sizeof(*icmp6h) + ETH_HLEN); in iptunnel_pmtud_build_icmpv6()
313 icmp6h = skb_push(skb, sizeof(*icmp6h)); in iptunnel_pmtud_build_icmpv6()
314 *icmp6h = (struct icmp6hdr) { in iptunnel_pmtud_build_icmpv6()
336 icmp6h->icmp6_cksum = csum_ipv6_magic(&nip6h->saddr, &nip6h->daddr, len, in iptunnel_pmtud_build_icmpv6()
375 struct icmp6hdr *icmp6h; in iptunnel_pmtud_check_icmpv6() local
381 icmp6h = (struct icmp6hdr *)(skb_network_header(skb) + offset); in iptunnel_pmtud_check_icmpv6()
382 if (icmpv6_is_err(icmp6h->icmp6_type) || in iptunnel_pmtud_check_icmpv6()
[all …]
/openbmc/linux/net/ipv6/
H A Dicmp.c276 struct icmp6hdr *icmp6h; in icmpv6_push_pending_frames() local
282 icmp6h = icmp6_hdr(skb); in icmpv6_push_pending_frames()
283 memcpy(icmp6h, thdr, sizeof(struct icmp6hdr)); in icmpv6_push_pending_frames()
284 icmp6h->icmp6_cksum = 0; in icmpv6_push_pending_frames()
287 skb->csum = csum_partial(icmp6h, in icmpv6_push_pending_frames()
289 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames()
300 tmp_csum = csum_partial(icmp6h, in icmpv6_push_pending_frames()
302 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames()
H A Dndisc.c479 struct icmp6hdr *icmp6h = icmp6_hdr(skb); in ndisc_send_skb() local
482 type = icmp6h->icmp6_type; in ndisc_send_skb()
498 icmp6h->icmp6_cksum = csum_ipv6_magic(saddr, daddr, skb->len, in ndisc_send_skb()
500 csum_partial(icmp6h, in ndisc_send_skb()
1188 struct icmp6hdr *icmp6h = (struct icmp6hdr *)skb_transport_header(ra); in ndisc_ra_useropt() local
1212 ndmsg->nduseropt_icmp_type = icmp6h->icmp6_type; in ndisc_ra_useropt()
1213 ndmsg->nduseropt_icmp_code = icmp6h->icmp6_code; in ndisc_ra_useropt()