Lines Matching refs:ie
548 inittab_encode_e(const dhcp_symbol_t *ie, const char *value, uint16_t *lengthp, in inittab_encode_e() argument
559 uint8_t type_size = inittab_type_to_size(ie); in inittab_encode_e()
572 switch (ie->ds_type) { in inittab_encode_e()
614 hlen = ie->ds_dhcpv6 ? sizeof (*d6o) : 2; in inittab_encode_e()
623 switch (ie->ds_type) { in inittab_encode_e()
898 if (n_entries % ie->ds_gran != 0) { in inittab_encode_e()
911 if (inet_pton(ie->ds_type == DSYM_IP ? AF_INET : in inittab_encode_e()
950 is_signed = (ie->ds_type == DSYM_SNUMBER64 || in inittab_encode_e()
951 ie->ds_type == DSYM_SNUMBER32 || in inittab_encode_e()
952 ie->ds_type == DSYM_SNUMBER16 || in inittab_encode_e()
953 ie->ds_type == DSYM_SNUMBER8); in inittab_encode_e()
963 if (ie->ds_type == DSYM_BOOL) in inittab_encode_e()
969 ie->ds_type); in inittab_encode_e()
980 if (ie->ds_dhcpv6) { in inittab_encode_e()
983 d6o->d6o_code = htons(ie->ds_code); in inittab_encode_e()
986 result[0] = ie->ds_code; in inittab_encode_e()
1011 inittab_decode_e(const dhcp_symbol_t *ie, const uchar_t *payload, in inittab_decode_e() argument
1018 uint8_t type_size = inittab_type_to_size(ie); in inittab_decode_e()
1029 if (ie->ds_dhcpv6) { in inittab_decode_e()
1046 if (ie->ds_type == DSYM_NUMBER) in inittab_decode_e()
1047 n_entries = MIN(ie->ds_max, length / type_size); in inittab_decode_e()
1049 n_entries = MIN(ie->ds_max * ie->ds_gran, length / type_size); in inittab_decode_e()
1056 "with option type `%i'", ie->ds_type); in inittab_decode_e()
1061 switch (ie->ds_type) { in inittab_decode_e()
1257 if ((length / type_size) % ie->ds_gran != 0) { in inittab_decode_e()
1264 result = malloc(n_entries * (ie->ds_type == DSYM_IP ? in inittab_decode_e()
1272 if (ie->ds_type == DSYM_IP) { in inittab_decode_e()
1300 is_signed = (ie->ds_type == DSYM_SNUMBER64 || in inittab_decode_e()
1301 ie->ds_type == DSYM_SNUMBER32 || in inittab_decode_e()
1302 ie->ds_type == DSYM_SNUMBER16 || in inittab_decode_e()
1303 ie->ds_type == DSYM_SNUMBER8); in inittab_decode_e()
1311 if (decode_number(n_entries, type_size, is_signed, ie->ds_gran, in inittab_decode_e()
1320 ie->ds_type); in inittab_decode_e()
1340 inittab_encode(const dhcp_symbol_t *ie, const char *value, uint16_t *lengthp, in inittab_encode() argument
1345 return (inittab_encode_e(ie, value, lengthp, just_payload, &ierrno)); in inittab_encode()
1361 inittab_decode(const dhcp_symbol_t *ie, const uchar_t *payload, uint16_t length, in inittab_decode() argument
1366 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()