Searched refs:h_proto (Results 1 - 25 of 44) sorted by relevance

12

/drivers/staging/rtl8712/
H A Dif_ether.h123 unsigned short h_proto; /* packet type ID field */ member in struct:ethhdr
H A Drtl871x_xmit.c205 pattrib->ether_type = ntohs(etherhdr.h_proto);
555 static sint r8712_put_snap(u8 *data, u16 h_proto) argument
564 if (h_proto == 0x8137 || h_proto == 0x80f3)
571 *(u16 *)(data + SNAP_SIZE) = htons(h_proto);
/drivers/net/wireless/ipw2x00/
H A Dlibipw_tx.c129 static int libipw_copy_snap(u8 * data, __be16 h_proto) argument
139 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX))
147 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16));
229 if (eth->h_proto != htons(ETH_P_IP))
295 ether_type = ((struct ethhdr *)skb->data)->h_proto;
/drivers/staging/rtl8187se/ieee80211/
H A Dieee80211_tx.c158 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) argument
168 if (h_proto == 0x8137 || h_proto == 0x80f3)
176 *(u16 *)(data + SNAP_SIZE) = htons(h_proto);
297 } else if(ETH_P_PAE == ntohs(((struct ethhdr *)skb->data)->h_proto)) {
349 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
/drivers/net/usb/
H A Dlg-vl600.c43 * multiplexing by using non standard values of the .h_proto field.
62 __be16 h_proto; member in struct:vl600_pkt_hdr
191 * the h_proto field is in the same place so we just leave it
195 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP &&
214 ethhdr->h_proto = __constant_htons(ETH_P_IPV6);
296 * h_proto field is in the same place so we just leave it alone and
304 packet->h_proto = htons(ETH_P_IP);
H A Dsierra_net.c225 skb->protocol = eth_hdr(skb)->h_proto;
747 eth->h_proto = cpu_to_be16(ETH_P_IP);
/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_tx.c158 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) argument
168 if (h_proto == 0x8137 || h_proto == 0x80f3)
176 *(u16 *)(data + SNAP_SIZE) = htons(h_proto);
280 if (eth->h_proto != htons(ETH_P_IP))
634 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
/drivers/scsi/fnic/
H A Dfnic_fcs.c147 if (eh->h_proto == htons(ETH_P_8021Q)) {
152 if (eh->h_proto == htons(ETH_P_FIP)) {
157 if (eh->h_proto != htons(ETH_P_FCOE))
483 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto;
536 eth_hdr->h_proto = htons(ETH_P_FCOE);
/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c71 ethh->h_proto = htons(ETH_P_ARP);
/drivers/staging/rtl8192e/
H A Drtllib_tx.c156 inline int rtllib_put_snap(u8 *data, u16 h_proto) argument
166 if (h_proto == 0x8137 || h_proto == 0x80f3)
174 *(u16 *)(data + SNAP_SIZE) = htons(h_proto);
259 if (eth->h_proto != htons(ETH_P_IP))
602 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
/drivers/net/wireless/mwifiex/
H A Dmain.c368 switch (eth->h_proto) {
373 eth->h_proto, tid, skb->priority);
376 pr_debug("data: ARP packet: %04x\n", eth->h_proto);
H A D11n_aggr.c82 tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN);
/drivers/firewire/
H A Dnet.c84 __be16 h_proto; /* packet type ID field */ member in struct:fwnet_header
235 put_unaligned_be16(type, &h->h_proto);
256 if (get_unaligned_be16(&h->h_proto) == ETH_P_IP)
260 be16_to_cpu(h->h_proto));
274 h->h_proto = type;
633 if (ntohs(eth->h_proto) >= 1536) {
634 protocol = eth->h_proto;
1301 proto = hdr_buf.h_proto;
/drivers/media/dvb/dvb-core/
H A Ddvb_net.c188 if (ntohs(eth->h_proto) >= 1536)
189 return eth->h_proto;
231 if(ntohs(hdr->h_proto) < 1536) {
234 if(framelen != ntohs(hdr->h_proto)) {
747 ethh->h_proto = htons(priv->ule_sndu_type);
/drivers/net/wireless/
H A Dray_cs.c955 __be16 proto = ((struct ethhdr *)data)->h_proto;
2308 peth->h_proto = htons(len - RX_MAC_HEADER_LENGTH);
2316 peth->h_proto = type;
2324 peth->h_proto =
2332 peth->h_proto = type;
2339 peth->h_proto = type;
/drivers/net/wimax/i2400m/
H A Dnetdev.c445 eth_hdr->h_proto = protocol;
/drivers/net/plip/
H A Dplip.c563 if (ntohs(eth->h_proto) >= 1536)
564 return eth->h_proto;
/drivers/net/wireless/brcm80211/brcmfmac/
H A Ddhd_linux.c288 if (ntohs(eh->h_proto) == ETH_P_PAE)
477 type = ntohs(eh->h_proto);
/drivers/net/wireless/orinoco/
H A Dmain.c389 if (ntohs(eh->h_proto) > ETH_DATA_LEN) { /* Ethernet-II frame */
406 hdr.eth.h_proto = htons(len);
1056 hdr->h_proto = htons(length);
/drivers/isdn/i4l/
H A Disdn_net.c1388 if (ntohs(eth->h_proto) >= 1536)
1389 return eth->h_proto;
1969 if (eth->h_proto != htons(ETH_P_IP)) {
1972 dev->name, (int) eth->h_proto);
/drivers/net/ethernet/sfc/
H A Dselftest.c384 payload->header.h_proto = htons(ETH_P_IP);
/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c298 sol->eth.h_proto = htons(ETH_P_FIP);
454 kal->eth.h_proto = htons(ETH_P_FIP);
536 cap->eth.h_proto = htons(ETH_P_FIP);
1887 frame->eth.h_proto = htons(ETH_P_FIP);
/drivers/net/bonding/
H A Dbond_3ad.c844 lacpdu_header->hdr.h_proto = PKT_TYPE_LACPDU;
885 marker_header->hdr.h_proto = PKT_TYPE_LACPDU;
/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1050 gfar_set_attribute(value->h_proto, mask->h_proto, RQFCR_PID_ETY, tab);
/drivers/net/wireless/ath/ath6kl/
H A Dtxrx.c128 ether_type = be16_to_cpu(datap->h_proto);
980 payload_8023_len = ntohs(hdr->h_proto);

Completed in 494 milliseconds

12