Lines Matching refs:cidlen
2017 dhcpnospoof_check_cid(mac_protect_t *p, uchar_t *cid, uint_t cidlen)
2024 if (dcid->dc_len == cidlen &&
2025 bcmp(dcid->dc_id, cid, cidlen) == 0)
2037 uint_t maclen, cidlen = 0;
2050 cidlen = optlen;
2052 if (cidlen == 0)
2055 if (*cid == ARPHRD_ETHER && cidlen - 1 == maclen &&
2059 return (dhcpnospoof_check_cid(p, cid, cidlen));
2070 uint_t cidlen, maclen, addrlen = 0;
2086 DHCPV6_OPT_CLIENTID, &cidlen);
2087 if (d6o == NULL || (uchar_t *)d6o + cidlen > end)
2091 cidlen -= sizeof (*d6o);
2092 if (cidlen < sizeof (cidtype))
2097 if (cidtype == DHCPV6_DUID_LLT && cidlen >= sizeof (duid_llt_t)) {
2099 addrlen = cidlen - sizeof (duid_llt_t);
2101 if (cidtype == DHCPV6_DUID_LL && cidlen >= sizeof (duid_ll_t)) {
2103 addrlen = cidlen - sizeof (duid_ll_t);
2110 return (dhcpnospoof_check_cid(p, cid, cidlen));