/dflybsd-src/contrib/tcpdump/ |
H A D | print-sll.c | 155 u_short ether_type; in sll_print() local 170 ether_type = GET_BE_U_2(sllp->sll_protocol); in sll_print() 172 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in sll_print() 176 switch (ether_type) { in sll_print() 197 ether_type); in sll_print() 202 tok2str(ethertype_values, "Unknown", ether_type), in sll_print() 203 ether_type); in sll_print() 222 u_short ether_type; in sll_if_print() local 254 ether_type = GET_BE_U_2(sllp->sll_protocol); in sll_if_print() 261 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in sll_if_print() [all …]
|
H A D | print-ipoib.c | 46 uint16_t ether_type; in ipoib_hdr_print() local 48 ether_type = GET_BE_U_2(bp + 40); in ipoib_hdr_print() 51 tok2str(ethertype_values,"Unknown", ether_type), in ipoib_hdr_print() 52 ether_type); in ipoib_hdr_print() 55 tok2str(ethertype_values,"Unknown", ether_type)); in ipoib_hdr_print() 73 u_short ether_type; in ipoib_print() local 98 ether_type = GET_BE_U_2(p + 40); in ipoib_print() 101 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in ipoib_print()
|
H A D | print-symantec.c | 37 nd_uint16_t ether_type; member 49 etype = GET_BE_U_2(sp->ether_type); in symantec_hdr_print() 79 u_short ether_type; in symantec_if_print() local 93 ether_type = GET_BE_U_2(sp->ether_type); in symantec_if_print() 95 if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { in symantec_if_print() 102 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { in symantec_if_print()
|
H A D | print-ap1394.c | 95 u_short ether_type; in ap1394_if_print() local 110 ether_type = GET_BE_U_2(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 | 523 u_short ether_type, const u_char *p, in ethertype_print() argument 527 switch (ether_type) { in ethertype_print()
|
/dflybsd-src/sys/net/ |
H A D | if_ethersubr.c | 255 eh->ether_type = htons(ETHERTYPE_MPLS); in ether_output() 258 eh->ether_type = htons(ETHERTYPE_IP); in ether_output() 272 eh->ether_type = htons(ETHERTYPE_REVARP); in ether_output() 277 eh->ether_type = htons(ETHERTYPE_ARP); in ether_output() 292 eh->ether_type = htons(ETHERTYPE_IPV6); in ether_output() 300 eh->ether_type = deh->ether_type; in ether_output() 895 uint16_t ether_type; in altq_etherclassify() local 901 ether_type = ntohs(eh->ether_type); in altq_etherclassify() 902 if (ether_type < ETHERMTU) { in altq_etherclassify() 913 ether_type = ntohs(llc->llc_un.type_snap.ether_type); in altq_etherclassify() [all …]
|
H A D | if_llc.h | 80 u_short ether_type; member
|
H A D | ethernet.h | 82 u_short ether_type; member
|
/dflybsd-src/usr.sbin/vknetd/ |
H A D | filter.c | 51 u_int16_t ether_type; in filter_ok() local 59 ether_type = ntohs(*(u_int16_t *)(pkt + 12)); in filter_ok() 60 if (ether_type == ETHERTYPE_ARP) in filter_ok() 62 if (ether_type != ETHERTYPE_IP) in filter_ok()
|
/dflybsd-src/sys/net/ipfw3_basic/ |
H A D | ip_fw3_basic.c | 288 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_from() 335 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_from_me() 359 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_from_mask() 381 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_to() 428 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_to_me() 452 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_to_mask() 540 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_src_n_port() 562 ntohs((*args)->eh->ether_type) == ETHERTYPE_IP)) { in check_dst_n_port()
|
/dflybsd-src/stand/lib/ |
H A D | ether.c | 70 eh->ether_type = htons(etype); in sendether() 114 *etype = ntohs(eh->ether_type); in readether()
|
H A D | if_ether.h | 55 u_int16_t ether_type; member
|
/dflybsd-src/sys/netgraph7/pppoe/ |
H A D | ng_pppoe.c | 623 privp->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_constructor() 949 privp->eh.ether_type = ETHERTYPE_PPPOE_DISC; in ng_pppoe_rcvmsg() 955 privp->eh.ether_type = in ng_pppoe_rcvmsg() 1205 neg->pkt->pkt_header.eh.ether_type = wh->eh.ether_type; in ng_pppoe_rcvdata() 1315 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata_ether() 1547 if (sp->pkt_hdr.eh.ether_type == in ng_pppoe_rcvdata_ether() 1549 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1552 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1596 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() 1599 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata_ether() [all …]
|
/dflybsd-src/sys/netgraph/pppoe/ |
H A D | ng_pppoe.c | 191 eh_prototype.ether_type = ETHERTYPE_PPPOE_STUPID_DISC; in ngpppoe_set_ethertype() 195 eh_prototype.ether_type = ETHERTYPE_PPPOE_DISC; in ngpppoe_set_ethertype() 199 eh_prototype.ether_type = ETHERTYPE_PPPOE_DISC; in ngpppoe_set_ethertype() 927 switch(wh->eh.ether_type) { in ng_pppoe_rcvdata() 931 eh_prototype.ether_type = in ng_pppoe_rcvdata() 1124 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata() 1127 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata() 1175 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata() 1178 sp->pkt_hdr.eh.ether_type in ng_pppoe_rcvdata() 1456 wh->eh.ether_type = ETHERTYPE_PPPOE_STUPID_DISC; in ng_pppoe_disconnect() [all …]
|
/dflybsd-src/sys/netproto/802_11/wlan/ |
H A D | ieee80211_input.c | 337 !(llc->llc_snap.ether_type == htons(ETHERTYPE_AARP) || in ieee80211_decap() 338 llc->llc_snap.ether_type == htons(ETHERTYPE_IPX))) { in ieee80211_decap() 372 eh->ether_type = htons(m->m_pkthdr.len - sizeof(*eh)); in ieee80211_decap() 399 *framelen = ntohs(eh->ether_type) /* encap'd frame size */ in ieee80211_decap1() 401 eh->ether_type = llc->llc_un.type_snap.ether_type; in ieee80211_decap1()
|
H A D | ieee80211_wds.c | 637 if (eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input() 641 eh->ether_type, m->m_pkthdr.len); in wds_input() 653 eh->ether_type != htons(ETHERTYPE_PAE)) { in wds_input()
|
H A D | ieee80211_adhoc.c | 553 if (eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input() 557 eh->ether_type, m->m_pkthdr.len); in adhoc_input() 569 eh->ether_type != htons(ETHERTYPE_PAE)) { in adhoc_input()
|
H A D | ieee80211_output.c | 379 htons(eh->ether_type)); in ieee80211_start_pkt() 1101 if (eh->ether_type == htons(ETHERTYPE_PAE)) { 1144 if (eh->ether_type == htons(ETHERTYPE_IP)) { 1157 if (eh->ether_type == htons(ETHERTYPE_IPV6)) { 1509 llc->llc_snap.ether_type = eh.ether_type; 3608 llc->llc_snap.ether_type = eh->ether_type; 3619 mtod(m, struct ether_header *)->ether_type = htons(payload);
|
/dflybsd-src/contrib/dhcpcd/src/ |
H A D | bpf.c | 326 eh.ether_type = htons(protocol); in bpf_send() 441 offsetof(struct ether_header, ether_type)), 577 offsetof(struct ether_header, ether_type)),
|
/dflybsd-src/sys/net/bridge/ |
H A D | if_bridge.c | 680 eh->ether_type); in BRIDGE_DEBUG() 2700 (ntohs(eh->ether_type) == ETHERTYPE_ARP || in bridge_input() 2701 ntohs(eh->ether_type) == ETHERTYPE_REVARP)) { in bridge_input() 2717 eh->ether_type, in bridge_input() 3978 u_int16_t ether_type; in bridge_pfil() local 3996 ether_type = ntohs(eh1->ether_type); in bridge_pfil() 4001 if (ether_type < ETHERMTU) { in bridge_pfil() 4008 ether_type = htons(llc2->llc_un.type_snap.ether_type); in bridge_pfil() 4022 switch (ether_type) { in bridge_pfil() 4057 switch (ether_type) { in bridge_pfil() [all …]
|
/dflybsd-src/sys/net/vlan/ |
H A D | if_vlan_ether.c | 129 evh.evl_proto = eh->ether_type; in vlan_ether_ptap()
|
/dflybsd-src/sys/netgraph7/netflow/ |
H A D | ng_netflow.c | 510 etype = ntohs(eh->ether_type); in ng_netflow_rcvdata() 567 switch (ntohs(eh->ether_type)) { in ng_netflow_rcvdata()
|
/dflybsd-src/sys/dev/netif/lnc/ |
H A D | am79900.c | 619 ntohs(eh.ether_type)); in am79900_recv_print() 641 ntohs(eh.ether_type)); in am79900_xmit_print()
|
H A D | am7990.c | 582 ntohs(eh.ether_type)); in am7990_recv_print() 605 ntohs(eh.ether_type)); in am7990_xmit_print()
|
/dflybsd-src/sbin/dhclient/ |
H A D | packet.c | 103 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()
|