Lines Matching refs:len
133 size_t len;
136 retval = ipmp_readtlv(statep->st_fd, &type, &len, infop, endtp);
140 if (type != infotype || !ipmp_checktlv(type, len, *infop)) {
403 * Check that the TLV triplet named by `type', `len' and `value' is correctly
407 ipmp_checktlv(ipmp_infotype_t type, size_t len, void *value)
418 if (len != sizeof (ipmp_addrinfo_t))
424 if (len < IPMP_ADDRLIST_SIZE(0) ||
425 len < IPMP_ADDRLIST_SIZE(adlistp->al_naddr))
431 if (len < IPMP_IFLIST_SIZE(0) ||
432 len < IPMP_IFLIST_SIZE(iflistp->il_nif))
442 if (len != sizeof (ipmp_ifinfo_t))
452 if (len < IPMP_GROUPLIST_SIZE(0) ||
453 len < IPMP_GROUPLIST_SIZE(grlistp->gl_ngroup))
463 if (len != sizeof (ipmp_groupinfo_t))
471 if (len != sizeof (ipmp_snap_t))
1001 size_t len;
1030 retval = ipmp_readtlv(statep->st_fd, &type, &len, &infop, &end);
1034 if (!ipmp_checktlv(type, len, infop)) {