Home
last modified time | relevance | path

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

/illumos-gate/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()
/illumos-gate/usr/src/lib/libdhcputil/common/
H A Ddhcp_inittab.c766 duid_llt_t dllt; in inittab_encode_e() local
792 &dllt.dllt_hwtype, hwtype, in inittab_encode_e()
793 optstart + sizeof (dllt)); in inittab_encode_e()
798 dllt.dllt_dutype = htons(type); in inittab_encode_e()
800 (void) memcpy(optstart, &dllt, sizeof (dllt)); in inittab_encode_e()
1150 duid_llt_t dllt; in inittab_decode_e() local
1152 if (length < sizeof (dllt)) { in inittab_decode_e()
1156 (void) memcpy(&dllt, payload, sizeof (dllt)); in inittab_decode_e()
1157 payload += sizeof (dllt); in inittab_decode_e()
1158 length -= sizeof (dllt); in inittab_decode_e()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dstates.c917 duid_llt_t *dllt; in get_smach_cid() local
920 client_id_len += sizeof (*dllt); in get_smach_cid()
921 dllt = malloc(client_id_len); in get_smach_cid()
922 if (dllt == NULL) in get_smach_cid()
924 dsmp->dsm_cid = (uchar_t *)dllt; in get_smach_cid()
925 dllt->dllt_dutype = htons(duidtype); in get_smach_cid()
926 dllt->dllt_hwtype = htons(subtype); in get_smach_cid()
928 dllt->dllt_time = htonl(now); in get_smach_cid()
929 cp = (char *)(dllt + 1); in get_smach_cid()