Home
last modified time | relevance | path

Searched refs:h_proto (Results 1 – 25 of 63) sorted by relevance

123

/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c129 static int libipw_copy_snap(u8 * data, __be16 h_proto) in libipw_copy_snap() argument
139 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) in libipw_copy_snap()
147 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
229 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify()
295 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit()
/drivers/staging/gdm724x/
Dgdm_lte.c122 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
171 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp()
247 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp()
255 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp()
336 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp()
362 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type()
368 mac_proto = ntohs(eth->h_proto); in gdm_lte_tx_nic_type()
652 eth.h_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx()
657 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx()
660 eth.h_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx()
[all …]
/drivers/net/usb/
Dlg-vl600.c61 __be16 h_proto; member
194 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
213 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup()
303 packet->h_proto = htons(ETH_P_IP); in vl600_tx_fixup()
Dcdc_mbim.c249 is_ip = is_ip_proto(eth_hdr(skb)->h_proto); in cdc_mbim_tx_fixup()
396 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram()
Dsierra_net.c216 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet()
706 eth->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_bind()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c158 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) in ieee80211_put_snap() argument
168 if (h_proto == 0x8137 || h_proto == 0x80f3) in ieee80211_put_snap()
176 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
281 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify()
642 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit()
/drivers/staging/rtl8192e/
Drtllib_tx.c156 inline int rtllib_put_snap(u8 *data, u16 h_proto) in rtllib_put_snap() argument
166 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtllib_put_snap()
174 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
260 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
602 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in rtllib_xmit_inter()
/drivers/net/wireless/mwifiex/
Dsta_rx.c44 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
149 ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) { in mwifiex_process_rx_packet()
D11n_aggr.c72 snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto; in mwifiex_11n_form_amsdu_pkt()
81 tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN); in mwifiex_11n_form_amsdu_pkt()
/drivers/scsi/fnic/
Dfnic_fcs.c353 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req()
590 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame()
633 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt()
638 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt()
653 if (eh->h_proto != htons(ETH_P_FCOE)) in fnic_import_rq_eth_pkt()
986 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
1049 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
/drivers/firewire/
Dnet.c223 put_unaligned_be16(type, &h->h_proto); in fwnet_header_create()
244 if (get_unaligned_be16(&h->h_proto) == ETH_P_IP) in fwnet_header_rebuild()
248 be16_to_cpu(h->h_proto)); in fwnet_header_rebuild()
262 h->h_proto = type; in fwnet_header_cache()
546 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { in fwnet_finish_incoming_packet()
547 protocol = eth->h_proto; in fwnet_finish_incoming_packet()
1281 proto = hdr_buf.h_proto; in fwnet_tx()
/drivers/staging/rtl8712/
Drtl871x_xmit.c204 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib()
557 static sint r8712_put_snap(u8 *data, u16 h_proto) in r8712_put_snap() argument
566 if (h_proto == 0x8137 || h_proto == 0x80f3) in r8712_put_snap()
573 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
/drivers/net/ethernet/sfc/
Dethtool.c855 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
856 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
1032 if (mac_mask->h_proto) { in efx_ethtool_set_class_rule()
1033 if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) in efx_ethtool_set_class_rule()
1036 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
/drivers/media/dvb-core/
Ddvb_net.c188 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in dvb_net_eth_type_trans()
189 return eth->h_proto; in dvb_net_eth_type_trans()
231 if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) { in ule_bridged_sndu()
234 if(framelen != ntohs(hdr->h_proto)) { in ule_bridged_sndu()
749 ethh->h_proto = htons(priv->ule_sndu_type); in dvb_net_ule()
/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
Den_ethtool.c705 if (!all_zeros_or_all_ones(eth_mask->h_proto)) in mlx4_en_validate_flow()
905 spec_l2->eth.ether_type = eth_spec->h_proto; in mlx4_en_ethtool_to_net_trans_rule()
906 if (eth_spec->h_proto) in mlx4_en_ethtool_to_net_trans_rule()
/drivers/net/hyperv/
Dnetvsc_drv.c343 if ((eth_hdr(skb)->h_proto != htons(ETH_P_IP)) && in get_net_transport_info()
344 (eth_hdr(skb)->h_proto != htons(ETH_P_IPV6))) { in get_net_transport_info()
350 if ((eth_hdr(skb)->h_proto == htons(ETH_P_IP))) { in get_net_transport_info()
/drivers/net/
Dvxlan.c592 type = eh->h_proto; in vxlan_gro_receive()
624 type = eh->h_proto; in vxlan_gro_complete()
1379 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in vxlan_na_create()
1505 switch (ntohs(eth_hdr(skb)->h_proto)) { in route_shortcircuit()
1881 if (ntohs(eth->h_proto) == ETH_P_ARP) in vxlan_xmit()
1884 else if (ntohs(eth->h_proto) == ETH_P_IPV6 && in vxlan_xmit()
1903 (ntohs(eth->h_proto) == ETH_P_IP || in vxlan_xmit()
1904 ntohs(eth->h_proto) == ETH_P_IPV6)) { in vxlan_xmit()
/drivers/net/wireless/
Dray_cs.c954 __be16 proto = ((struct ethhdr *)data)->h_proto; in translate_frame()
2316 peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH); in untranslate()
2324 peth->h_proto = type; in untranslate()
2332 peth->h_proto = in untranslate()
2340 peth->h_proto = type; in untranslate()
2347 peth->h_proto = type; in untranslate()
/drivers/staging/rtl8723au/core/
Drtw_xmit.c437 pattrib->ether_type = ntohs(ehdr->h_proto); in update_attrib()
1268 s32 rtw_put_snap23a(u8 *data, u16 h_proto) in rtw_put_snap23a() argument
1278 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtw_put_snap23a()
1285 *(u16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap23a()
/drivers/staging/rtl8188eu/core/
Drtw_xmit.c446 pattrib->ether_type = ntohs(etherhdr.h_proto); in update_attrib()
1132 s32 rtw_put_snap(u8 *data, u16 h_proto) in rtw_put_snap() argument
1143 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtw_put_snap()
1152 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()
/drivers/staging/rtl8188eu/include/
Drtw_xmit.h332 s32 rtw_put_snap(u8 *data, u16 h_proto);
/drivers/staging/rtl8723au/include/
Drtw_xmit.h352 s32 rtw_put_snap23a(u8 *data, u16 h_proto);
/drivers/net/wireless/brcm80211/brcmfmac/
Ddhd_linux.c234 if (eh->h_proto == htons(ETH_P_PAE)) in brcmf_netdev_start_xmit()
551 type = ntohs(eh->h_proto); in brcmf_txfinalize()
/drivers/net/wimax/i2400m/
Dnetdev.c447 eth_hdr->h_proto = protocol; in i2400m_rx_fake_eth_header()

123