/kernel/linux/linux-5.10/samples/bpf/ |
D | xdp_adjust_tail_kern.c | 83 struct icmphdr *icmp_hdr; in send_icmp4_too_big() local 93 icmp_hdr = data + off; in send_icmp4_too_big() 96 icmp_hdr->type = ICMP_DEST_UNREACH; in send_icmp4_too_big() 97 icmp_hdr->code = ICMP_FRAG_NEEDED; in send_icmp4_too_big() 98 icmp_hdr->un.frag.mtu = htons(max_pcktsz - sizeof(struct ethhdr)); in send_icmp4_too_big() 99 icmp_hdr->checksum = 0; in send_icmp4_too_big() 100 ipv4_csum(icmp_hdr, ICMP_TOOBIG_PAYLOAD_SIZE, &csum); in send_icmp4_too_big() 101 icmp_hdr->checksum = csum; in send_icmp4_too_big()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_xdp_noinline.c | 429 struct icmphdr *icmp_hdr; in send_icmp_reply() local 443 icmp_hdr = data + off; in send_icmp_reply() 444 icmp_hdr->type = 0; in send_icmp_reply() 445 icmp_hdr->checksum += 0x0007; in send_icmp_reply() 462 struct icmp6hdr *icmp_hdr; in send_icmp6_reply() local 473 icmp_hdr = data + off; in send_icmp6_reply() 474 icmp_hdr->icmp6_type = 129; in send_icmp6_reply() 475 icmp_hdr->icmp6_cksum -= 0x0001; in send_icmp6_reply() 487 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 490 icmp_hdr = data + off; in parse_icmpv6() [all …]
|
D | test_l4lb.c | 239 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 242 icmp_hdr = data + off; in parse_icmpv6() 243 if (icmp_hdr + 1 > data_end) in parse_icmpv6() 245 if (icmp_hdr->icmp6_type != ICMPV6_PKT_TOOBIG) in parse_icmpv6() 261 struct icmphdr *icmp_hdr; in parse_icmp() local 264 icmp_hdr = data + off; in parse_icmp() 265 if (icmp_hdr + 1 > data_end) in parse_icmp() 267 if (icmp_hdr->type != ICMP_DEST_UNREACH || in parse_icmp() 268 icmp_hdr->code != ICMP_FRAG_NEEDED) in parse_icmp()
|
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()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | sysctl_net_ipv6.c | 234 net->ipv6.sysctl.icmp_hdr = in ipv6_sysctl_net_init() 236 if (!net->ipv6.sysctl.icmp_hdr) in ipv6_sysctl_net_init() 263 ipv6_icmp_table = net->ipv6.sysctl.icmp_hdr->ctl_table_arg; in ipv6_sysctl_net_exit() 265 unregister_net_sysctl_table(net->ipv6.sysctl.icmp_hdr); in ipv6_sysctl_net_exit()
|
D | sit.c | 525 const int type = icmp_hdr(skb)->type; in ipip6_err() 526 const int code = icmp_hdr(skb)->code; in ipip6_err() 553 data_len = icmp_hdr(skb)->un.reserved[1] * 4; /* RFC 4884 4.1 */ in ipip6_err()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ipcomp.c | 30 switch (icmp_hdr(skb)->type) { in ipcomp4_err() 32 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ipcomp4_err() 46 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ipcomp4_err()
|
D | icmp.c | 383 struct icmphdr *icmph = icmp_hdr(skb); in icmp_push_reply() 871 icmph = icmp_hdr(skb); in icmp_unreach() 978 icmp_socket_deliver(skb, ntohl(icmp_hdr(skb)->un.gateway)); in icmp_redirect() 1002 icmp_param.data.icmph = *icmp_hdr(skb); in icmp_echo() 1038 icmp_param.data.icmph = *icmp_hdr(skb); in icmp_timestamp() 1097 icmph = icmp_hdr(skb); in icmp_rcv() 1215 int type = icmp_hdr(skb)->type; in icmp_err() 1216 int code = icmp_hdr(skb)->code; in icmp_err()
|
D | ah4.c | 449 switch (icmp_hdr(skb)->type) { in ah4_err() 451 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ah4_err() 464 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ah4_err()
|
D | ip_vti.c | 350 switch (icmp_hdr(skb)->type) { in vti4_err() 352 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in vti4_err() 365 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in vti4_err()
|
D | ip_gre.c | 139 const int type = icmp_hdr(skb)->type; in ipgre_err() 140 const int code = icmp_hdr(skb)->code; in ipgre_err() 152 iph = (const struct iphdr *)(icmp_hdr(skb) + 1); in ipgre_err() 182 data_len = icmp_hdr(skb)->un.reserved[1] * 4; /* RFC 4884 4.1 */ in ipgre_err() 229 const int type = icmp_hdr(skb)->type; in gre_err() 230 const int code = icmp_hdr(skb)->code; in gre_err()
|
D | ping.c | 496 type = icmp_hdr(skb)->type; in ping_err() 497 code = icmp_hdr(skb)->code; in ping_err() 650 memcpy(icmp_hdr(skb), &pfh->icmph, sizeof(struct icmphdr)); in ping_v4_push_pending_frames() 972 struct icmphdr *icmph = icmp_hdr(skb); in ping_rcv()
|
D | ipip.c | 133 const int type = icmp_hdr(skb)->type; in ipip_err() 134 const int code = icmp_hdr(skb)->code; in ipip_err()
|
D | ip_sockglue.c | 396 switch (icmp_hdr(skb)->type) { in ipv4_icmp_error_rfc4884() 401 icmp_hdr(skb)->un.reserved[1] * 4); in ipv4_icmp_error_rfc4884() 417 serr->ee.ee_type = icmp_hdr(skb)->type; in ip_icmp_error() 418 serr->ee.ee_code = icmp_hdr(skb)->code; in ip_icmp_error() 422 serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - in ip_icmp_error()
|
D | esp4.c | 985 switch (icmp_hdr(skb)->type) { in esp4_err() 987 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in esp4_err() 1000 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in esp4_err()
|
D | raw.c | 228 const int type = icmp_hdr(skb)->type; in raw_err() 229 const int code = icmp_hdr(skb)->code; in raw_err()
|
D | ip_tunnel_core.c | 263 const struct icmphdr *icmph = icmp_hdr(skb); in iptunnel_pmtud_check_icmp()
|
D | tcp_ipv4.c | 471 const int type = icmp_hdr(skb)->type; in tcp_v4_err() 472 const int code = icmp_hdr(skb)->code; in tcp_v4_err()
|
D | udp.c | 701 const int type = icmp_hdr(skb)->type; in __udp4_lib_err() 702 const int code = icmp_hdr(skb)->code; in __udp4_lib_err()
|
/kernel/linux/linux-5.10/include/linux/ |
D | icmp.h | 20 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) in icmp_hdr() function
|
/kernel/linux/linux-5.10/include/net/netns/ |
D | ipv6.h | 19 struct ctl_table_header *icmp_hdr; member
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_interface.c | 438 switch (icmp_hdr(skb)->type) { in xfrmi4_err() 440 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in xfrmi4_err() 459 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in xfrmi4_err()
|
/kernel/linux/linux-5.10/net/dccp/ |
D | ipv4.c | 239 const int type = icmp_hdr(skb)->type; in dccp_v4_err() 240 const int code = icmp_hdr(skb)->code; in dccp_v4_err()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | input.c | 578 const int type = icmp_hdr(skb)->type; in sctp_v4_err() 579 const int code = icmp_hdr(skb)->code; in sctp_v4_err()
|
/kernel/linux/linux-5.10/net/openvswitch/ |
D | flow.c | 601 struct icmphdr *icmp = icmp_hdr(skb); in key_extract_l3l4()
|