Home
last modified time | relevance | path

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

/linux-4.4.14/net/bridge/netfilter/
Dnft_reject_bridge.c209 struct icmp6hdr *icmp6h; in nft_reject_br_send_v6_unreach() local
237 icmp6h = (struct icmp6hdr *)skb_put(nskb, sizeof(struct icmp6hdr)); in nft_reject_br_send_v6_unreach()
238 memset(icmp6h, 0, sizeof(*icmp6h)); in nft_reject_br_send_v6_unreach()
239 icmp6h->icmp6_type = ICMPV6_DEST_UNREACH; in nft_reject_br_send_v6_unreach()
240 icmp6h->icmp6_code = code; in nft_reject_br_send_v6_unreach()
246 icmp6h->icmp6_cksum = in nft_reject_br_send_v6_unreach()
250 csum_partial(icmp6h, in nft_reject_br_send_v6_unreach()
/linux-4.4.14/net/sched/
Dact_csum.c155 struct icmp6hdr *icmp6h; in tcf_csum_ipv6_icmp() local
158 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp()
159 if (icmp6h == NULL) in tcf_csum_ipv6_icmp()
163 icmp6h->icmp6_cksum = 0; in tcf_csum_ipv6_icmp()
164 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp()
165 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_icmp()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c202 const struct icmp6hdr *icmp6h; in icmpv6_error() local
206 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in icmpv6_error()
207 if (icmp6h == NULL) { in icmpv6_error()
222 type = icmp6h->icmp6_type - 130; in icmpv6_error()
232 if (icmp6h->icmp6_type >= 128) in icmpv6_error()
/linux-4.4.14/net/netfilter/
Dxt_HMARK.c152 struct icmp6hdr *icmp6h, _ih6; in get_inner6_hdr() local
154 icmp6h = skb_header_pointer(skb, *offset, sizeof(_ih6), &_ih6); in get_inner6_hdr()
155 if (icmp6h == NULL) in get_inner6_hdr()
158 if (icmp6h->icmp6_type && icmp6h->icmp6_type < 128) { in get_inner6_hdr()
/linux-4.4.14/net/ipv6/
Dicmp.c243 struct icmp6hdr *icmp6h; in icmpv6_push_pending_frames() local
250 icmp6h = icmp6_hdr(skb); in icmpv6_push_pending_frames()
251 memcpy(icmp6h, thdr, sizeof(struct icmp6hdr)); in icmpv6_push_pending_frames()
252 icmp6h->icmp6_cksum = 0; in icmpv6_push_pending_frames()
255 skb->csum = csum_partial(icmp6h, in icmpv6_push_pending_frames()
257 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames()
268 tmp_csum = csum_partial(icmp6h, in icmpv6_push_pending_frames()
270 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames()
Dndisc.c439 struct icmp6hdr *icmp6h = icmp6_hdr(skb); in ndisc_send_skb() local
442 type = icmp6h->icmp6_type; in ndisc_send_skb()
460 icmp6h->icmp6_cksum = csum_ipv6_magic(saddr, daddr, skb->len, in ndisc_send_skb()
462 csum_partial(icmp6h, in ndisc_send_skb()
1037 struct icmp6hdr *icmp6h = (struct icmp6hdr *)skb_transport_header(ra); in ndisc_ra_useropt() local
1061 ndmsg->nduseropt_icmp_type = icmp6h->icmp6_type; in ndisc_ra_useropt()
1062 ndmsg->nduseropt_icmp_code = icmp6h->icmp6_code; in ndisc_ra_useropt()
/linux-4.4.14/net/bridge/
Dbr_multicast.c1058 struct icmp6hdr *icmp6h; in br_ip6_multicast_mld2_report() local
1065 if (!pskb_may_pull(skb, sizeof(*icmp6h))) in br_ip6_multicast_mld2_report()
1068 icmp6h = icmp6_hdr(skb); in br_ip6_multicast_mld2_report()
1069 num = ntohs(icmp6h->icmp6_dataun.un_data16[1]); in br_ip6_multicast_mld2_report()
1070 len = skb_transport_offset(skb) + sizeof(*icmp6h); in br_ip6_multicast_mld2_report()