Home
last modified time | relevance | path

Searched refs:tohp (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsocksubr.c1163 struct T_opthdr *tohp; in so_cmsglen() local
1169 for (tohp = (struct T_opthdr *)opt; in so_cmsglen()
1170 tohp && _TPI_TOPT_VALID(tohp, opt, (uintptr_t)opt + optlen); in so_cmsglen()
1171 tohp = _TPI_TOPT_NEXTHDR(opt, optlen, tohp)) { in so_cmsglen()
1173 tohp->level, tohp->name, tohp->len)); in so_cmsglen()
1174 if (tohp->level == SOL_SOCKET && in so_cmsglen()
1175 (tohp->name == SO_SRCADDR || in so_cmsglen()
1176 tohp->name == SO_UNIX_CLOSE)) { in so_cmsglen()
1179 if (tohp->level == SOL_SOCKET && tohp->name == SO_FILEP) { in so_cmsglen()
1183 fdbuf = (struct fdbuf *)_TPI_TOPT_DATA(tohp); in so_cmsglen()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dtihdr.h662 #define _TPI_TOPT_DATA(tohp) \ argument
663 ((unsigned char *)((char *)(tohp) + sizeof (struct T_opthdr)))
671 #define _TPI_TOPT_DATALEN(tohp) ((tohp)->len - sizeof (struct T_opthdr)) argument
713 #define _TPI_TOPT_VALID(tohp, start, end) \ argument
714 (__TPI_TOPT_ISALIGNED(tohp) && \
715 ((uintptr_t)(tohp) >= (uintptr_t)(start)) && \
716 ((uintptr_t)(tohp) < (uintptr_t)(end)) && \
717 ((ssize_t)(tohp)->len >= sizeof (struct T_opthdr)) && \
718 ((uintptr_t)(tohp) + (tohp)->len <= (uintptr_t)(end)) && \
719 ((uintptr_t)(tohp) + (tohp)->len >= (uintptr_t)(tohp) + \
/illumos-gate/usr/src/head/
H A Dxti.h453 #define T_OPT_DATA(tohp) \ argument
454 ((unsigned char *)_T_OPTDATA_ALIGN((char *)(tohp) + _T_OPTHDR_SZ))
462 #define T_OPT_NEXTHDR(nbp, tohp) (_T_NEXTHDR((nbp)->buf, (nbp)->len, (tohp))) argument