Lines Matching refs:packet_len
129 size_t packet_len; in batadv_socket_read() local
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()
161 return packet_len; in batadv_socket_read()
175 size_t packet_len = sizeof(struct batadv_icmp_packet); in batadv_socket_write() local
192 packet_len = BATADV_ICMP_MAX_PACKET_SIZE; in batadv_socket_write()
194 packet_len = len; in batadv_socket_write()
196 skb = netdev_alloc_skb_ip_align(NULL, packet_len + ETH_HLEN); in batadv_socket_write()
204 icmp_header = skb_put(skb, packet_len); in batadv_socket_write()
206 if (copy_from_user(icmp_header, buff, packet_len)) { in batadv_socket_write()
246 if (packet_len == sizeof(*icmp_packet_rr)) { in batadv_socket_write()
265 packet_len); in batadv_socket_write()
276 batadv_socket_add_packet(socket_client, icmp_header, packet_len); in batadv_socket_write()