Lines Matching refs:ie

547 inittab_encode_e(const dhcp_symbol_t *ie, const char *value, uint16_t *lengthp,  in inittab_encode_e()  argument
558 uint8_t type_size = inittab_type_to_size(ie); in inittab_encode_e()
571 switch (ie->ds_type) { in inittab_encode_e()
613 hlen = ie->ds_dhcpv6 ? sizeof (*d6o) : 2; in inittab_encode_e()
622 switch (ie->ds_type) { in inittab_encode_e()
897 if (n_entries % ie->ds_gran != 0) { in inittab_encode_e()
910 if (inet_pton(ie->ds_type == DSYM_IP ? AF_INET : in inittab_encode_e()
949 is_signed = (ie->ds_type == DSYM_SNUMBER64 || in inittab_encode_e()
950 ie->ds_type == DSYM_SNUMBER32 || in inittab_encode_e()
951 ie->ds_type == DSYM_SNUMBER16 || in inittab_encode_e()
952 ie->ds_type == DSYM_SNUMBER8); in inittab_encode_e()
962 if (ie->ds_type == DSYM_BOOL) in inittab_encode_e()
968 ie->ds_type); in inittab_encode_e()
979 if (ie->ds_dhcpv6) { in inittab_encode_e()
982 d6o->d6o_code = htons(ie->ds_code); in inittab_encode_e()
985 result[0] = ie->ds_code; in inittab_encode_e()
1010 inittab_decode_e(const dhcp_symbol_t *ie, const uchar_t *payload, in inittab_decode_e() argument
1017 uint8_t type_size = inittab_type_to_size(ie); in inittab_decode_e()
1028 if (ie->ds_dhcpv6) { in inittab_decode_e()
1045 if (ie->ds_type == DSYM_NUMBER) in inittab_decode_e()
1046 n_entries = MIN(ie->ds_max, length / type_size); in inittab_decode_e()
1048 n_entries = MIN(ie->ds_max * ie->ds_gran, length / type_size); in inittab_decode_e()
1055 "with option type `%i'", ie->ds_type); in inittab_decode_e()
1060 switch (ie->ds_type) { in inittab_decode_e()
1256 if ((length / type_size) % ie->ds_gran != 0) { in inittab_decode_e()
1263 result = malloc(n_entries * (ie->ds_type == DSYM_IP ? in inittab_decode_e()
1271 if (ie->ds_type == DSYM_IP) { in inittab_decode_e()
1299 is_signed = (ie->ds_type == DSYM_SNUMBER64 || in inittab_decode_e()
1300 ie->ds_type == DSYM_SNUMBER32 || in inittab_decode_e()
1301 ie->ds_type == DSYM_SNUMBER16 || in inittab_decode_e()
1302 ie->ds_type == DSYM_SNUMBER8); in inittab_decode_e()
1310 if (decode_number(n_entries, type_size, is_signed, ie->ds_gran, in inittab_decode_e()
1319 ie->ds_type); in inittab_decode_e()
1339 inittab_encode(const dhcp_symbol_t *ie, const char *value, uint16_t *lengthp, in inittab_encode() argument
1344 return (inittab_encode_e(ie, value, lengthp, just_payload, &ierrno)); in inittab_encode()
1360 inittab_decode(const dhcp_symbol_t *ie, const uchar_t *payload, uint16_t length, in inittab_decode() argument
1365 return (inittab_decode_e(ie, payload, length, just_payload, &ierrno)); in inittab_decode()
1610 inittab_type_to_size(const dhcp_symbol_t *ie) in inittab_type_to_size() argument
1612 switch (ie->ds_type) { in inittab_type_to_size()
1645 return (ie->ds_gran); in inittab_type_to_size()