| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp_noinline.c | 403 struct icmphdr *icmp_hdr; in send_icmp_reply() local 416 icmp_hdr = data + off; in send_icmp_reply() 417 icmp_hdr->type = 0; in send_icmp_reply() 418 icmp_hdr->checksum += 0x0007; in send_icmp_reply() 435 struct icmp6hdr *icmp_hdr; in send_icmp6_reply() local 446 icmp_hdr = data + off; in send_icmp6_reply() 447 icmp_hdr->icmp6_type = 129; in send_icmp6_reply() 448 icmp_hdr->icmp6_cksum -= 0x0001; in send_icmp6_reply() 460 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 463 icmp_hdr = data + off; in parse_icmpv6() [all …]
|
| H A D | test_l4lb_noinline.c | 236 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 239 icmp_hdr = data + off; in parse_icmpv6() 240 if (icmp_hdr + 1 > data_end) in parse_icmpv6() 242 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6() 258 struct icmphdr *icmp_hdr; in parse_icmp() local 261 icmp_hdr = data + off; in parse_icmp() 262 if (icmp_hdr + 1 > data_end) in parse_icmp() 264 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp() 265 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
|
| H A D | test_l4lb.c | 237 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 240 icmp_hdr = data + off; in parse_icmpv6() 241 if (icmp_hdr + 1 > data_end) in parse_icmpv6() 243 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6() 259 struct icmphdr *icmp_hdr; in parse_icmp() local 262 icmp_hdr = data + off; in parse_icmp() 263 if (icmp_hdr + 1 > data_end) in parse_icmp() 265 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp() 266 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
|
| H A D | test_l4lb_noinline_dynptr.c | 239 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 242 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6() 243 if (!icmp_hdr) in parse_icmpv6() 246 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6() 264 struct icmphdr *icmp_hdr; in parse_icmp() local 267 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer_icmp, sizeof(buffer_icmp)); in parse_icmp() 268 if (!icmp_hdr) in parse_icmp() 270 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp() 271 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
|
| /linux/net/ipv4/ |
| H A D | ipcomp.c | 30 switch (icmp_hdr(skb)->type) { in ipcomp4_err() 32 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ipcomp4_err() 47 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ipcomp4_err()
|
| H A D | icmp.c | 396 struct icmphdr *icmph = icmp_hdr(skb); in icmp_push_reply() 1119 icmph = icmp_hdr(skb); in icmp_unreach() 1228 icmp_socket_deliver(skb, ntohl(icmp_hdr(skb)->un.gateway)); in icmp_redirect() 1257 icmp_param->data.icmph = *icmp_hdr(skb); in icmp_echo() 1411 icmp_param->data.icmph = *icmp_hdr(skb); in icmp_timestamp() 1475 icmph = icmp_hdr(skb); in icmp_rcv() 1613 int type = icmp_hdr(skb)->type; in icmp_err() 1614 int code = icmp_hdr(skb)->code; in icmp_err()
|
| H A D | ah4.c | 456 switch (icmp_hdr(skb)->type) { in ah4_err() 458 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ah4_err() 472 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ah4_err()
|
| H A D | ip_vti.c | 356 switch (icmp_hdr(skb)->type) { in vti4_err() 358 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in vti4_err() 372 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in vti4_err()
|
| H A D | ip_gre.c | 142 const int type = icmp_hdr(skb)->type; in ipgre_err() 143 const int code = icmp_hdr(skb)->code; in ipgre_err() 154 iph = (const struct iphdr *)(icmp_hdr(skb) + 1); in ipgre_err() 195 data_len = icmp_hdr(skb)->un.reserved[1] * 4; /* RFC 4884 4.1 */ in ipgre_err() 236 const int type = icmp_hdr(skb)->type; in gre_err() 237 const int code = icmp_hdr(skb)->code; in gre_err()
|
| H A D | ipip.c | 134 const int type = icmp_hdr(skb)->type; in ipip_err() 135 const int code = icmp_hdr(skb)->code; in ipip_err()
|
| H A D | esp4.c | 942 switch (icmp_hdr(skb)->type) { in esp4_err() 944 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in esp4_err() 958 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in esp4_err()
|
| H A D | raw.c | 211 const int type = icmp_hdr(skb)->type; in raw_err() 212 const int code = icmp_hdr(skb)->code; in raw_err()
|
| H A D | ip_tunnel_core.c | 284 const struct icmphdr *icmph = icmp_hdr(skb); in iptunnel_pmtud_check_icmp()
|
| H A D | ip_output.c | 1497 icmp_type = icmp_hdr(skb)->type; in __ip_make_skb()
|
| H A D | udp.c | 915 const int type = icmp_hdr(skb)->type; in udp_err() 916 const int code = icmp_hdr(skb)->code; in udp_err()
|
| H A D | route.c | 747 __be32 new_gw = icmp_hdr(skb)->un.gateway; in __ip_do_redirect() 755 switch (icmp_hdr(skb)->code & 7) { in __ip_do_redirect()
|
| H A D | tcp_ipv4.c | 496 const int type = icmp_hdr(skb)->type; in tcp_v4_err() 497 const int code = icmp_hdr(skb)->code; in tcp_v4_err()
|
| /linux/net/ipv6/ |
| H A D | sysctl_net_ipv6.c | 289 net->ipv6.sysctl.icmp_hdr = register_net_sysctl_sz(net, in ipv6_sysctl_net_init() 293 if (!net->ipv6.sysctl.icmp_hdr) in ipv6_sysctl_net_init() 320 ipv6_icmp_table = net->ipv6.sysctl.icmp_hdr->ctl_table_arg; in ipv6_sysctl_net_exit() 322 unregister_net_sysctl_table(net->ipv6.sysctl.icmp_hdr); in ipv6_sysctl_net_exit()
|
| /linux/include/net/netns/ |
| H A D | ipv6.h | 19 struct ctl_table_header *icmp_hdr; member
|
| /linux/drivers/net/wireless/intel/iwlwifi/mei/ |
| H A D | net.c | 229 icmp = icmp_hdr(skb); in iwl_mei_rx_filter_ipv4()
|
| /linux/net/xfrm/ |
| H A D | xfrm_interface_core.c | 614 switch (icmp_hdr(skb)->type) { in xfrmi4_err() 616 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in xfrmi4_err() 636 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in xfrmi4_err()
|
| /linux/net/dccp/ |
| H A D | ipv4.c | |
| /linux/net/sctp/ |
| H A D | input.c | 610 const int type = icmp_hdr(skb)->type; in sctp_v4_err() 611 const int code = icmp_hdr(skb)->code; in sctp_v4_err()
|