Home
last modified time | relevance | path

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

123

/dflybsd-src/contrib/tcpdump/
H A Dprint-sll.c155 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 Dprint-ipoib.c46 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 Dprint-symantec.c37 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 Dprint-ap1394.c95 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 Dprint-ether.c523 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 Dif_ethersubr.c255 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 Dif_llc.h80 u_short ether_type; member
H A Dethernet.h82 u_short ether_type; member
/dflybsd-src/usr.sbin/vknetd/
H A Dfilter.c51 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 Dip_fw3_basic.c288 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 Dether.c70 eh->ether_type = htons(etype); in sendether()
114 *etype = ntohs(eh->ether_type); in readether()
H A Dif_ether.h55 u_int16_t ether_type; member
/dflybsd-src/sys/netgraph7/pppoe/
H A Dng_pppoe.c623 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 Dng_pppoe.c191 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 Dieee80211_input.c337 !(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 Dieee80211_wds.c637 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 Dieee80211_adhoc.c553 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 Dieee80211_output.c379 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 Dbpf.c326 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 Dif_bridge.c680 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 Dif_vlan_ether.c129 evh.evl_proto = eh->ether_type; in vlan_ether_ptap()
/dflybsd-src/sys/netgraph7/netflow/
H A Dng_netflow.c510 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 Dam79900.c619 ntohs(eh.ether_type)); in am79900_recv_print()
641 ntohs(eh.ether_type)); in am79900_xmit_print()
H A Dam7990.c582 ntohs(eh.ether_type)); in am7990_recv_print()
605 ntohs(eh.ether_type)); in am7990_xmit_print()
/dflybsd-src/sbin/dhclient/
H A Dpacket.c103 eh.ether_type = htons(ETHERTYPE_IP); in assemble_hw_header()

123