Lines Matching defs:sap
474 dlpi_bind(dlpi_handle_t dh, uint_t sap, uint_t *boundsap)
490 * If 'sap' is DLPI_ANY_SAP, bind to SAP 2 on token ring, else 0 on
493 if (sap == DLPI_ANY_SAP)
497 bindreqp->dl_sap = sap;
514 * is NULL and 'sap' is not DLPI_ANY_SAP, dlpi_bind fails.
518 } else if (sap != DLPI_ANY_SAP && bindackp->dl_sap != sap) {
525 dip->dli_sap = bindackp->dl_sap; /* save sap value in handle */
702 uint_t sap;
723 sap = sendp->dsi_sap;
729 sap = dip->dli_sap;
741 i_dlpi_writesap(&udatareqp[1], sap, dip->dli_saplen);
746 i_dlpi_writesap((caddr_t)&udatareqp[1] + daddrlen, sap,
1746 * sap values vary in length and are in host byte order, build sap value
1747 * by writing saplen bytes, so that the sap value is left aligned.
1753 uint_t sap = 0;
1760 sap <<= 8;
1761 sap |= sapp[i];
1764 return (sap);
1768 * Copy sap value to a buffer in host byte order. saplen is the number of
1772 i_dlpi_writesap(void *dstbuf, uint_t sap, uint_t saplen)
1777 sapp = (uint8_t *)&sap;
1779 sapp = (uint8_t *)&sap + (sizeof (sap) - saplen);