Home
last modified time | relevance | path

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

/titanic_44/usr/src/lib/libdhcpagent/common/
H A Ddhcp_stable.c148 duid_llt_t *dllt; in make_stable_duid() local
151 if ((dllt = malloc(sizeof (*dllt) + len)) == NULL) { in make_stable_duid()
156 (void) memcpy((dllt + 1), dlinfo.di_physaddr, len); in make_stable_duid()
157 dllt->dllt_dutype = htons(DHCPV6_DUID_LLT); in make_stable_duid()
158 dllt->dllt_hwtype = htons(arptype); in make_stable_duid()
160 dllt->dllt_time = htonl(now); in make_stable_duid()
161 *duidlen = sizeof (*dllt) + len; in make_stable_duid()
163 return ((uchar_t *)dllt); in make_stable_duid()
/titanic_44/usr/src/lib/libdhcputil/common/
H A Ddhcp_inittab.c765 duid_llt_t dllt; in inittab_encode_e() local
791 &dllt.dllt_hwtype, hwtype, in inittab_encode_e()
792 optstart + sizeof (dllt)); in inittab_encode_e()
797 dllt.dllt_dutype = htons(type); in inittab_encode_e()
798 dllt.dllt_time = htonl(tstamp); in inittab_encode_e()
799 (void) memcpy(optstart, &dllt, sizeof (dllt)); in inittab_encode_e()
800 length = maclen + sizeof (dllt); in inittab_encode_e()
1149 duid_llt_t dllt; in inittab_decode_e() local
1151 if (length < sizeof (dllt)) { in inittab_decode_e()
1155 (void) memcpy(&dllt, payload, sizeof (dllt)); in inittab_decode_e()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dstates.c914 duid_llt_t *dllt; in get_smach_cid() local
917 client_id_len += sizeof (*dllt); in get_smach_cid()
918 dllt = malloc(client_id_len); in get_smach_cid()
919 if (dllt == NULL) in get_smach_cid()
921 dsmp->dsm_cid = (uchar_t *)dllt; in get_smach_cid()
922 dllt->dllt_dutype = htons(duidtype); in get_smach_cid()
923 dllt->dllt_hwtype = htons(subtype); in get_smach_cid()
925 dllt->dllt_time = htonl(now); in get_smach_cid()
926 cp = (char *)(dllt + 1); in get_smach_cid()