Searched refs:socket_packet (Results 1 – 1 of 1) sorted by relevance
131 struct batadv_socket_packet *socket_packet; in batadv_socket_read() local152 socket_packet = list_first_entry(&socket_client->queue_list, in batadv_socket_read()154 list_del(&socket_packet->list); in batadv_socket_read()159 packet_len = min(count, socket_packet->icmp_len); in batadv_socket_read()160 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in batadv_socket_read()162 kfree(socket_packet); in batadv_socket_read()346 struct batadv_socket_packet *socket_packet; in batadv_socket_add_packet() local349 socket_packet = kmalloc(sizeof(*socket_packet), GFP_ATOMIC); in batadv_socket_add_packet()351 if (!socket_packet) in batadv_socket_add_packet()356 if (len > sizeof(socket_packet->icmp_packet)) in batadv_socket_add_packet()[all …]