Searched refs:icmp6h (Results 1 – 7 of 7) sorted by relevance
/net/netfilter/ |
D | nf_conntrack_proto_icmpv6.c | 187 const struct icmp6hdr *icmp6h; in nf_conntrack_icmpv6_error() local 191 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv6_error() 192 if (icmp6h == NULL) { in nf_conntrack_icmpv6_error() 204 type = icmp6h->icmp6_type - 130; in nf_conntrack_icmpv6_error() 211 if (icmp6h->icmp6_type == NDISC_REDIRECT) in nf_conntrack_icmpv6_error() 215 if (icmp6h->icmp6_type >= 128) in nf_conntrack_icmpv6_error() 220 dataoff += sizeof(*icmp6h); in nf_conntrack_icmpv6_error()
|
D | xt_HMARK.c | 151 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()
|
/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 250 struct icmp6hdr *icmp6h; in nft_reject_br_send_v6_unreach() local 277 icmp6h = skb_put_zero(nskb, sizeof(struct icmp6hdr)); in nft_reject_br_send_v6_unreach() 278 icmp6h->icmp6_type = ICMPV6_DEST_UNREACH; in nft_reject_br_send_v6_unreach() 279 icmp6h->icmp6_code = code; in nft_reject_br_send_v6_unreach() 284 icmp6h->icmp6_cksum = in nft_reject_br_send_v6_unreach() 288 csum_partial(icmp6h, in nft_reject_br_send_v6_unreach()
|
/net/sched/ |
D | act_csum.c | 185 struct icmp6hdr *icmp6h; in tcf_csum_ipv6_icmp() local 188 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp() 189 if (icmp6h == NULL) in tcf_csum_ipv6_icmp() 193 icmp6h->icmp6_cksum = 0; in tcf_csum_ipv6_icmp() 194 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp() 195 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_icmp()
|
/net/ipv6/ |
D | icmp.c | 260 struct icmp6hdr *icmp6h; in icmpv6_push_pending_frames() local 266 icmp6h = icmp6_hdr(skb); in icmpv6_push_pending_frames() 267 memcpy(icmp6h, thdr, sizeof(struct icmp6hdr)); in icmpv6_push_pending_frames() 268 icmp6h->icmp6_cksum = 0; in icmpv6_push_pending_frames() 271 skb->csum = csum_partial(icmp6h, in icmpv6_push_pending_frames() 273 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames() 284 tmp_csum = csum_partial(icmp6h, in icmpv6_push_pending_frames() 286 icmp6h->icmp6_cksum = csum_ipv6_magic(&fl6->saddr, in icmpv6_push_pending_frames()
|
D | ndisc.c | 477 struct icmp6hdr *icmp6h = icmp6_hdr(skb); in ndisc_send_skb() local 480 type = icmp6h->icmp6_type; in ndisc_send_skb() 496 icmp6h->icmp6_cksum = csum_ipv6_magic(saddr, daddr, skb->len, in ndisc_send_skb() 498 csum_partial(icmp6h, in ndisc_send_skb() 1125 struct icmp6hdr *icmp6h = (struct icmp6hdr *)skb_transport_header(ra); in ndisc_ra_useropt() local 1149 ndmsg->nduseropt_icmp_type = icmp6h->icmp6_type; in ndisc_ra_useropt() 1150 ndmsg->nduseropt_icmp_code = icmp6h->icmp6_code; in ndisc_ra_useropt()
|
/net/bridge/ |
D | br_multicast.c | 988 struct icmp6hdr *icmp6h; in br_ip6_multicast_mld2_report() local 996 if (!ipv6_mc_may_pull(skb, sizeof(*icmp6h))) in br_ip6_multicast_mld2_report() 999 icmp6h = icmp6_hdr(skb); in br_ip6_multicast_mld2_report() 1000 num = ntohs(icmp6h->icmp6_dataun.un_data16[1]); in br_ip6_multicast_mld2_report() 1001 len = skb_transport_offset(skb) + sizeof(*icmp6h); in br_ip6_multicast_mld2_report()
|