Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/bridge/netfilter/
Debt_ip6.c33 } icmphdr; member
96 pptr->icmphdr.type < info->icmpv6_type[0] || in ebt_ip6_mt()
97 pptr->icmphdr.type > info->icmpv6_type[1] || in ebt_ip6_mt()
98 pptr->icmphdr.code < info->icmpv6_code[0] || in ebt_ip6_mt()
99 pptr->icmphdr.code > info->icmpv6_code[1])) in ebt_ip6_mt()
Debt_ip.c30 } icmphdr; member
89 pptr->icmphdr.type < info->icmp_type[0] || in ebt_ip_mt()
90 pptr->icmphdr.type > info->icmp_type[1] || in ebt_ip_mt()
91 pptr->icmphdr.code < info->icmp_code[0] || in ebt_ip_mt()
92 pptr->icmphdr.code > info->icmp_code[1])) in ebt_ip_mt()
Dnft_reject_bridge.c107 struct icmphdr *icmph; in nft_reject_br_send_v4_unreach()
138 nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct icmphdr) + in nft_reject_br_send_v4_unreach()
148 icmph = skb_put_zero(nskb, sizeof(struct icmphdr)); in nft_reject_br_send_v4_unreach()
154 csum = csum_partial((void *)icmph, len + sizeof(struct icmphdr), 0); in nft_reject_br_send_v4_unreach()
/Linux-v4.19/include/linux/
Dicmp.h23 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) in icmp_hdr()
25 return (struct icmphdr *)skb_transport_header(skb); in icmp_hdr()
/Linux-v4.19/samples/bpf/
Dxdp_adjust_tail_kern.c69 int headroom = (int)sizeof(struct iphdr) + (int)sizeof(struct icmphdr); in send_icmp4_too_big()
80 struct icmphdr *icmp_hdr; in send_icmp4_too_big()
91 off += sizeof(struct icmphdr); in send_icmp4_too_big()
/Linux-v4.19/net/ipv4/
Dicmp.c111 struct icmphdr icmph;
382 struct icmphdr *icmph = icmp_hdr(skb); in icmp_push_reply()
636 offsetof(struct icmphdr, in icmp_send()
729 room -= sizeof(struct icmphdr); in icmp_send()
734 icmp_param.head_len = sizeof(struct icmphdr); in icmp_send()
787 struct icmphdr *icmph; in icmp_unreach()
938 icmp_param.head_len = sizeof(struct icmphdr); in icmp_echo()
975 icmp_param.head_len = sizeof(struct icmphdr) + 12; in icmp_timestamp()
995 struct icmphdr *icmph; in icmp_rcv()
1086 struct icmphdr *icmph = (struct icmphdr *)(skb->data + offset); in icmp_err()
Dping.c484 struct icmphdr *icmph; in ping_err()
497 icmph = (struct icmphdr *)(skb->data + offset); in ping_err()
502 icmph = (struct icmphdr *) (skb->data + offset); in ping_err()
608 fraglen -= sizeof(struct icmphdr); in ping_getfrag()
611 if (!csum_and_copy_from_iter_full(to + sizeof(struct icmphdr), in ping_getfrag()
615 } else if (offset < sizeof(struct icmphdr)) { in ping_getfrag()
647 sizeof(struct icmphdr), pfh->wcheck); in ping_v4_push_pending_frames()
649 memcpy(icmp_hdr(skb), &pfh->icmph, sizeof(struct icmphdr)); in ping_v4_push_pending_frames()
681 type = ((struct icmphdr *) user_icmph)->type; in ping_common_sendmsg()
682 code = ((struct icmphdr *) user_icmph)->code; in ping_common_sendmsg()
[all …]
Draw.c86 struct icmphdr icmph;
150 struct icmphdr _hdr; in icmp_filter()
151 const struct icmphdr *hdr; in icmp_filter()
428 length >= iphlen + sizeof(struct icmphdr)) in raw_send_hdrinc()
429 icmp_out_count(net, ((struct icmphdr *) in raw_send_hdrinc()
Droute.c1793 const struct icmphdr *icmph; in ip_multipath_l3_keys()
1795 struct icmphdr _icmph; in ip_multipath_l3_keys()
2766 struct icmphdr *icmph; in inet_rtm_getroute_build_skb()
2768 icmph = skb_put_zero(skb, sizeof(struct icmphdr)); in inet_rtm_getroute_build_skb()
/Linux-v4.19/net/netfilter/
Dnf_conntrack_proto_icmp.c36 const struct icmphdr *hp; in icmp_pkt_to_tuple()
37 struct icmphdr _hdr; in icmp_pkt_to_tuple()
139 + sizeof(struct icmphdr), in icmp_error_message()
183 const struct icmphdr *icmph; in icmp_error()
184 struct icmphdr _ih; in icmp_error()
Dxt_HMARK.c236 const struct icmphdr *icmph; in get_inner_hdr()
237 struct icmphdr _ih; in get_inner_hdr()
/Linux-v4.19/net/ipv4/netfilter/
Dnf_socket_ipv4.c30 struct icmphdr *icmph, _icmph; in extract_icmp4_fields()
50 sizeof(struct icmphdr), in extract_icmp4_fields()
60 sizeof(struct icmphdr) + in extract_icmp4_fields()
Dnf_nat_proto_icmp.c63 struct icmphdr *hdr; in icmp_manip_pkt()
68 hdr = (struct icmphdr *)(skb->data + hdroff); in icmp_manip_pkt()
Dnf_log_ipv4.c115 struct icmphdr _icmph; in dump_ipv4_packet()
116 const struct icmphdr *ich; in dump_ipv4_packet()
Dnf_nat_l3proto_ipv4.c183 struct icmphdr icmp; in nf_nat_icmp_reply_translation()
/Linux-v4.19/net/netfilter/ipset/
Dip_set_getport.c66 struct icmphdr _ich; in get_port()
67 const struct icmphdr *ic; in get_port()
/Linux-v4.19/include/uapi/linux/
Dicmp.h69 struct icmphdr { struct
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c237 off += sizeof(struct icmphdr) + sizeof(struct iphdr); in calc_offset()
440 struct icmphdr *icmp_hdr; in send_icmp_reply()
449 + sizeof(struct iphdr) + sizeof(struct icmphdr) > data_end) in send_icmp_reply()
523 struct icmphdr *icmp_hdr; in parse_icmp()
533 off += sizeof(struct icmphdr); in parse_icmp()
Dtest_l4lb_noinline.c261 struct icmphdr *icmp_hdr; in parse_icmp()
270 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()
/Linux-v4.19/include/net/
Dping.h61 struct icmphdr icmph;
/Linux-v4.19/net/sched/
Dact_nat.c193 struct icmphdr *icmph; in tcf_nat_act()
Dact_csum.c141 struct icmphdr *icmph; in tcf_csum_ipv4_icmp()
/Linux-v4.19/net/openvswitch/
Dflow.c252 sizeof(struct icmphdr)); in icmphdr_ok()
678 struct icmphdr *icmp = icmp_hdr(skb); in key_extract()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_core.c748 struct icmphdr *icmph = (struct icmphdr *)(skb_network_header(skb) + in ip_vs_nat_icmp()
914 struct icmphdr _icmph, *ic; in ip_vs_out_icmp()
1565 struct icmphdr _icmph, *ic; in ip_vs_in_icmp()

12