Home
last modified time | relevance | path

Searched refs:icmp_packet (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/net/batman-adv/
Drouting.c297 struct batadv_icmp_packet *icmp_packet; in batadv_recv_icmp_ttl_exceeded() local
300 icmp_packet = (struct batadv_icmp_packet *)skb->data; in batadv_recv_icmp_ttl_exceeded()
303 if (icmp_packet->msg_type != BATADV_ECHO_REQUEST) { in batadv_recv_icmp_ttl_exceeded()
305 icmp_packet->orig, icmp_packet->dst); in batadv_recv_icmp_ttl_exceeded()
314 orig_node = batadv_orig_hash_find(bat_priv, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded()
322 icmp_packet = (struct batadv_icmp_packet *)skb->data; in batadv_recv_icmp_ttl_exceeded()
324 ether_addr_copy(icmp_packet->dst, icmp_packet->orig); in batadv_recv_icmp_ttl_exceeded()
325 ether_addr_copy(icmp_packet->orig, primary_if->net_dev->dev_addr); in batadv_recv_icmp_ttl_exceeded()
326 icmp_packet->msg_type = BATADV_TTL_EXCEEDED; in batadv_recv_icmp_ttl_exceeded()
327 icmp_packet->ttl = BATADV_TTL; in batadv_recv_icmp_ttl_exceeded()
Dicmp_socket.c154 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in batadv_socket_read()
342 if (len > sizeof(socket_packet->icmp_packet)) in batadv_socket_add_packet()
343 len = sizeof(socket_packet->icmp_packet); in batadv_socket_add_packet()
346 memcpy(&socket_packet->icmp_packet, icmph, len); in batadv_socket_add_packet()
Dtypes.h1807 u8 icmp_packet[BATADV_ICMP_MAX_PACKET_SIZE]; member