| /freebsd-12.1/contrib/tcpdump/ |
| H A D | print-sll.c | 137 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() 201 u_short ether_type; in sll_if_print() local 235 if (ether_type <= ETHERMTU) { in sll_if_print() 239 switch (ether_type) { in sll_if_print() 287 ether_type = EXTRACT_16BITS(p + 2); in sll_if_print() 288 if (ether_type <= ETHERMTU) in sll_if_print() [all …]
|
| H A D | print-medsa.c | 50 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 D | print-symantec.c | 38 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 D | print-ap1394.c | 94 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 D | print-ether.c | 326 u_short ether_type, const u_char *p, in ethertype_print() argument 330 switch (ether_type) { in ethertype_print()
|
| /freebsd-12.1/sys/net/ |
| H A D | firewire.h | 45 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 D | if_ethersubr.c | 195 memcpy(&eh->ether_type, &etype, sizeof(eh->ether_type)); in ether_requestencap() 236 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr() 251 memcpy(&eh->ether_type, &etype, sizeof(etype)); in ether_resolve_addr() 449 if (ntohs(eh->ether_type) == ETHERTYPE_VLAN || in ether_set_pcp() 521 etype = ntohs(eh->ether_type); in ether_input_internal() 801 u_short ether_type; in ether_demux() local 815 ether_type = ntohs(eh->ether_type); in ether_demux() 856 switch (ether_type) { in ether_demux()
|
| H A D | if_fwsubr.c | 246 enc->unfrag.ether_type = type; in firewire_output() 293 enc->firstfrag.ether_type = type; in firewire_output() 538 type = enc->firstfrag.ether_type; in firewire_input() 541 type = enc->unfrag.ether_type; in firewire_input()
|
| H A D | if_llc.h | 81 u_int16_t ether_type; member
|
| H A D | if_bridge.c | 3109 u_int16_t ether_type; in bridge_pfil() local 3132 ether_type = ntohs(eh1->ether_type); in bridge_pfil() 3137 if (ether_type < ETHERMTU) { in bridge_pfil() 3144 ether_type = htons(llc2->llc_un.type_snap.ether_type); in bridge_pfil() 3158 switch (ether_type) { in bridge_pfil() 3205 switch (ether_type) { in bridge_pfil() 3226 switch (ether_type) { in bridge_pfil()
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_pppoe.c | 1073 privp->eh.ether_type = in ng_pppoe_rcvmsg() 1156 if (wh->eh.ether_type == in ng_pppoe_rcvmsg() 1199 if (wh->eh.ether_type == in ng_pppoe_rcvmsg() 1479 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata() 1590 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata_ether() 1822 if (sp->pkt_hdr.eh.ether_type == in ng_pppoe_rcvdata_ether() 1824 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1827 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1870 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1873 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() [all …]
|
| /freebsd-12.1/stand/libsa/ |
| H A D | ether.c | 72 eh->ether_type = htons(etype); in sendether() 123 *etype = ntohs(eh->ether_type); in readether()
|
| /freebsd-12.1/stand/ofw/libofw/ |
| H A D | ofw_net.c | 102 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-12.1/sys/net80211/ |
| H A D | ieee80211_input.c | 318 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) || in ieee80211_decap() 319 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX))) { in ieee80211_decap() 353 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap() 380 *framelen = ntohs(eh->ether_type) /* encap'd frame size */ in ieee80211_decap1() 382 eh->ether_type = llc->llc_un.type_snap.ether_type; in ieee80211_decap1()
|
| H A D | ieee80211_output.c | 377 htons(eh->ether_type)); in ieee80211_start_pkt() 1161 uint16_t ether_type; in ieee80211_classify() local 1188 ether_type = llc->llc_snap.ether_type; in ieee80211_classify() 1191 ether_type = eh->ether_type; in ieee80211_classify() 1197 if (ether_type == htons(ETHERTYPE_PAE)) { in ieee80211_classify() 1232 if (eh && eh->ether_type == htons(ETHERTYPE_IP)) { in ieee80211_classify() 1245 if (eh && eh->ether_type == htons(ETHERTYPE_IPV6)) { in ieee80211_classify() 1603 llc->llc_snap.ether_type = eh.ether_type; in ieee80211_encap() 3959 llc->llc_snap.ether_type = eh->ether_type; in ieee80211_ff_encap1() 3970 mtod(m, struct ether_header *)->ether_type = htons(payload); in ieee80211_ff_encap1()
|
| H A D | ieee80211_wds.c | 645 if (eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input() 649 eh->ether_type, m->m_pkthdr.len); in wds_input() 662 eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input()
|
| H A D | ieee80211_adhoc.c | 584 if (eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input() 588 eh->ether_type, m->m_pkthdr.len); in adhoc_input() 601 eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input()
|
| /freebsd-12.1/contrib/ipfilter/ipsend/ |
| H A D | ip.c | 75 eh->ether_type = htons(ETHERTYPE_IP); 121 eh->ether_type = htons(ETHERTYPE_IP);
|
| H A D | resend.c | 111 eh->ether_type = htons((u_short)ETHERTYPE_IP);
|
| /freebsd-12.1/sys/kern/ |
| H A D | uipc_mbufhash.c | 98 etype = ntohs(eh->ether_type); in m_ether_tcpip_hash()
|
| /freebsd-12.1/usr.sbin/wake/ |
| H A D | wake.c | 166 pkt.hdr.ether_type = htons(0); in send_wakeup()
|
| /freebsd-12.1/sys/dev/le/ |
| H A D | am79900.c | 633 ntohs(eh.ether_type)); in am79900_recv_print() 655 ntohs(eh.ether_type)); in am79900_xmit_print()
|
| H A D | am7990.c | 595 ntohs(eh.ether_type)); in am7990_recv_print() 618 ntohs(eh.ether_type)); in am7990_xmit_print()
|
| /freebsd-12.1/sbin/dhclient/ |
| H A D | packet.c | 106 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
|
| /freebsd-12.1/stand/uboot/lib/ |
| H A D | net.c | 250 printf("type: 0x%x\n", eh->ether_type & 0xffff); in net_put()
|