Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/batman-adv/
Dicmp_socket.c128 struct batadv_socket_packet *socket_packet; in batadv_socket_read() local
146 socket_packet = list_first_entry(&socket_client->queue_list, in batadv_socket_read()
148 list_del(&socket_packet->list); in batadv_socket_read()
153 packet_len = min(count, socket_packet->icmp_len); in batadv_socket_read()
154 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in batadv_socket_read()
156 kfree(socket_packet); in batadv_socket_read()
332 struct batadv_socket_packet *socket_packet; in batadv_socket_add_packet() local
335 socket_packet = kmalloc(sizeof(*socket_packet), GFP_ATOMIC); in batadv_socket_add_packet()
337 if (!socket_packet) in batadv_socket_add_packet()
342 if (len > sizeof(socket_packet->icmp_packet)) in batadv_socket_add_packet()
[all …]