Home
last modified time | relevance | path

Searched refs:ethertype (Results 1 – 11 of 11) sorted by relevance

/titanic_53/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ether.c133 int ethertype; in interpret_ether() local
170 ethertype = ntohs(e->ether_type); in interpret_ether()
181 if (ethertype == ETHERTYPE_VLAN) { in interpret_ether()
201 ethertype = ntohs(evx->ether_type); in interpret_ether()
205 if (ethertype <= 1514) { in interpret_ether()
212 ieee8023 = ethertype; in interpret_ether()
215 ethertype = ntohs(*(ushort_t *)(off + 6)); in interpret_ether()
219 ethertype = 0; in interpret_ether()
234 if (ethertype == 0 && ieee8023 > 0) { in interpret_ether()
242 ethertype, print_ethertype(ethertype), in interpret_ether()
[all …]
H A Dsnoop_trill.c42 uint16_t ethertype; in interpret_trill() local
100 ethertype = ntohs(inner_ethvlanhdr->ether_type); in interpret_trill()
111 print_ethertype(ethertype)); in interpret_trill()
116 return (ethertype); in interpret_trill()
H A Dsnoop_pf.c252 static void pf_match_ethertype(uint_t ethertype);
1097 pf_match_ethertype(uint_t ethertype) in pf_match_ethertype() argument
1115 if (ethertype == ETHERTYPE_VLAN) in pf_match_ethertype()
1120 pf_compare_value(dl.dl_link_type_offset, 2, htons(ethertype)); in pf_match_ethertype()
/titanic_53/usr/src/uts/common/io/
H A Dgldutil.c166 pktinfo->ethertype = REF_NET_USHORT(mh->ether_type); in gld_interpret_ether()
267 pktinfo->ethertype = typelen; /* use type interpretation */ in gld_interpret_ether()
323 pktinfo->ethertype = REF_NET_USHORT(snaphdr->type); in gld_interpret_ether()
617 pktinfo->ethertype = REF_NET_USHORT(ihp->ipoib_type); in gld_interpret_ib()
792 pktinfo->ethertype = REF_NET_USHORT(((ipoib_hdr_t *) in gld_interpret_ib()
832 hptr->ipoib_type = pktinfo->ethertype; in gld_interpret_mdt_ib()
872 pktinfo->ethertype = REF_NET_USHORT(dlap-> in gld_interpret_mdt_ib()
1127 pktinfo->ethertype = REF_NET_USHORT(snaphdr->type); in gld_interpret_fddi()
1528 pktinfo->ethertype = REF_NET_USHORT(snaphdr->type); in gld_interpret_tr()
H A Dgld.c2657 switch (pktinfo.ethertype) { in gld_recv_tagged()
2729 pktinfo.ethertype, in gld_recv_tagged()
2954 ((stream->gld_ethertype && stream->gld_sap == pktinfo->ethertype) || \
3232 type = (gld->gld_ethertype) ? pktinfo->ethertype : 0; in gld_addudind()
/titanic_53/usr/src/uts/common/sys/
H A Dgldpriv.h215 uint_t ethertype; member
/titanic_53/usr/src/uts/common/io/dld/
H A Ddld_str.c1580 uint16_t ethertype; in str_notify_phys_addr() local
1601 ethertype = (dsp->ds_sap < ETHERTYPE_802_MIN) ? 0 : dsp->ds_sap; in str_notify_phys_addr()
1602 *(uint16_t *)((uchar_t *)(dlip + 1) + addr_length) = ethertype; in str_notify_phys_addr()
/titanic_53/usr/src/uts/common/io/chxge/
H A Dpe.c306 ushort_t ethertype = ntohs(*(short *)&mp->b_rptr[12]); in pe_start() local
307 if (ethertype == ETHERTYPE_ARP) { in pe_start()
/titanic_53/usr/src/uts/common/io/sfe/
H A Dsfe_util.c225 uint_t ethertype; in gem_dump_packet() local
267 ethertype = GET_ETHERTYPE(p); in gem_dump_packet()
268 if (ethertype == VTAG_TPID) { in gem_dump_packet()
274 ethertype = GET_ETHERTYPE(p); in gem_dump_packet()
276 sprintf(bp, " type:%04x", ethertype); in gem_dump_packet()
297 if (ethertype != ETHERTYPE_IP) { in gem_dump_packet()
/titanic_53/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSEmbeddedAPI.h543 mDNSOpaque16 ethertype;
H A DmDNS.c14042 …if (end >= p+42 && mDNSSameOpaque16(eth->ethertype, Ethertype_ARP) && mDNSSameOpaque16(pkt->arp.hr… in mDNSCoreReceiveRawPacket()
14045 …else if (end >= p+34 && mDNSSameOpaque16(eth->ethertype, Ethertype_IPv4) && (pkt->v4.flagsfrags.b[… in mDNSCoreReceiveRawPacket()
14055 else if (end >= p+54 && mDNSSameOpaque16(eth->ethertype, Ethertype_IPv6)) in mDNSCoreReceiveRawPacket()