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