Searched refs:evhp (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet_common.c69 struct ether_vlan_header *evhp; local
85 evhp = (struct ether_vlan_header *)mp->b_rptr;
86 evhp->ether_tpid = htons(ETHERTYPE_VLAN);
87 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid));
108 evhp = (struct ether_vlan_header *)nmp->b_rptr;
109 evhp->ether_tpid = htons(ETHERTYPE_VLAN);
110 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid));
114 sizeof (evhp->ether_type));
H A Dvsw_switching.c1479 struct ether_vlan_header *evhp; local
1486 evhp = (struct ether_vlan_header *)ehp;
1487 *vidp = VLAN_ID(ntohs(evhp->ether_tci));
H A Dvnet.c1331 struct ether_vlan_header *evhp; local
1344 evhp = (struct ether_vlan_header *)bp->b_rptr;
1346 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN &&
1347 VLAN_ID(ntohs(evhp->ether_tci)) == pvid) {
H A Dvnet_gen.c1570 struct ether_vlan_header *evhp; local
1575 evhp = (struct ether_vlan_header *)ehp;
1576 *vidp = VLAN_ID(ntohs(evhp->ether_tci));
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_util.c141 struct ether_vlan_header *evhp; local
145 evhp = (struct ether_vlan_header *)mp->b_rptr;
146 sap = ntohs(evhp->ether_type);
321 struct ether_vlan_header *evhp; local
339 evhp = (struct ether_vlan_header *)hmp->b_rptr;
342 bcopy(ehp, evhp, (ETHERADDRL * 2));
343 evhp->ether_type = ehp->ether_type;
344 evhp->ether_tpid = htons(ETHERTYPE_VLAN);
367 evhp->ether_tci = htons(VLAN_TCI(pri, 0, vid));
406 struct ether_vlan_header *evhp; local
933 struct ether_vlan_header *evhp; local
[all...]
H A Dmac_flow.c1674 struct ether_vlan_header *evhp = local
1677 if (PKT_TOO_SMALL(s, l2->l2_start + sizeof (*evhp)))
1680 l2->l2_sap = ntohs(evhp->ether_type);
1681 l2->l2_vid = VLAN_ID(ntohs(evhp->ether_tci));
1682 l2->l2_hdrsize = sizeof (*evhp);
1701 struct ether_vlan_header *evhp; local
1703 evhp = (struct ether_vlan_header *)l2->l2_start;
1704 l2->l2_daddr = evhp->ether_dhost.ether_addr_octet;
1722 struct ether_vlan_header *evhp; local
1725 evhp
[all...]
H A Dmac_sched.c1493 struct ether_vlan_header *evhp; local
1568 evhp = (struct ether_vlan_header *)mp->b_rptr;
1569 sap = ntohs(evhp->ether_type);
1576 VLAN_ID(ntohs(evhp->ether_tci)))) {
1897 struct ether_vlan_header *evhp; local
1987 evhp = (struct ether_vlan_header *)mp->b_rptr;
1988 sap = ntohs(evhp->ether_type);
1995 VLAN_ID(ntohs(evhp->ether_tci)))) {
4387 struct ether_vlan_header *evhp = local
4390 if (ntohs(evhp
[all...]
H A Dmac_client.c4257 struct ether_vlan_header *evhp; local
4274 evhp = (struct ether_vlan_header *)mp->b_rptr;
4275 sap = ntohs(evhp->ether_type);
4278 mhip->mhi_tci = ntohs(evhp->ether_tci);
/illumos-gate/usr/src/uts/common/sys/
H A Dmac_client_impl.h279 struct ether_vlan_header *evhp; \
282 evhp = (struct ether_vlan_header *)(mp)->b_rptr;\
283 vlanid = VLAN_ID(ntohs(evhp->ether_tci)); \
/illumos-gate/usr/src/uts/common/io/dld/
H A Ddld_str.c776 struct ether_vlan_header *evhp; local
783 evhp = (struct ether_vlan_header *)mp->b_rptr;
784 if (ntohs(evhp->ether_tpid) == ETHERTYPE_VLAN) {
806 evhp = (struct ether_vlan_header *)mp->b_rptr;
807 old_tci = ntohs(evhp->ether_tci);
823 evhp = (struct ether_vlan_header *)hmp->b_rptr;
829 bcopy(ehp, evhp, (ETHERADDRL * 2));
830 evhp->ether_type = ehp->ether_type;
831 evhp->ether_tpid = htons(ETHERTYPE_VLAN);
853 evhp
1146 struct ether_vlan_header *evhp; local
[all...]
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsockmod_pfp.c389 struct ether_vlan_header *evhp; local
395 if (MBLKL(mp) >= sizeof (*evhp)) {
396 evhp = (struct ether_vlan_header *)mp->b_rptr;
398 int sz = sizeof (*evhp);
409 evhp = &evh;
411 hdr.mhi_tci = ntohs(evhp->ether_tci);
412 hdr.mhi_bindsap = ntohs(evhp->ether_type);
/illumos-gate/usr/src/uts/common/io/dls/
H A Ddls.c439 struct ether_vlan_header *evhp; local
480 evhp = (struct ether_vlan_header *)mp->b_rptr;
481 evhp->ether_tci = htons(VLAN_TCI(pri, ETHER_CFI, vid));
482 evhp->ether_type = htons(sap);
/illumos-gate/usr/src/uts/common/io/
H A Dgldutil.c213 struct ether_vlan_header *evhp; local
222 evhp = (struct ether_vlan_header *)mp->b_rptr;
223 tci = REF_NET_USHORT(evhp->ether_tci);
431 struct ether_vlan_header *evhp; local
443 evhp = (struct ether_vlan_header *)nmp->b_rptr;
453 evhp = (struct ether_vlan_header *)nmp->b_rptr;
455 mac_copy(&ehp->ether_dhost, &evhp->ether_dhost, ETHERADDRL);
456 mac_copy(&ehp->ether_shost, &evhp->ether_shost, ETHERADDRL);
457 bcopy(&ehp->ether_type, &evhp->ether_type, sizeof (uint16_t));
469 SET_NET_USHORT(evhp
[all...]
H A Dbridge.c1811 struct ether_vlan_header *evhp; local
1815 evhp = (struct ether_vlan_header *)mp->b_rptr;
1817 hdr_info->mhi_tci = ntohs(evhp->ether_tci);
1823 ether_type = ntohs(evhp->ether_type);
1827 mp->b_rptr = (uchar_t *)(evhp + 1);
2566 struct ether_vlan_header *evhp; local
2569 evhp = (struct ether_vlan_header *)mp->b_rptr;
2570 tci = ntohs(evhp->ether_tci);
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.c172 free_handler(evt_handler_t *evhp) argument
174 if (evhp->ename)
175 free(evhp->ename);
176 (void) pthread_cond_broadcast(&evhp->cv);
177 (void) pthread_cond_destroy(&evhp->cv);
178 free(evhp);
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxnf.c1382 struct ether_vlan_header *evhp; local
1384 ASSERT(length >= sizeof (*evhp));
1385 evhp = (struct ether_vlan_header *)buf;
1386 sap = ntohs(evhp->ether_type);
1387 offset = sizeof (*evhp);
H A Dxnb.c290 struct ether_vlan_header *evhp; local
293 evhp = (struct ether_vlan_header *)mp->b_rptr;
294 sap = ntohs(evhp->ether_type);

Completed in 252 milliseconds