Home
last modified time | relevance | path

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

12345

/drivers/staging/gdm724x/
Dgdm_lte.c118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
164 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp()
239 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp()
247 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp()
326 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp()
352 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type()
358 mac_proto = ntohs(eth->h_proto); in gdm_lte_tx_nic_type()
643 eth.h_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx()
648 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx()
651 eth.h_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx()
[all …]
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c115 static int libipw_copy_snap(u8 * data, __be16 h_proto) in libipw_copy_snap() argument
125 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) in libipw_copy_snap()
133 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap()
215 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify()
281 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit()
/drivers/net/usb/
Dlg-vl600.c49 __be16 h_proto; member
176 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
195 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup()
285 packet->h_proto = htons(ETH_P_IP); in vl600_tx_fixup()
Dsierra_net.c228 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet()
837 if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6)) in sierra_net_rx_fixup()
838 eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_rx_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()
/drivers/net/wireless/ath/ath10k/
Dwow.c120 &old_hdr_pattern->h_proto, in ath10k_wow_convert_8023_to_80211()
121 sizeof(old_hdr_pattern->h_proto)); in ath10k_wow_convert_8023_to_80211()
123 &old_hdr_mask->h_proto, in ath10k_wow_convert_8023_to_80211()
124 sizeof(old_hdr_mask->h_proto)); in ath10k_wow_convert_8023_to_80211()
130 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c141 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) in ieee80211_put_snap() argument
151 if (h_proto == 0x8137 || h_proto == 0x80f3) in ieee80211_put_snap()
159 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap()
265 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify()
572 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit()
/drivers/staging/rtl8192e/
Drtllib_tx.c134 static int rtllib_put_snap(u8 *data, u16 h_proto) in rtllib_put_snap() argument
144 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtllib_put_snap()
152 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtllib_put_snap()
240 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
599 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in rtllib_xmit_inter()
/drivers/net/wireless/marvell/mwifiex/
Dsta_rx.c44 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
161 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/staging/ks7010/
Deap_packet.h16 __be16 h_proto; /* packet type ID field */ member
/drivers/scsi/fnic/
Dfnic_fcs.c397 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req()
632 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_handle_fip_frame()
675 if (eh->h_proto == htons(ETH_P_8021Q)) { in fnic_import_rq_eth_pkt()
680 if (eh->h_proto == htons(ETH_P_FIP)) { in fnic_import_rq_eth_pkt()
695 if (eh->h_proto != htons(ETH_P_FCOE)) in fnic_import_rq_eth_pkt()
1035 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send()
1106 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
/drivers/staging/rtl8712/
Drtl871x_xmit.c219 pattrib->ether_type = ntohs(etherhdr.h_proto); in r8712_update_attrib()
572 static sint r8712_put_snap(u8 *data, u16 h_proto) in r8712_put_snap() argument
581 if (h_proto == 0x8137 || h_proto == 0x80f3) in r8712_put_snap()
588 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in r8712_put_snap()
/drivers/net/ethernet/sfc/
Dethtool_common.c745 mac_entry->h_proto = spec.ether_type; in efx_ethtool_get_class_rule()
746 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in efx_ethtool_get_class_rule()
1100 if (mac_mask->h_proto) { in efx_ethtool_set_class_rule()
1101 if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) in efx_ethtool_set_class_rule()
1104 spec.ether_type = mac_entry->h_proto; in efx_ethtool_set_class_rule()
/drivers/media/dvb-core/
Ddvb_net.c146 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in dvb_net_eth_type_trans()
147 return eth->h_proto; in dvb_net_eth_type_trans()
189 if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) { in ule_bridged_sndu()
192 if(framelen != ntohs(hdr->h_proto)) { in ule_bridged_sndu()
738 h->ethh->h_proto = htons(h->priv->ule_sndu_type); in dvb_net_ule_check_crc()
/drivers/net/ethernet/sfc/falcon/
Dethtool.c887 mac_entry->h_proto = spec.ether_type; in ef4_ethtool_get_class_rule()
888 mac_mask->h_proto = ETHER_TYPE_FULL_MASK; in ef4_ethtool_get_class_rule()
1197 if (mac_mask->h_proto) { in ef4_ethtool_set_class_rule()
1198 if (mac_mask->h_proto != ETHER_TYPE_FULL_MASK) in ef4_ethtool_set_class_rule()
1201 spec.ether_type = mac_entry->h_proto; in ef4_ethtool_set_class_rule()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c325 if (eth_mask->h_proto) { in dpaa2_eth_prep_eth_rule()
327 *(__be16 *)(key + off) = eth_value->h_proto; in dpaa2_eth_prep_eth_rule()
328 *(__be16 *)(mask + off) = eth_mask->h_proto; in dpaa2_eth_prep_eth_rule()
/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
/drivers/infiniband/core/
Dlag.c73 skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6); in rdma_build_skb()
/drivers/firewire/
Dnet.c224 put_unaligned_be16(type, &h->h_proto); in fwnet_header_create()
251 h->h_proto = type; in fwnet_header_cache()
534 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { in fwnet_finish_incoming_packet()
535 protocol = eth->h_proto; in fwnet_finish_incoming_packet()
1269 proto = hdr_buf.h_proto; in fwnet_tx()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c312 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto)); in parse_ether()
313 MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto)); in parse_ether()
559 if (eth_mask->h_proto) in validate_ethter()
Den_selftest.c133 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb()
/drivers/net/netdevsim/
Dpsample.c55 eth->h_proto = htons(ETH_P_IP); in nsim_dev_psample_skb_build()
/drivers/net/wireless/
Dray_cs.c952 __be16 proto = ((struct ethhdr *)data)->h_proto; in translate_frame()
2311 peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH); in untranslate()
2319 peth->h_proto = type; in untranslate()
2327 peth->h_proto = in untranslate()
2335 peth->h_proto = type; in untranslate()
2342 peth->h_proto = type; in untranslate()
/drivers/staging/r8188eu/core/
Drtw_xmit.c429 pattrib->ether_type = ntohs(etherhdr.h_proto); in update_attrib()
1054 s32 rtw_put_snap(u8 *data, u16 h_proto) in rtw_put_snap() argument
1064 if (h_proto == 0x8137 || h_proto == 0x80f3) in rtw_put_snap()
1073 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in rtw_put_snap()

12345