Home
last modified time | relevance | path

Searched refs:icmphdr (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.15/net/bridge/netfilter/
Debt_ip6.c34 } icmphdr; member
97 pptr->icmphdr.type < info->icmpv6_type[0] || in ebt_ip6_mt()
98 pptr->icmphdr.type > info->icmpv6_type[1] || in ebt_ip6_mt()
99 pptr->icmphdr.code < info->icmpv6_code[0] || in ebt_ip6_mt()
100 pptr->icmphdr.code > info->icmpv6_code[1])) in ebt_ip6_mt()
Debt_ip.c31 } icmphdr; member
90 pptr->icmphdr.type < info->icmp_type[0] || in ebt_ip_mt()
91 pptr->icmphdr.type > info->icmp_type[1] || in ebt_ip_mt()
92 pptr->icmphdr.code < info->icmp_code[0] || in ebt_ip_mt()
93 pptr->icmphdr.code > info->icmp_code[1])) in ebt_ip_mt()
/Linux-v5.15/net/ipv4/
Dicmp.c106 struct icmphdr icmph;
381 struct icmphdr *icmph = icmp_hdr(skb); in icmp_push_reply()
661 offsetof(struct icmphdr, in __icmp_send()
755 room -= sizeof(struct icmphdr); in __icmp_send()
760 icmp_param.head_len = sizeof(struct icmphdr); in __icmp_send()
854 struct icmphdr *icmph; in icmp_unreach()
1008 icmp_param.head_len = sizeof(struct icmphdr); in icmp_echo()
1026 bool icmp_build_probe(struct sk_buff *skb, struct icmphdr *icmphdr) in icmp_build_probe() argument
1042 if (!(ntohs(icmphdr->un.echo.sequence) & 1)) in icmp_build_probe()
1045 icmphdr->un.echo.sequence &= htons(0xFF00); in icmp_build_probe()
[all …]
Dping.c469 struct icmphdr *icmph; in ping_err()
482 icmph = (struct icmphdr *)(skb->data + offset); in ping_err()
487 icmph = (struct icmphdr *) (skb->data + offset); in ping_err()
593 fraglen -= sizeof(struct icmphdr); in ping_getfrag()
596 if (!csum_and_copy_from_iter_full(to + sizeof(struct icmphdr), in ping_getfrag()
600 } else if (offset < sizeof(struct icmphdr)) { in ping_getfrag()
632 sizeof(struct icmphdr), pfh->wcheck); in ping_v4_push_pending_frames()
634 memcpy(icmp_hdr(skb), &pfh->icmph, sizeof(struct icmphdr)); in ping_v4_push_pending_frames()
667 type = ((struct icmphdr *) user_icmph)->type; in ping_common_sendmsg()
668 code = ((struct icmphdr *) user_icmph)->code; in ping_common_sendmsg()
[all …]
Draw.c82 struct icmphdr icmph;
145 struct icmphdr _hdr; in icmp_filter()
146 const struct icmphdr *hdr; in icmp_filter()
424 length >= iphlen + sizeof(struct icmphdr)) in raw_send_hdrinc()
425 icmp_out_count(net, ((struct icmphdr *) in raw_send_hdrinc()
Dip_tunnel_core.c198 struct icmphdr *icmph; in iptunnel_pmtud_build_icmp()
220 *icmph = (struct icmphdr) { in iptunnel_pmtud_build_icmp()
263 const struct icmphdr *icmph = icmp_hdr(skb); in iptunnel_pmtud_check_icmp()
/Linux-v5.15/include/linux/
Dicmp.h20 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) in icmp_hdr()
22 return (struct icmphdr *)skb_transport_header(skb); in icmp_hdr()
/Linux-v5.15/samples/bpf/
Dxdp_adjust_tail_kern.c72 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big()
83 struct icmphdr *icmp_hdr; in send_icmp4_too_big()
94 off += sizeof(struct icmphdr); in send_icmp4_too_big()
/Linux-v5.15/include/net/
Dicmp.h60 bool icmp_build_probe(struct sk_buff *skb, struct icmphdr *icmphdr);
Dping.h57 struct icmphdr icmph;
/Linux-v5.15/net/ipv4/netfilter/
Dnf_socket_ipv4.c26 struct icmphdr *icmph, _icmph; in extract_icmp4_fields()
38 sizeof(struct icmphdr), in extract_icmp4_fields()
48 sizeof(struct icmphdr) + in extract_icmp4_fields()
Dnf_reject_ipv4.c81 struct icmphdr *icmph; in nf_reject_skb_v4_unreach()
109 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + in nf_reject_skb_v4_unreach()
121 icmph = skb_put_zero(nskb, sizeof(struct icmphdr)); in nf_reject_skb_v4_unreach()
127 csum = csum_partial((void *)icmph, len + sizeof(struct icmphdr), 0); in nf_reject_skb_v4_unreach()
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dxdping_kern.c64 struct icmphdr *icmph; in icmp_check()
96 struct icmphdr *icmph; in xdping_client()
159 struct icmphdr *icmph; in xdping_server()
Dtest_xdp_noinline.c226 off += sizeof(struct icmphdr) + sizeof(struct iphdr); in calc_offset()
429 struct icmphdr *icmp_hdr; in send_icmp_reply()
438 + sizeof(struct iphdr) + sizeof(struct icmphdr) > data_end) in send_icmp_reply()
512 struct icmphdr *icmp_hdr; in parse_icmp()
522 off += sizeof(struct icmphdr); in parse_icmp()
Dtest_l4lb.c261 struct icmphdr *icmp_hdr; in parse_icmp()
270 off += sizeof(struct icmphdr); in parse_icmp()
Dtest_l4lb_noinline.c258 struct icmphdr *icmp_hdr; in parse_icmp()
267 off += sizeof(struct icmphdr); in parse_icmp()
/Linux-v5.15/net/netfilter/
Dnf_conntrack_proto_icmp.c30 const struct icmphdr *hp; in icmp_pkt_to_tuple()
31 struct icmphdr _hdr; in icmp_pkt_to_tuple()
209 const struct icmphdr *icmph; in nf_conntrack_icmpv4_error()
210 struct icmphdr _ih; in nf_conntrack_icmpv4_error()
Dxt_HMARK.c233 const struct icmphdr *icmph; in get_inner_hdr()
234 struct icmphdr _ih; in get_inner_hdr()
Dnf_nat_proto.c228 struct icmphdr *hdr; in icmp_manip_pkt()
233 hdr = (struct icmphdr *)(skb->data + hdroff); in icmp_manip_pkt()
565 struct icmphdr icmp; in nf_nat_icmp_reply_translation()
Dnf_log_syslog.c383 const struct icmphdr *ich; in dump_ipv4_packet()
384 struct icmphdr _icmph; in dump_ipv4_packet()
/Linux-v5.15/net/netfilter/ipset/
Dip_set_getport.c67 struct icmphdr _ich; in get_port()
68 const struct icmphdr *ic; in get_port()
/Linux-v5.15/drivers/staging/r8188eu/core/
Drtw_br_ext.c168 struct icmp6hdr *icmphdr = (struct icmp6hdr *)data; in update_nd_link_layer_addr() local
171 if (icmphdr->icmp6_type == NDISC_ROUTER_SOLICITATION) { in update_nd_link_layer_addr()
182 } else if (icmphdr->icmp6_type == NDISC_ROUTER_ADVERTISEMENT) { in update_nd_link_layer_addr()
193 } else if (icmphdr->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION) { in update_nd_link_layer_addr()
204 } else if (icmphdr->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT) { in update_nd_link_layer_addr()
215 } else if (icmphdr->icmp6_type == NDISC_REDIRECT) { in update_nd_link_layer_addr()
/Linux-v5.15/include/uapi/linux/
Dicmp.h89 struct icmphdr { struct
/Linux-v5.15/net/sctp/
Dinput.c654 struct icmphdr *hdr; in sctp_udp_v4_err()
665 hdr = (struct icmphdr *)(skb_network_header(skb) - sizeof(struct icmphdr)); in sctp_udp_v4_err()
/Linux-v5.15/net/sched/
Dact_nat.c199 struct icmphdr *icmph; in tcf_nat_act()

12