Searched refs:h_proto (Results 101 - 125 of 249) sorted by relevance

12345678910

/linux-master/net/netfilter/
H A Dnft_chain_filter.c239 switch (eth_hdr(skb)->h_proto) {
H A Dnft_payload.c162 if (len > offsetof(struct ethhdr, h_proto))
336 case offsetof(struct ethhdr, h_proto):
/linux-master/tools/testing/selftests/net/
H A Dpsock_tpacket.c134 if (eth->h_proto != htons(ETH_P_IP)) {
136 "type: 0x%x!\n", ntohs(eth->h_proto));
154 eth->h_proto = htons(ETH_P_IP);
H A Dtap.c225 eth->h_proto = htons(proto);
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c357 if (eth_mask->h_proto) {
359 *(__be16 *)(key + off) = eth_value->h_proto;
360 *(__be16 *)(mask + off) = eth_mask->h_proto;
/linux-master/drivers/net/usb/
H A Dsierra_net.c228 skb->protocol = eth_hdr(skb)->h_proto;
839 if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6))
840 eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c325 MLX5E_FTE_SET(headers_c, ethertype, ntohs(eth_mask->h_proto));
326 MLX5E_FTE_SET(headers_v, ethertype, ntohs(eth_val->h_proto));
567 if (eth_mask->h_proto)
/linux-master/drivers/firewire/
H A Dnet.c215 put_unaligned_be16(type, &h->h_proto);
242 h->h_proto = type;
525 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
526 protocol = eth->h_proto;
1261 proto = hdr_buf.h_proto;
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c1026 __be16 proto = eth->h_proto;
1037 proto = __vlan_get_protocol(skb, eth->h_proto, NULL);
1047 } else if (eth_type_vlan(eth->h_proto)) {
1048 proto = __vlan_get_protocol(skb, eth->h_proto, &network_depth);
1119 if (ntohs(eth->h_proto) == ETH_P_IPV6)
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1381 fs->h_u.ether_spec.h_proto = entry->key.l3_proto;
1382 fs->m_u.ether_spec.h_proto = entry->msk.l3_proto;
1564 entry->msk.l3_proto = fs->m_u.ether_spec.h_proto;
1565 entry->key.l3_proto = fs->h_u.ether_spec.h_proto & entry->msk.l3_proto;
1657 if (fs->h_u.ether_spec.h_proto == htons(ETH_P_IP) ||
1658 fs->h_u.ether_spec.h_proto == htons(ETH_P_IPV6)) {
1665 (fs->m_u.ether_spec.h_proto != htons(0xffff));
/linux-master/drivers/scsi/qedi/
H A Dqedi_main.c687 if (eh->h_proto == htons(ETH_P_8021Q)) {
694 if (eh->h_proto != htons(ETH_P_ARP) &&
695 eh->h_proto != htons(ETH_P_IP) &&
696 eh->h_proto != htons(ETH_P_IPV6)) {
699 eh->h_proto, skb->len);
706 eh->h_proto, skb->len);
/linux-master/net/wireless/
H A Dutil.c573 &payload.eth.h_proto)))
578 payload.eth.h_proto = htons(skb->len - hdrlen);
662 ieee80211_get_8023_tunnel_proto(&payload, &tmp.h_proto))) {
667 tmp.h_proto = htons(skb->len - hdrlen);
856 len = ieee80211_amsdu_subframe_length(&hdr.eth.h_proto, hdr.flags,
898 ieee80211_get_8023_tunnel_proto(frame->data, &hdr.eth.h_proto)))
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c975 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) ||
976 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX))
978 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN)
/linux-master/drivers/staging/rtl8723bs/include/
H A Drtw_xmit.h443 extern s32 rtw_put_snap(u8 *data, u16 h_proto);
/linux-master/net/bridge/
H A Dbr_arp_nd_proxy.c299 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c222 return parse_eth_proto(skb, eth->h_proto);
/linux-master/net/core/
H A Dselftests.c100 ehdr->h_proto = htons(ETH_P_IP);
/linux-master/include/net/
H A Dvxlan.h384 !can_checksum_protocol(features, inner_eth_hdr(skb)->h_proto))))
H A Dllc_pdu.h354 dsize = ntohs(eth_hdr(ev_skb)->h_proto) - 3;
/linux-master/net/ncsi/
H A Dncsi-cmd.c380 eh->h_proto = htons(ETH_P_NCSI);
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1031 fsp->h_u.ether_spec.h_proto = rule->eth_data.etype;
1032 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype;
1223 fltr->eth_data.etype = fsp->h_u.ether_spec.h_proto;
1224 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto;
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c1221 if (fsp->m_u.ether_spec.h_proto && fsp->m_ext.vlan_tci &&
1247 !eth_spec->h_proto)
1251 if (eth_spec->h_proto == htons(0xFFFF)) {
1256 } else if (eth_spec->h_proto) {
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_main.c121 unlikely(eth_hdr(skb)->h_proto == htons(ETH_P_1588)))
H A Daq_filters.c142 fsp->m_u.ether_spec.h_proto == 0U) {
323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcls_redirect.c223 .eth = { .h_proto = htons(ETH_P_IP) },

Completed in 709 milliseconds

12345678910