Home
last modified time | relevance | path

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

12345

/freebsd-14.2/contrib/tcpdump/
H A Dprint-sll.c158 u_short ether_type; in sll_print() local
179 switch (ether_type) { in sll_print()
200 ether_type); in sll_print()
206 ether_type); in sll_print()
225 u_short ether_type; in sll_if_print() local
268 switch (ether_type) { in sll_if_print()
342 u_short ether_type; in sll2_print() local
383 ether_type); in sll2_print()
389 ether_type); in sll2_print()
408 u_short ether_type; in sll2_if_print() local
[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()
/freebsd-14.2/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.c197 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_requestencap()
236 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
252 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr()
451 if (eh->ether_type == htons(ETHERTYPE_VLAN) || in ether_set_pcp()
452 eh->ether_type == htons(ETHERTYPE_QINQ)) { in ether_set_pcp()
494 switch (ntohs(eh->ether_type)) { in ether_output_frame()
549 etype = ntohs(eh->ether_type); in ether_input_internal()
875 u_short ether_type; in ether_demux() local
888 ether_type = ntohs(eh->ether_type); in ether_demux()
927 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.h80 u_int16_t ether_type; member
/freebsd-14.2/stand/libsa/
H A Dether.c67 eh->ether_type = htons(etype); in sendether()
118 *etype = ntohs(eh->ether_type); in readether()
/freebsd-14.2/sys/netgraph/
H A Dng_pppoe.c1089 privp->eh.ether_type = in ng_pppoe_rcvmsg()
1172 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1217 if (wh->eh.ether_type == in ng_pppoe_rcvmsg()
1501 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata()
1611 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata_ether()
1842 if (sp->pkt_hdr.eh.ether_type == in ng_pppoe_rcvdata_ether()
1844 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1847 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1890 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
1893 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether()
[all …]
/freebsd-14.2/sys/net80211/
H A Dieee80211_input.c336 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) || in ieee80211_decap()
337 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX)) && in ieee80211_decap()
373 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap()
413 *framelen = ntohs(eh->ether_type) /* encap'd frame size */ in ieee80211_decap1()
415 eh->ether_type = llc->llc_un.type_snap.ether_type; in ieee80211_decap1()
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_output.c417 htons(eh->ether_type)); in ieee80211_start_pkt()
1202 uint16_t ether_type; in ieee80211_classify() local
1229 ether_type = llc->llc_snap.ether_type; in ieee80211_classify()
1232 ether_type = eh->ether_type; in ieee80211_classify()
1238 if (ether_type == htons(ETHERTYPE_PAE)) { in ieee80211_classify()
1275 switch (ntohs(eh->ether_type)) { in ieee80211_classify()
1668 llc->llc_snap.ether_type = eh.ether_type; in ieee80211_encap()
4139 llc->llc_snap.ether_type = eh->ether_type; in ieee80211_ff_encap1()
4150 mtod(m, struct ether_header *)->ether_type = htons(payload); in ieee80211_ff_encap1()
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-14.2/sbin/dhclient/
H A Dpacket.c104 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
158 return (sizeof(eh) + (ntohs(eh.ether_type) == ETHERTYPE_VLAN ? in decode_hw_header()
/freebsd-14.2/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()
/freebsd-14.2/sbin/ipf/ipsend/
H A Dip.c71 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
114 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
H A Dresend.c107 eh->ether_type = htons((u_short)ETHERTYPE_IP); in ip_resend()
/freebsd-14.2/sys/dev/gve/
H A Dgve_tx.c582 KASSERT(eh->ether_type != ETHERTYPE_VLAN, in gve_xmit()
585 is_ipv6 = ntohs(eh->ether_type) == ETHERTYPE_IPV6; in gve_xmit()
595 } else if (ntohs(eh->ether_type) == ETHERTYPE_IP) { in gve_xmit()
733 return (ntohs(eh->ether_type) == ETHERTYPE_VLAN); in is_vlan_tagged_pkt()
/freebsd-14.2/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()
/freebsd-14.2/sys/arm64/broadcom/genet/
H A Dif_genet.c1219 uint16_t ether_type; in gen_parse_tx() local
1270 if (((struct ether_header *)p)->ether_type == htons(ETHERTYPE_VLAN)) { in gen_parse_tx()
1272 ether_type = ntohs(((struct ether_vlan_header *)p)->evl_proto); in gen_parse_tx()
1285 ether_type = ntohs(((struct ether_header *)p)->ether_type); in gen_parse_tx()
1297 if (ether_type == ETHERTYPE_IP) { in gen_parse_tx()
1300 } else if (ether_type == ETHERTYPE_IPV6) { in gen_parse_tx()
/freebsd-14.2/usr.sbin/wake/
H A Dwake.c164 pkt.hdr.ether_type = htons(0); in send_wakeup()
/freebsd-14.2/sys/kern/
H A Duipc_mbufhash.c170 etype = ntohs(eh->ether_type); in m_ether_tcpip_hash()
/freebsd-14.2/sys/dev/le/
H A Dam79900.c631 ntohs(eh.ether_type)); in am79900_recv_print()
653 ntohs(eh.ether_type)); in am79900_xmit_print()

12345