Home
last modified time | relevance | path

Searched refs:SNAP_SIZE (Results 1 – 19 of 19) sorted by relevance

/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c147 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
149 return SNAP_SIZE + sizeof(u16); in libipw_copy_snap()
289 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in libipw_xmit()
348 bytes = skb->len + SNAP_SIZE + sizeof(u16); in libipw_xmit()
364 libipw_copy_snap(skb_put(skb_new, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
490 (skb_frag, SNAP_SIZE + sizeof(u16)), in libipw_xmit()
492 bytes -= SNAP_SIZE + sizeof(u16); in libipw_xmit()
Dlibipw_rx.c740 ((memcmp(payload, libipw_rfc1042_header, SNAP_SIZE) == 0 && in libipw_rx()
742 memcmp(payload, libipw_bridge_tunnel_header, SNAP_SIZE) == 0)) { in libipw_rx()
745 skb_pull(skb, hdrlen + SNAP_SIZE); in libipw_rx()
Dlibipw.h151 #define SNAP_SIZE sizeof(struct libipw_snap_hdr) macro
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_tx.c176 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
178 return SNAP_SIZE + sizeof(u16); in ieee80211_put_snap()
343 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in ieee80211_rtl_xmit()
365 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_rtl_xmit()
379 bytes = skb->len + SNAP_SIZE + sizeof(u16); in ieee80211_rtl_xmit()
505 skb_put(skb_frag, SNAP_SIZE + sizeof(u16)), in ieee80211_rtl_xmit()
507 bytes -= SNAP_SIZE + sizeof(u16); in ieee80211_rtl_xmit()
Dieee80211_rx.c736 ((memcmp(payload, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_rtl_rx()
738 memcmp(payload, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_rtl_rx()
741 skb_pull(skb, hdrlen + SNAP_SIZE); in ieee80211_rtl_rx()
Dieee80211.h248 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c176 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
178 return SNAP_SIZE + sizeof(u16); in ieee80211_put_snap()
627 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in ieee80211_xmit()
649 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_xmit()
663 bytes = skb->len + SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
810 skb_put(skb_frag, SNAP_SIZE + sizeof(u16)), in ieee80211_xmit()
812 bytes -= SNAP_SIZE + sizeof(u16); in ieee80211_xmit()
Dieee80211_rx.c567 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_indicate_packets()
569 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_indicate_packets()
572 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_indicate_packets()
1330 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in ieee80211_rx()
1332 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in ieee80211_rx()
1335 skb_pull(sub_skb, SNAP_SIZE); in ieee80211_rx()
Dieee80211.h678 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
/drivers/staging/rtl8192e/
Drtllib_tx.c174 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
176 return SNAP_SIZE + sizeof(u16); in rtllib_put_snap()
591 if (unlikely(skb->len < SNAP_SIZE + sizeof(u16))) { in rtllib_xmit_inter()
657 sizeof(struct ethhdr) - SNAP_SIZE - in rtllib_xmit_inter()
667 bytes = skb->len + SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
826 skb_put(skb_frag, SNAP_SIZE + in rtllib_xmit_inter()
828 bytes -= SNAP_SIZE + sizeof(u16); in rtllib_xmit_inter()
Drtllib_rx.c482 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in rtllib_indicate_packets()
484 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in rtllib_indicate_packets()
487 skb_pull(sub_skb, SNAP_SIZE); in rtllib_indicate_packets()
1213 ((memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) == 0 && in rtllib_rx_indicate_pkt_legacy()
1215 memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE) == 0)) { in rtllib_rx_indicate_pkt_legacy()
1218 skb_pull(sub_skb, SNAP_SIZE); in rtllib_rx_indicate_pkt_legacy()
Drtllib.h838 #define SNAP_SIZE sizeof(struct rtllib_snap_hdr) macro
/drivers/staging/rtl8712/
Drtl871x_recv.c621 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; in r8712_wlanhdr_to_ethhdr()
623 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && in r8712_wlanhdr_to_ethhdr()
626 !memcmp(psnap, (void *)bridge_tunnel_header, SNAP_SIZE)) { in r8712_wlanhdr_to_ethhdr()
635 (bsnaphdr ? SNAP_SIZE : 0); in r8712_wlanhdr_to_ethhdr()
Drtl871x_recv.h14 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl8712_recv.c403 ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && in amsdu_to_msdu()
405 !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { in amsdu_to_msdu()
408 skb_pull(sub_skb, SNAP_SIZE); in amsdu_to_msdu()
Dieee80211.h291 #define SNAP_SIZE sizeof(struct ieee80211_snap_hdr) macro
Drtl871x_xmit.c570 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
571 return SNAP_SIZE + sizeof(u16); in r8712_put_snap()
/drivers/net/wireless/rtlwifi/
Dbase.c1071 SNAP_SIZE + PROTOC_TYPE_SIZE); in rtl_is_special_data()
1072 ether_type = *(u16 *) ((u8 *) skb->data + mac_hdr_len + SNAP_SIZE); in rtl_is_special_data()
Dwifi.h85 #define SNAP_SIZE 6 macro