Home
last modified time | relevance | path

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

12345

/src/contrib/tcpdump/
H A Dprint-sll.c158 u_short ether_type; in sll_print() local
173 ether_type = GET_BE_U_2(sllp->sll_protocol); in sll_print()
175 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in sll_print()
179 switch (ether_type) { in sll_print()
200 ether_type); in sll_print()
205 tok2str(ethertype_values, "Unknown", ether_type), in sll_print()
206 ether_type); in sll_print()
225 u_short ether_type; in sll_if_print() local
257 ether_type = GET_BE_U_2(sllp->sll_protocol); in sll_if_print()
264 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in sll_if_print()
[all …]
H A Dprint-ipoib.c44 uint16_t ether_type; in ipoib_hdr_print() local
46 ether_type = GET_BE_U_2(bp + 40); in ipoib_hdr_print()
49 tok2str(ethertype_values,"Unknown", ether_type), in ipoib_hdr_print()
50 ether_type); in ipoib_hdr_print()
53 tok2str(ethertype_values,"Unknown", ether_type)); in ipoib_hdr_print()
71 u_short ether_type; in ipoib_print() local
96 ether_type = GET_BE_U_2(p + 40); in ipoib_print()
99 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in ipoib_print()
H A Dprint-symantec.c35 nd_uint16_t ether_type; member
47 etype = GET_BE_U_2(sp->ether_type); in symantec_hdr_print()
77 u_short ether_type; in symantec_if_print() local
91 ether_type = GET_BE_U_2(sp->ether_type); in symantec_if_print()
93 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in symantec_if_print()
100 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in symantec_if_print()
H A Dprint-ap1394.c93 u_short ether_type; in ap1394_if_print() local
108 ether_type = GET_BE_U_2(fp->firewire_type); in ap1394_if_print()
113 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) { in ap1394_if_print()
H A Dprint-ether.c527 u_short ether_type, const u_char *p, in ethertype_print() argument
531 switch (ether_type) { in ethertype_print()
/src/sys/net/
H A Dfirewire.h43 uint32_t ether_type :16; member
45 uint32_t ether_type :16;
55 uint32_t ether_type :16; member
59 uint32_t ether_type :16;
H A Dif_ethersubr.c189 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_requestencap()
228 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
244 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
443 if (eh->ether_type == htons(ETHERTYPE_VLAN) || in ether_set_pcp()
444 eh->ether_type == htons(ETHERTYPE_QINQ)) { in ether_set_pcp()
486 switch (ntohs(eh->ether_type)) { in ether_output_frame()
541 etype = ntohs(eh->ether_type); in ether_input_internal()
857 u_short ether_type; in ether_demux() local
870 ether_type = ntohs(eh->ether_type); in ether_demux()
909 switch (ether_type) { in ether_demux()
H A Dif_fwsubr.c263 enc->unfrag.ether_type = type; in firewire_output()
310 enc->firstfrag.ether_type = type; in firewire_output()
555 type = enc->firstfrag.ether_type; in firewire_input()
558 type = enc->unfrag.ether_type; in firewire_input()
H A Dif_llc.h78 u_int16_t ether_type; member
H A Dif_infiniband.c140 eh.ether_type = ibh->ib_protocol; in infiniband_bpf_mtap()
181 ibh->ib_protocol = eh->ether_type; in infiniband_resolve_bpf()
/src/stand/libsa/
H A Dether.c67 eh->ether_type = htons(etype); in sendether()
118 *etype = ntohs(eh->ether_type); in readether()
/src/sys/netgraph/
H A Dng_pppoe.c684 privp->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_constructor()
1083 privp->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_rcvmsg()
1089 privp->eh.ether_type = in ng_pppoe_rcvmsg()
1172 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1174 wh->eh.ether_type = ETHERTYPE_PPPOE_3COM_DISC; in ng_pppoe_rcvmsg()
1176 wh->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_rcvmsg()
1217 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1219 wh->eh.ether_type = ETHERTYPE_PPPOE_3COM_DISC; in ng_pppoe_rcvmsg()
1221 wh->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_rcvmsg()
1501 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata()
[all …]
/src/sys/net80211/
H A Dieee80211_input.c334 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) || in ieee80211_decap()
335 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX)) && in ieee80211_decap()
371 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap()
411 *framelen = ntohs(eh->ether_type) /* encap'd frame size */ in ieee80211_decap1()
413 eh->ether_type = llc->llc_un.type_snap.ether_type; in ieee80211_decap1()
H A Dieee80211_wds.c644 eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input()
648 eh == NULL ? -1 : eh->ether_type, in wds_input()
663 eh->ether_type != htons(ETHERTYPE_PAE))) { in wds_input()
H A Dieee80211_output.c417 htons(eh->ether_type)); in ieee80211_start_pkt()
1189 uint16_t ether_type; in ieee80211_classify() local
1216 ether_type = llc->llc_snap.ether_type; in ieee80211_classify()
1219 ether_type = eh->ether_type; in ieee80211_classify()
1225 if (ether_type == htons(ETHERTYPE_PAE)) { in ieee80211_classify()
1262 switch (ntohs(eh->ether_type)) { in ieee80211_classify()
1654 llc->llc_snap.ether_type = eh.ether_type; in ieee80211_encap()
4143 llc->llc_snap.ether_type = eh->ether_type; in ieee80211_ff_encap1()
4154 mtod(m, struct ether_header *)->ether_type = htons(payload); in ieee80211_ff_encap1()
H A Dieee80211_adhoc.c582 eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input()
586 eh == NULL ? -1 : eh->ether_type, in adhoc_input()
601 eh->ether_type != htons(ETHERTYPE_PAE))) { in adhoc_input()
/src/stand/libofw/
H A Dofw_net.c104 printf("type: 0x%x\n", eh->ether_type & 0xffff); in ofwn_put()
186 printf("type: 0x%x\n", eh->ether_type & 0xffff); in ofwn_get()
/src/sbin/dhclient/
H A Dpacket.c104 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
161 return (sizeof(eh) + (ntohs(eh.ether_type) == ETHERTYPE_VLAN ? in decode_hw_header()
/src/sbin/ipf/ipsend/
H A Dip.c67 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
110 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
H A Dresend.c103 eh->ether_type = htons((u_short)ETHERTYPE_IP); in ip_resend()
/src/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c493 u16 ether_type; in qlnxr_gsi_build_header() local
506 ether_type = ETH_P_ROCE; in qlnxr_gsi_build_header()
528 udh->vlan.type = htons(ether_type); in qlnxr_gsi_build_header()
530 udh->eth.type = htons(ether_type); in qlnxr_gsi_build_header()
/src/sys/arm64/broadcom/genet/
H A Dif_genet.c1249 uint16_t ether_type; in gen_parse_tx() local
1300 if (((struct ether_header *)p)->ether_type == htons(ETHERTYPE_VLAN)) { in gen_parse_tx()
1302 ether_type = ntohs(((struct ether_vlan_header *)p)->evl_proto); in gen_parse_tx()
1315 ether_type = ntohs(((struct ether_header *)p)->ether_type); in gen_parse_tx()
1327 if (ether_type == ETHERTYPE_IP) { in gen_parse_tx()
1330 } else if (ether_type == ETHERTYPE_IPV6) { in gen_parse_tx()
/src/sys/dev/gve/
H A Dgve_tx.c662 KASSERT(eh->ether_type != ETHERTYPE_VLAN, in gve_xmit()
665 is_ipv6 = ntohs(eh->ether_type) == ETHERTYPE_IPV6; in gve_xmit()
675 } else if (ntohs(eh->ether_type) == ETHERTYPE_IP) { in gve_xmit()
886 return (ntohs(eh->ether_type) == ETHERTYPE_VLAN); in is_vlan_tagged_pkt()
/src/usr.sbin/wake/
H A Dwake.c164 pkt.hdr.ether_type = htons(0); in send_wakeup()
/src/sys/kern/
H A Duipc_mbufhash.c170 etype = ntohs(eh->ether_type); in m_ether_tcpip_hash()

12345