Lines Matching refs:icmph
221 struct batadv_icmp_header *icmph; in batadv_recv_my_icmp_packet() local
224 icmph = (struct batadv_icmp_header *)skb->data; in batadv_recv_my_icmp_packet()
226 switch (icmph->msg_type) { in batadv_recv_my_icmp_packet()
234 orig_node = batadv_orig_hash_find(bat_priv, icmph->orig); in batadv_recv_my_icmp_packet()
242 icmph = (struct batadv_icmp_header *)skb->data; in batadv_recv_my_icmp_packet()
244 ether_addr_copy(icmph->dst, icmph->orig); in batadv_recv_my_icmp_packet()
245 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr); in batadv_recv_my_icmp_packet()
246 icmph->msg_type = BATADV_ECHO_REPLY; in batadv_recv_my_icmp_packet()
247 icmph->ttl = BATADV_TTL; in batadv_recv_my_icmp_packet()
342 struct batadv_icmp_header *icmph; in batadv_recv_icmp_packet() local
367 icmph = (struct batadv_icmp_header *)skb->data; in batadv_recv_icmp_packet()
370 if ((icmph->msg_type == BATADV_ECHO_REPLY || in batadv_recv_icmp_packet()
371 icmph->msg_type == BATADV_ECHO_REQUEST) && in batadv_recv_icmp_packet()
381 icmph = (struct batadv_icmp_header *)skb->data; in batadv_recv_icmp_packet()
382 icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph; in batadv_recv_icmp_packet()
392 if (batadv_is_my_mac(bat_priv, icmph->dst)) in batadv_recv_icmp_packet()
396 if (icmph->ttl < 2) in batadv_recv_icmp_packet()
400 orig_node = batadv_orig_hash_find(bat_priv, icmph->dst); in batadv_recv_icmp_packet()
408 icmph = (struct batadv_icmp_header *)skb->data; in batadv_recv_icmp_packet()
411 icmph->ttl--; in batadv_recv_icmp_packet()