Lines Matching refs:icmph
224 struct batadv_icmp_header *icmph;
227 icmph = (struct batadv_icmp_header *)skb->data;
229 switch (icmph->msg_type) {
237 batadv_socket_receive_packet(icmph, skb->len);
246 orig_node = batadv_orig_hash_find(bat_priv, icmph->orig);
254 icmph = (struct batadv_icmp_header *)skb->data;
256 ether_addr_copy(icmph->dst, icmph->orig);
257 ether_addr_copy(icmph->orig, primary_if->net_dev->dev_addr);
258 icmph->msg_type = BATADV_ECHO_REPLY;
259 icmph->ttl = BATADV_TTL;
358 struct batadv_icmp_header *icmph;
383 icmph = (struct batadv_icmp_header *)skb->data;
386 if ((icmph->msg_type == BATADV_ECHO_REPLY ||
387 icmph->msg_type == BATADV_ECHO_REQUEST) &&
397 icmph = (struct batadv_icmp_header *)skb->data;
398 icmp_packet_rr = (struct batadv_icmp_packet_rr *)icmph;
408 if (batadv_is_my_mac(bat_priv, icmph->dst))
412 if (icmph->ttl < 2)
416 orig_node = batadv_orig_hash_find(bat_priv, icmph->dst);
424 icmph = (struct batadv_icmp_header *)skb->data;
427 icmph->ttl--;