Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/tcpdump/
H A Dprint-sll.c137 u_short ether_type; in sll_print() local
152 if (ether_type <= ETHERMTU) { in sll_print()
156 switch (ether_type) { in sll_print()
177 ether_type)); in sll_print()
183 ether_type)); in sll_print()
202 u_short ether_type; in sll_if_print() local
246 if (ether_type <= ETHERMTU) { in sll_if_print()
250 switch (ether_type) { in sll_if_print()
298 ether_type = EXTRACT_16BITS(p + 2); in sll_if_print()
299 if (ether_type <= ETHERMTU) in sll_if_print()
[all …]
H A Dprint-medsa.c50 u_short ether_type; member
145 u_short ether_type; in medsa_print() local
160 ether_type = EXTRACT_16BITS(&medsa->ether_type); in medsa_print()
161 if (ether_type <= ETHERMTU) { in medsa_print()
172 ether_type), in medsa_print()
173 ether_type)); in medsa_print()
174 if (ethertype_print(ndo, ether_type, bp, length, caplen, src, dst) == 0) { in medsa_print()
179 ether_type), in medsa_print()
180 ether_type)); in medsa_print()
H A Dprint-symantec.c38 uint16_t ether_type; member
50 etype = EXTRACT_16BITS(&sp->ether_type); in symantec_hdr_print()
80 u_short ether_type; in symantec_if_print() local
95 ether_type = EXTRACT_16BITS(&sp->ether_type); in symantec_if_print()
97 if (ether_type <= ETHERMTU) { in symantec_if_print()
104 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in symantec_if_print()
H A Dprint-ap1394.c94 u_short ether_type; in ap1394_if_print() local
110 ether_type = EXTRACT_16BITS(&fp->firewire_type); in ap1394_if_print()
115 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) { in ap1394_if_print()
H A Dprint-ether.c326 u_short ether_type, const u_char *p, in ethertype_print() argument
330 switch (ether_type) { in ethertype_print()
/freebsd-13.1/sys/net/
H A Dfirewire.h45 uint32_t ether_type :16; member
47 uint32_t ether_type :16;
57 uint32_t ether_type :16; member
61 uint32_t ether_type :16;
H A Dif_ethersubr.c191 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_requestencap()
231 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
247 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
446 if (ntohs(eh->ether_type) == ETHERTYPE_VLAN || in ether_set_pcp()
447 ntohs(eh->ether_type) == ETHERTYPE_QINQ) in ether_set_pcp()
492 switch (ntohs(eh->ether_type)) { in ether_output_frame()
543 etype = ntohs(eh->ether_type); in ether_input_internal()
844 u_short ether_type; in ether_demux() local
857 ether_type = ntohs(eh->ether_type); in ether_demux()
898 switch (ether_type) { in ether_demux()
H A Dif_fwsubr.c264 enc->unfrag.ether_type = type; in firewire_output()
311 enc->firstfrag.ether_type = type; in firewire_output()
556 type = enc->firstfrag.ether_type; in firewire_input()
559 type = enc->unfrag.ether_type; in firewire_input()
H A Dif_llc.h81 u_int16_t ether_type; member
/freebsd-13.1/sys/netgraph/
H A Dng_pppoe.c1075 privp->eh.ether_type = in ng_pppoe_rcvmsg()
1158 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1203 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1485 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata()
1596 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata_ether()
1828 if (sp->pkt_hdr.eh.ether_type == in ng_pppoe_rcvdata_ether()
1830 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1833 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1876 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1879 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
[all …]
/freebsd-13.1/stand/libsa/
H A Dether.c72 eh->ether_type = htons(etype); in sendether()
123 *etype = ntohs(eh->ether_type); in readether()
/freebsd-13.1/stand/libofw/
H A Dofw_net.c102 printf("type: 0x%x\n", eh->ether_type & 0xffff); in ofwn_put()
184 printf("type: 0x%x\n", eh->ether_type & 0xffff); in ofwn_get()
/freebsd-13.1/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_output.c418 htons(eh->ether_type)); in ieee80211_start_pkt()
1203 uint16_t ether_type; in ieee80211_classify() local
1230 ether_type = llc->llc_snap.ether_type; in ieee80211_classify()
1233 ether_type = eh->ether_type; in ieee80211_classify()
1239 if (ether_type == htons(ETHERTYPE_PAE)) { in ieee80211_classify()
1274 if (eh && eh->ether_type == htons(ETHERTYPE_IP)) { in ieee80211_classify()
1287 if (eh && eh->ether_type == htons(ETHERTYPE_IPV6)) { in ieee80211_classify()
1662 llc->llc_snap.ether_type = eh.ether_type; in ieee80211_encap()
4136 llc->llc_snap.ether_type = eh->ether_type; in ieee80211_ff_encap1()
4147 mtod(m, struct ether_header *)->ether_type = htons(payload); in ieee80211_ff_encap1()
H A Dieee80211_wds.c649 eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input()
653 eh == NULL ? -1 : eh->ether_type, in wds_input()
668 eh->ether_type != htons(ETHERTYPE_PAE))) { in wds_input()
H A Dieee80211_adhoc.c588 eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input()
592 eh == NULL ? -1 : eh->ether_type, in adhoc_input()
607 eh->ether_type != htons(ETHERTYPE_PAE))) { in adhoc_input()
/freebsd-13.1/sbin/dhclient/
H A Dpacket.c106 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
160 return (sizeof(eh) + (ntohs(eh.ether_type) == ETHERTYPE_VLAN ? in decode_hw_header()
/freebsd-13.1/sbin/ipf/ipsend/
H A Dip.c72 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
115 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
H A Dresend.c108 eh->ether_type = htons((u_short)ETHERTYPE_IP); in ip_resend()
/freebsd-13.1/sys/arm64/broadcom/genet/
H A Dif_genet.c1155 uint16_t ether_type; in gen_parse_tx() local
1207 if (((struct ether_header *)p)->ether_type == htons(ETHERTYPE_VLAN)) { in gen_parse_tx()
1209 ether_type = ntohs(((struct ether_vlan_header *)p)->evl_proto); in gen_parse_tx()
1222 ether_type = ntohs(((struct ether_header *)p)->ether_type); in gen_parse_tx()
1234 if (ether_type == ETHERTYPE_IP) { in gen_parse_tx()
1237 } else if (ether_type == ETHERTYPE_IPV6) { in gen_parse_tx()
/freebsd-13.1/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c498 u16 ether_type; in qlnxr_gsi_build_header() local
516 ether_type = ETH_P_ROCE; in qlnxr_gsi_build_header()
551 udh->vlan.type = htons(ether_type); in qlnxr_gsi_build_header()
553 udh->eth.type = htons(ether_type); in qlnxr_gsi_build_header()
/freebsd-13.1/usr.sbin/wake/
H A Dwake.c166 pkt.hdr.ether_type = htons(0); in send_wakeup()
/freebsd-13.1/sys/kern/
H A Duipc_mbufhash.c172 etype = ntohs(eh->ether_type); in m_ether_tcpip_hash()
/freebsd-13.1/sys/dev/le/
H A Dam79900.c633 ntohs(eh.ether_type)); in am79900_recv_print()
655 ntohs(eh.ether_type)); in am79900_xmit_print()
H A Dam7990.c595 ntohs(eh.ether_type)); in am7990_recv_print()
618 ntohs(eh.ether_type)); in am7990_xmit_print()

12345