Home
last modified time | relevance | path

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

/net/batman-adv/
Ddistributed-arp-table.c187 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument
191 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src()
204 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument
206 return *(__be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src()
216 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument
218 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst()
228 static __be32 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_dst() argument
230 return *(__be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN * 2 + 4); in batadv_arp_ip_dst()
377 u16 type, int hdr_size, char *msg) in batadv_dbg_arp() argument
387 ip_src = batadv_arp_ip_src(skb, hdr_size); in batadv_dbg_arp()
[all …]
Drouting.c347 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local
351 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
438 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet() argument
443 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
901 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local
903 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet()
923 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local
933 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet()
936 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet()
946 if (!batadv_check_unicast_ttvn(bat_priv, skb, hdr_size)) in batadv_recv_unicast_packet()
[all …]
Ddistributed-arp-table.h42 struct sk_buff *skb, int hdr_size);
46 struct sk_buff *skb, int hdr_size);
121 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_request() argument
135 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply() argument
Dfragmentation.c151 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local
180 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
197 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
210 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
256 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
279 skb_pull_rcsum(skb_out, hdr_size); in batadv_frag_merge_packets()
287 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets()
288 memcpy(skb_put(skb_out, size), entry->skb->data + hdr_size, in batadv_frag_merge_packets()
Dbridge_loop_avoidance.h37 int hdr_size);
72 int hdr_size) in batadv_bla_is_backbone_gw() argument
Dsoft-interface.h32 struct sk_buff *skb, int hdr_size,
Dsend.c224 batadv_send_skb_push_fill_unicast(struct sk_buff *skb, int hdr_size, in batadv_send_skb_push_fill_unicast() argument
230 if (batadv_skb_head_push(skb, hdr_size) < 0) in batadv_send_skb_push_fill_unicast()
Dsoft-interface.c406 struct sk_buff *skb, int hdr_size, in batadv_interface_rx() argument
419 skb_pull_rcsum(skb, hdr_size); in batadv_interface_rx()
Dtranslation-table.c580 int hdr_size; in batadv_tt_local_table_transmit_size() local
590 hdr_size = sizeof(struct batadv_unicast_tvlv_packet); in batadv_tt_local_table_transmit_size()
591 hdr_size += sizeof(struct batadv_tvlv_hdr); in batadv_tt_local_table_transmit_size()
592 hdr_size += sizeof(struct batadv_tvlv_tt_data); in batadv_tt_local_table_transmit_size()
593 hdr_size += num_vlan * sizeof(struct batadv_tvlv_tt_vlan_data); in batadv_tt_local_table_transmit_size()
595 return hdr_size + batadv_tt_len(tt_local_entries); in batadv_tt_local_table_transmit_size()
Dbridge_loop_avoidance.c1699 struct batadv_orig_node *orig_node, int hdr_size) in batadv_bla_is_backbone_gw() argument
1708 if (!pskb_may_pull(skb, hdr_size + ETH_HLEN)) in batadv_bla_is_backbone_gw()
1711 vid = batadv_get_vid(skb, hdr_size); in batadv_bla_is_backbone_gw()
Dnetwork-coding.c1813 int hdr_size = sizeof(*coded_packet); in batadv_nc_recv_coded_packet() local
1820 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_nc_recv_coded_packet()
/net/mac80211/
Dstatus.c527 unsigned int hdr_size = in ieee80211_report_used_skb() local
532 (ieee80211_get_tdls_action(skb, hdr_size) == in ieee80211_report_used_skb()
/net/bluetooth/
Dl2cap_core.c5759 int hdr_size; in l2cap_check_fcs() local
5762 hdr_size = L2CAP_EXT_HDR_SIZE; in l2cap_check_fcs()
5764 hdr_size = L2CAP_ENH_HDR_SIZE; in l2cap_check_fcs()
5769 our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); in l2cap_check_fcs()