Searched refs:tohp (Results 1 – 3 of 3) sorted by relevance
/titanic_50/usr/src/uts/common/fs/sockfs/ |
H A D | socksubr.c | 1115 struct T_opthdr *tohp; in so_cmsglen() local 1121 for (tohp = (struct T_opthdr *)opt; in so_cmsglen() 1122 tohp && _TPI_TOPT_VALID(tohp, opt, (uintptr_t)opt + optlen); in so_cmsglen() 1123 tohp = _TPI_TOPT_NEXTHDR(opt, optlen, tohp)) { in so_cmsglen() 1125 tohp->level, tohp->name, tohp->len)); in so_cmsglen() 1126 if (tohp->level == SOL_SOCKET && in so_cmsglen() 1127 (tohp->name == SO_SRCADDR || in so_cmsglen() 1128 tohp->name == SO_UNIX_CLOSE)) { in so_cmsglen() 1131 if (tohp->level == SOL_SOCKET && tohp->name == SO_FILEP) { in so_cmsglen() 1135 fdbuf = (struct fdbuf *)_TPI_TOPT_DATA(tohp); in so_cmsglen() [all …]
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | tihdr.h | 699 #define _TPI_TOPT_DATA(tohp) \ argument 700 ((unsigned char *)((char *)(tohp) + sizeof (struct T_opthdr))) 708 #define _TPI_TOPT_DATALEN(tohp) ((tohp)->len - sizeof (struct T_opthdr)) argument 750 #define _TPI_TOPT_VALID(tohp, start, end) \ argument 751 (__TPI_TOPT_ISALIGNED(tohp) && \ 752 ((uintptr_t)(tohp) >= (uintptr_t)(start)) && \ 753 ((uintptr_t)(tohp) < (uintptr_t)(end)) && \ 754 ((ssize_t)(tohp)->len >= sizeof (struct T_opthdr)) && \ 755 ((uintptr_t)(tohp) + (tohp)->len <= (uintptr_t)(end)) && \ 756 ((uintptr_t)(tohp) + (tohp)->len >= (uintptr_t)(tohp) + \
|
/titanic_50/usr/src/head/ |
H A D | xti.h | 453 #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
|