Home
last modified time | relevance | path

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

/net/batman-adv/
Ddistributed-arp-table.c229 static u8 *batadv_arp_hw_src(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_src() argument
233 addr = (u8 *)(skb->data + hdr_size); in batadv_arp_hw_src()
246 static __be32 batadv_arp_ip_src(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_src() argument
248 return *(__be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN); in batadv_arp_ip_src()
258 static u8 *batadv_arp_hw_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_hw_dst() argument
260 return batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN + 4; in batadv_arp_hw_dst()
270 static __be32 batadv_arp_ip_dst(struct sk_buff *skb, int hdr_size) in batadv_arp_ip_dst() argument
272 return *(__be32 *)(batadv_arp_hw_src(skb, hdr_size) + ETH_ALEN * 2 + 4); in batadv_arp_ip_dst()
421 int hdr_size, char *msg) in batadv_dbg_arp() argument
431 ip_src = batadv_arp_ip_src(skb, hdr_size); in batadv_dbg_arp()
[all …]
Drouting.c362 int hdr_size = sizeof(struct batadv_icmp_header); in batadv_recv_icmp_packet() local
366 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_recv_icmp_packet()
459 struct sk_buff *skb, int hdr_size) in batadv_check_unicast_packet() argument
464 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_check_unicast_packet()
933 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unhandled_unicast_packet() local
935 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unhandled_unicast_packet()
966 int check, hdr_size = sizeof(*unicast_packet); in batadv_recv_unicast_packet() local
975 hdr_size = sizeof(*unicast_4addr_packet); in batadv_recv_unicast_packet()
978 check = batadv_check_unicast_packet(bat_priv, skb, hdr_size); in batadv_recv_unicast_packet()
988 if (!batadv_check_unicast_ttvn(bat_priv, skb, hdr_size)) in batadv_recv_unicast_packet()
[all …]
Ddistributed-arp-table.h31 struct sk_buff *skb, int hdr_size);
35 struct sk_buff *skb, int hdr_size);
41 struct sk_buff *skb, int hdr_size);
117 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_request() argument
131 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_arp_reply() argument
145 struct sk_buff *skb, int hdr_size) in batadv_dat_snoop_incoming_dhcp_ack() argument
Dfragmentation.c147 u16 seqno, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_insert_packet() local
176 chain->size = skb->len - hdr_size; in batadv_frag_insert_packet()
193 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
206 chain->size += skb->len - hdr_size; in batadv_frag_insert_packet()
254 int size, hdr_size = sizeof(struct batadv_frag_packet); in batadv_frag_merge_packets() local
266 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
279 skb_pull(skb_out, hdr_size); in batadv_frag_merge_packets()
288 size = entry->skb->len - hdr_size; in batadv_frag_merge_packets()
289 skb_put_data(skb_out, entry->skb->data + hdr_size, size); in batadv_frag_merge_packets()
Dbridge_loop_avoidance.h43 int hdr_size);
82 int hdr_size) in batadv_bla_is_backbone_gw() argument
Dsoft-interface.h20 struct sk_buff *skb, int hdr_size,
Dsend.c235 batadv_send_skb_push_fill_unicast(struct sk_buff *skb, int hdr_size, in batadv_send_skb_push_fill_unicast() argument
241 if (batadv_skb_head_push(skb, hdr_size) < 0) in batadv_send_skb_push_fill_unicast()
Dsoft-interface.c425 struct sk_buff *skb, int hdr_size, in batadv_interface_rx() argument
438 skb_pull_rcsum(skb, hdr_size); in batadv_interface_rx()
Dtranslation-table.c568 int hdr_size; in batadv_tt_local_table_transmit_size() local
578 hdr_size = sizeof(struct batadv_unicast_tvlv_packet); in batadv_tt_local_table_transmit_size()
579 hdr_size += sizeof(struct batadv_tvlv_hdr); in batadv_tt_local_table_transmit_size()
580 hdr_size += sizeof(struct batadv_tvlv_tt_data); in batadv_tt_local_table_transmit_size()
581 hdr_size += num_vlan * sizeof(struct batadv_tvlv_tt_vlan_data); in batadv_tt_local_table_transmit_size()
583 return hdr_size + batadv_tt_len(tt_local_entries); in batadv_tt_local_table_transmit_size()
Dbridge_loop_avoidance.c1773 struct batadv_orig_node *orig_node, int hdr_size) in batadv_bla_is_backbone_gw() argument
1782 if (!pskb_may_pull(skb, hdr_size + ETH_HLEN)) in batadv_bla_is_backbone_gw()
1785 vid = batadv_get_vid(skb, hdr_size); in batadv_bla_is_backbone_gw()
Dnetwork-coding.c1808 int hdr_size = sizeof(*coded_packet); in batadv_nc_recv_coded_packet() local
1815 if (unlikely(!pskb_may_pull(skb, hdr_size))) in batadv_nc_recv_coded_packet()
/net/mpls/
Daf_mpls.c2385 unsigned int hdr_size = 0; in mpls_getroute() local
2447 hdr_size = n_labels * sizeof(struct mpls_shim_hdr); in mpls_getroute()
2458 if (hdr_size) { in mpls_getroute()
2462 if (skb_cow(skb, hdr_size)) { in mpls_getroute()
2467 skb_reserve(skb, hdr_size); in mpls_getroute()
2468 skb_push(skb, hdr_size); in mpls_getroute()
2487 if (hdr_size) { in mpls_getroute()
2488 skb_pull(skb, hdr_size); in mpls_getroute()
/net/mac80211/
Dstatus.c688 unsigned int hdr_size = in ieee80211_report_used_skb() local
693 (ieee80211_get_tdls_action(skb, hdr_size) == in ieee80211_report_used_skb()
/net/bluetooth/
Dl2cap_core.c5886 int hdr_size; in l2cap_check_fcs() local
5889 hdr_size = L2CAP_EXT_HDR_SIZE; in l2cap_check_fcs()
5891 hdr_size = L2CAP_ENH_HDR_SIZE; in l2cap_check_fcs()
5896 our_fcs = crc16(0, skb->data - hdr_size, skb->len + hdr_size); in l2cap_check_fcs()