Home
last modified time | relevance | path

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

/net/batman-adv/
Dicmp_socket.c133 size_t packet_len; in batadv_socket_read() local
160 packet_len = min(count, socket_packet->icmp_len); in batadv_socket_read()
161 error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); in batadv_socket_read()
168 return packet_len; in batadv_socket_read()
182 size_t packet_len = sizeof(struct batadv_icmp_packet); in batadv_socket_write() local
199 packet_len = BATADV_ICMP_MAX_PACKET_SIZE; in batadv_socket_write()
201 packet_len = len; in batadv_socket_write()
203 skb = netdev_alloc_skb_ip_align(NULL, packet_len + ETH_HLEN); in batadv_socket_write()
211 icmp_header = (struct batadv_icmp_header *)skb_put(skb, packet_len); in batadv_socket_write()
213 if (copy_from_user(icmp_header, buff, packet_len)) { in batadv_socket_write()
[all …]
Dbat_iv_ogm.c457 static bool batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_iv_ogm_aggr_packet() argument
465 return (next_buff_pos <= packet_len) && in batadv_iv_ogm_aggr_packet()
490 while (batadv_iv_ogm_aggr_packet(buff_pos, forw_packet->packet_len, in batadv_iv_ogm_send_to_if()
576 int packet_len, unsigned long send_time, in batadv_iv_ogm_can_aggregate() argument
583 int aggregated_bytes = forw_packet->packet_len + packet_len; in batadv_iv_ogm_can_aggregate()
674 int packet_len, unsigned long send_time, in batadv_iv_ogm_aggregate_new() argument
692 packet_len < BATADV_MAX_AGGREGATION_BYTES) in batadv_iv_ogm_aggregate_new()
695 skb_size = packet_len; in batadv_iv_ogm_aggregate_new()
708 skb_buff = skb_put(forw_packet_aggr->skb, packet_len); in batadv_iv_ogm_aggregate_new()
709 forw_packet_aggr->packet_len = packet_len; in batadv_iv_ogm_aggregate_new()
[all …]
Dbat_v_ogm.c317 size_t packet_len; in batadv_v_ogm_forward() local
352 packet_len = BATADV_OGM2_HLEN + tvlv_len; in batadv_v_ogm_forward()
354 ETH_HLEN + packet_len); in batadv_v_ogm_forward()
359 skb_buff = skb_put(skb, packet_len); in batadv_v_ogm_forward()
360 memcpy(skb_buff, ogm_received, packet_len); in batadv_v_ogm_forward()
625 static bool batadv_v_ogm_aggr_packet(int buff_pos, int packet_len, in batadv_v_ogm_aggr_packet() argument
633 return (next_buff_pos <= packet_len) && in batadv_v_ogm_aggr_packet()
Dtp_meter.c641 size_t packet_len, mss; in batadv_tp_recv_ack() local
645 packet_len = BATADV_TP_PLEN; in batadv_tp_recv_ack()
647 packet_len += sizeof(struct batadv_unicast_packet); in batadv_tp_recv_ack()
694 orig_node, recv_ack, packet_len, in batadv_tp_recv_ack()
734 packet_len, icmp->session, in batadv_tp_recv_ack()
821 size_t payload_len, packet_len; in batadv_tp_send() local
868 packet_len = payload_len + sizeof(struct batadv_unicast_packet); in batadv_tp_send()
872 packet_len, in batadv_tp_send()
Dtypes.h1386 u16 packet_len; member
/net/ipv6/
Doutput_core.c82 unsigned int packet_len = skb_tail_pointer(skb) - in ip6_find_1stfragopt() local
87 while (offset <= packet_len) { in ip6_find_1stfragopt()
109 if (offset + sizeof(struct ipv6_opt_hdr) > packet_len) in ip6_find_1stfragopt()
Dexthdrs_core.c118 int packet_len = skb_tail_pointer(skb) - skb_network_header(skb); in ipv6_find_tlv() local
122 if (offset + 2 > packet_len) in ipv6_find_tlv()
127 if (offset + len > packet_len) in ipv6_find_tlv()
Dmip6.c269 unsigned int packet_len = skb_tail_pointer(skb) - in mip6_destopt_offset() local
275 while (offset + 1 <= packet_len) { in mip6_destopt_offset()
405 unsigned int packet_len = skb_tail_pointer(skb) - in mip6_rthdr_offset() local
411 while (offset + 1 <= packet_len) { in mip6_rthdr_offset()
417 if (offset + 3 <= packet_len) { in mip6_rthdr_offset()
/net/rose/
Drose_subr.c395 int rose_parse_facilities(unsigned char *p, unsigned packet_len, in rose_parse_facilities() argument
402 if (facilities_len == 0 || (unsigned int)facilities_len > packet_len) in rose_parse_facilities()
/net/wireless/
Dtrace.h2904 __field(u32, packet_len)
2919 __entry->packet_len = wakeup ? wakeup->packet_len : false;
Dnl80211.c14326 if (wakeup->packet_len && in cfg80211_report_wowlan_wakeup()
14327 nla_put_u32(msg, len_attr, wakeup->packet_len)) in cfg80211_report_wowlan_wakeup()