/Linux-v4.19/samples/bpf/ |
D | xdp_adjust_tail_kern.c | 80 struct icmphdr *icmp_hdr; in send_icmp4_too_big() local 90 icmp_hdr = data + off; in send_icmp4_too_big() 93 icmp_hdr->type = ICMP_DEST_UNREACH; in send_icmp4_too_big() 94 icmp_hdr->code = ICMP_FRAG_NEEDED; in send_icmp4_too_big() 95 icmp_hdr->un.frag.mtu = htons(MAX_PCKT_SIZE-sizeof(struct ethhdr)); in send_icmp4_too_big() 96 icmp_hdr->checksum = 0; in send_icmp4_too_big() 97 ipv4_csum(icmp_hdr, ICMP_TOOBIG_PAYLOAD_SIZE, &csum); in send_icmp4_too_big() 98 icmp_hdr->checksum = csum; in send_icmp4_too_big()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_xdp_noinline.c | 440 struct icmphdr *icmp_hdr; in send_icmp_reply() local 454 icmp_hdr = data + off; in send_icmp_reply() 455 icmp_hdr->type = 0; in send_icmp_reply() 456 icmp_hdr->checksum += 0x0007; in send_icmp_reply() 473 struct icmp6hdr *icmp_hdr; in send_icmp6_reply() local 484 icmp_hdr = data + off; in send_icmp6_reply() 485 icmp_hdr->icmp6_type = 129; in send_icmp6_reply() 486 icmp_hdr->icmp6_cksum -= 0x0001; in send_icmp6_reply() 498 struct icmp6hdr *icmp_hdr; in parse_icmpv6() local 501 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 | 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()
|
/Linux-v4.19/net/ipv4/ |
D | ipcomp.c | 34 switch (icmp_hdr(skb)->type) { in ipcomp4_err() 36 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ipcomp4_err() 50 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ipcomp4_err()
|
D | icmp.c | 382 struct icmphdr *icmph = icmp_hdr(skb); in icmp_push_reply() 802 icmph = icmp_hdr(skb); in icmp_unreach() 909 icmp_socket_deliver(skb, icmp_hdr(skb)->un.gateway); in icmp_redirect() 933 icmp_param.data.icmph = *icmp_hdr(skb); in icmp_echo() 969 icmp_param.data.icmph = *icmp_hdr(skb); in icmp_timestamp() 1028 icmph = icmp_hdr(skb); in icmp_rcv() 1087 int type = icmp_hdr(skb)->type; in icmp_err() 1088 int code = icmp_hdr(skb)->code; in icmp_err()
|
D | ah4.c | 448 switch (icmp_hdr(skb)->type) { in ah4_err() 450 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in ah4_err() 463 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in ah4_err()
|
D | ip_vti.c | 305 switch (icmp_hdr(skb)->type) { in vti4_err() 307 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in vti4_err() 320 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in vti4_err()
|
D | ip_gre.c | 144 const int type = icmp_hdr(skb)->type; in ipgre_err() 145 const int code = icmp_hdr(skb)->code; in ipgre_err() 172 data_len = icmp_hdr(skb)->un.reserved[1] * 4; /* RFC 4884 4.1 */ in ipgre_err() 187 iph = (const struct iphdr *)(icmp_hdr(skb) + 1); in ipgre_err() 232 const int type = icmp_hdr(skb)->type; in gre_err() 233 const int code = icmp_hdr(skb)->code; in gre_err()
|
D | ping.c | 495 type = icmp_hdr(skb)->type; in ping_err() 496 code = icmp_hdr(skb)->code; in ping_err() 649 memcpy(icmp_hdr(skb), &pfh->icmph, sizeof(struct icmphdr)); in ping_v4_push_pending_frames() 967 struct icmphdr *icmph = icmp_hdr(skb); in ping_rcv()
|
D | ipip.c | 138 const int type = icmp_hdr(skb)->type; in ipip_err() 139 const int code = icmp_hdr(skb)->code; in ipip_err()
|
D | esp4.c | 807 switch (icmp_hdr(skb)->type) { in esp4_err() 809 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in esp4_err() 822 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in esp4_err()
|
D | ip_sockglue.c | 404 serr->ee.ee_type = icmp_hdr(skb)->type; in ip_icmp_error() 405 serr->ee.ee_code = icmp_hdr(skb)->code; in ip_icmp_error() 409 serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - in ip_icmp_error()
|
D | raw.c | 233 const int type = icmp_hdr(skb)->type; in raw_err() 234 const int code = icmp_hdr(skb)->code; in raw_err()
|
D | tcp_ipv4.c | 433 const int type = icmp_hdr(icmp_skb)->type; in tcp_v4_err() 434 const int code = icmp_hdr(icmp_skb)->code; in tcp_v4_err()
|
D | udp.c | 604 const int type = icmp_hdr(skb)->type; in __udp4_lib_err() 605 const int code = icmp_hdr(skb)->code; in __udp4_lib_err()
|
D | route.c | 729 __be32 new_gw = icmp_hdr(skb)->un.gateway; in __ip_do_redirect() 737 switch (icmp_hdr(skb)->code & 7) { in __ip_do_redirect()
|
/Linux-v4.19/net/ipv6/ |
D | sysctl_net_ipv6.c | 246 net->ipv6.sysctl.icmp_hdr = in ipv6_sysctl_net_init() 248 if (!net->ipv6.sysctl.icmp_hdr) in ipv6_sysctl_net_init() 275 ipv6_icmp_table = net->ipv6.sysctl.icmp_hdr->ctl_table_arg; in ipv6_sysctl_net_exit() 277 unregister_net_sysctl_table(net->ipv6.sysctl.icmp_hdr); in ipv6_sysctl_net_exit()
|
D | sit.c | 493 const int type = icmp_hdr(skb)->type; in ipip6_err() 494 const int code = icmp_hdr(skb)->code; in ipip6_err() 521 data_len = icmp_hdr(skb)->un.reserved[1] * 4; /* RFC 4884 4.1 */ in ipip6_err()
|
/Linux-v4.19/include/linux/ |
D | icmp.h | 23 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) in icmp_hdr() function
|
/Linux-v4.19/include/net/netns/ |
D | ipv6.h | 18 struct ctl_table_header *icmp_hdr; member
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_interface.c | 453 switch (icmp_hdr(skb)->type) { in xfrmi4_err() 455 if (icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) in xfrmi4_err() 474 if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) in xfrmi4_err()
|
/Linux-v4.19/net/dccp/ |
D | ipv4.c | 241 const int type = icmp_hdr(skb)->type; in dccp_v4_err() 242 const int code = icmp_hdr(skb)->code; in dccp_v4_err()
|
/Linux-v4.19/net/sctp/ |
D | input.c | 581 const int type = icmp_hdr(skb)->type; in sctp_v4_err() 582 const int code = icmp_hdr(skb)->code; in sctp_v4_err()
|
/Linux-v4.19/net/openvswitch/ |
D | flow.c | 678 struct icmphdr *icmp = icmp_hdr(skb); in key_extract()
|