Home
last modified time | relevance | path

Searched refs:icmp (Results 1 – 14 of 14) sorted by relevance

/net/batman-adv/
Dtp_meter.c582 struct batadv_icmp_tp_packet *icmp; in batadv_tp_send_msg() local
593 icmp = skb_put(skb, sizeof(*icmp)); in batadv_tp_send_msg()
596 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg()
597 ether_addr_copy(icmp->orig, src); in batadv_tp_send_msg()
598 icmp->version = BATADV_COMPAT_VERSION; in batadv_tp_send_msg()
599 icmp->packet_type = BATADV_ICMP; in batadv_tp_send_msg()
600 icmp->ttl = BATADV_TTL; in batadv_tp_send_msg()
601 icmp->msg_type = BATADV_TP; in batadv_tp_send_msg()
602 icmp->uid = uid; in batadv_tp_send_msg()
604 icmp->subtype = BATADV_TP_MSG; in batadv_tp_send_msg()
[all …]
/net/netfilter/
Dnf_conntrack_proto_icmp.c37 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
38 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
59 if (orig->dst.u.icmp.type >= sizeof(invmap) || in nf_conntrack_invert_icmp_tuple()
60 !invmap[orig->dst.u.icmp.type]) in nf_conntrack_invert_icmp_tuple()
63 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple()
64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple()
65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple()
89 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet()
90 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet()
[all …]
Dnf_conntrack_proto_icmpv6.c42 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
43 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
44 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
71 int type = orig->dst.u.icmp.type - 128; in nf_conntrack_invert_icmpv6_tuple()
75 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple()
76 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
77 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple()
102 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet()
233 if (nla_put_be16(skb, CTA_PROTO_ICMPV6_ID, t->src.u.icmp.id) || in icmpv6_tuple_to_nlattr()
234 nla_put_u8(skb, CTA_PROTO_ICMPV6_TYPE, t->dst.u.icmp.type) || in icmpv6_tuple_to_nlattr()
[all …]
Dnf_nat_proto.c248 hdr->un.echo.id, tuple->src.u.icmp.id, false); in icmp_manip_pkt()
249 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
270 tuple->src.u.icmp.id, false); in icmpv6_manip_pkt()
271 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
565 struct icmphdr icmp; in nf_nat_icmp_reply_translation() member
582 if (inside->icmp.type == ICMP_REDIRECT) { in nf_nat_icmp_reply_translation()
601 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation()
608 inside->icmp.checksum = 0; in nf_nat_icmp_reply_translation()
609 inside->icmp.checksum = in nf_nat_icmp_reply_translation()
Dnf_nat_core.c222 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range()
223 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in l4proto_in_range()
394 keyptr = &tuple->src.u.icmp.id; in nf_nat_l4proto_unique_tuple()
399 min = ntohs(range->min_proto.icmp.id); in nf_nat_l4proto_unique_tuple()
400 range_size = ntohs(range->max_proto.icmp.id) - in nf_nat_l4proto_unique_tuple()
401 ntohs(range->min_proto.icmp.id) + 1; in nf_nat_l4proto_unique_tuple()
Dnf_conntrack_standalone.c57 tuple->dst.u.icmp.type, in print_tuple()
58 tuple->dst.u.icmp.code, in print_tuple()
59 ntohs(tuple->src.u.icmp.id)); in print_tuple()
85 tuple->dst.u.icmp.type, in print_tuple()
86 tuple->dst.u.icmp.code, in print_tuple()
87 ntohs(tuple->src.u.icmp.id)); in print_tuple()
Dnf_conntrack_netlink.c1098 filter_tuple->dst.u.icmp.type != ct_tuple->dst.u.icmp.type) in ctnetlink_filter_match_tuple()
1101 filter_tuple->dst.u.icmp.code != ct_tuple->dst.u.icmp.code) in ctnetlink_filter_match_tuple()
1104 filter_tuple->src.u.icmp.id != ct_tuple->src.u.icmp.id) in ctnetlink_filter_match_tuple()
1109 filter_tuple->dst.u.icmp.type != ct_tuple->dst.u.icmp.type) in ctnetlink_filter_match_tuple()
1112 filter_tuple->dst.u.icmp.code != ct_tuple->dst.u.icmp.code) in ctnetlink_filter_match_tuple()
1115 filter_tuple->src.u.icmp.id != ct_tuple->src.u.icmp.id) in ctnetlink_filter_match_tuple()
/net/rxrpc/
Dpeer_event.c37 struct icmphdr *icmp = icmp_hdr(skb); in rxrpc_lookup_peer_icmp_rcu() local
40 _enter("%u,%u,%u", ip0->protocol, icmp->type, icmp->code); in rxrpc_lookup_peer_icmp_rcu()
42 switch (icmp->type) { in rxrpc_lookup_peer_icmp_rcu()
44 *info = ntohs(icmp->un.frag.mtu); in rxrpc_lookup_peer_icmp_rcu()
48 ip = (struct iphdr *)((void *)icmp + 8); in rxrpc_lookup_peer_icmp_rcu()
100 struct icmp6hdr *icmp = icmp6_hdr(skb); in rxrpc_lookup_peer_icmp6_rcu() local
104 _enter("%u,%u,%u", ip0->nexthdr, icmp->icmp6_type, icmp->icmp6_code); in rxrpc_lookup_peer_icmp6_rcu()
106 switch (icmp->icmp6_type) { in rxrpc_lookup_peer_icmp6_rcu()
108 *info = ntohl(icmp->icmp6_mtu); in rxrpc_lookup_peer_icmp6_rcu()
113 ip = (struct ipv6hdr *)((void *)icmp + 8); in rxrpc_lookup_peer_icmp6_rcu()
/net/openvswitch/
Dflow.c413 struct icmp6hdr *icmp = icmp6_hdr(skb); in parse_icmpv6() local
418 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6()
419 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6()
422 if (icmp->icmp6_code == 0 && in parse_icmpv6()
423 (icmp->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION || in parse_icmpv6()
424 icmp->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT)) { in parse_icmpv6()
607 struct icmphdr *icmp = icmp_hdr(skb); in key_extract_l3l4() local
611 key->tp.src = htons(icmp->type); in key_extract_l3l4()
612 key->tp.dst = htons(icmp->code); in key_extract_l3l4()
Dconntrack.c181 key->ct.orig_tp.src = htons(orig->dst.u.icmp.type); in __ovs_ct_update_key_orig_tp()
182 key->ct.orig_tp.dst = htons(orig->dst.u.icmp.code); in __ovs_ct_update_key_orig_tp()
/net/sched/
Dcls_flower.c52 struct flow_dissector_key_icmp icmp; member
1622 fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV4_TYPE, in fl_set_key()
1623 &mask->icmp.type, in fl_set_key()
1625 sizeof(key->icmp.type)); in fl_set_key()
1626 fl_set_key_val(tb, &key->icmp.code, TCA_FLOWER_KEY_ICMPV4_CODE, in fl_set_key()
1627 &mask->icmp.code, in fl_set_key()
1629 sizeof(key->icmp.code)); in fl_set_key()
1632 fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV6_TYPE, in fl_set_key()
1633 &mask->icmp.type, in fl_set_key()
1635 sizeof(key->icmp.type)); in fl_set_key()
[all …]
/net/ipv6/
DMakefile11 raw.o icmp.o mcast.o reassembly.o tcp_ipv6.o ping.o \
/net/ipv4/
DMakefile14 udp_offload.o arp.o icmp.o devinet.o af_inet.o igmp.o \
/net/xfrm/
Dxfrm_policy.c3335 u8 *icmp; in decode_session4() local
3338 icmp = xprth; in decode_session4()
3340 fl4->fl4_icmp_type = icmp[0]; in decode_session4()
3341 fl4->fl4_icmp_code = icmp[1]; in decode_session4()
3431 u8 *icmp; in decode_session6() local
3434 icmp = (u8 *)(nh + offset); in decode_session6()
3435 fl6->fl6_icmp_type = icmp[0]; in decode_session6()
3436 fl6->fl6_icmp_code = icmp[1]; in decode_session6()