Lines Matching refs:sym
632 dsym_close_parser(char **fields, dhcp_symbol_t *sym)
635 dsym_free_classes(&sym->ds_classes);
653 dhcp_symbol_t *sym)
666 sym->ds_category = 0;
667 sym->ds_code = 0;
668 (void) strlcpy(sym->ds_name, name, DSYM_MAX_SYM_LEN);
669 sym->ds_type = 0;
670 sym->ds_gran = 0;
671 sym->ds_max = 0;
672 sym->ds_classes.dc_names = NULL;
673 sym->ds_classes.dc_cnt = 0;
733 dsym_parse_field(int field_num, char **fields, dhcp_symbol_t *sym)
742 ret = dsym_parse_cat(fields[field_num], &sym->ds_category);
743 if (ret == DSYM_SUCCESS && sym->ds_category == DSYM_VENDOR) {
745 &sym->ds_classes);
753 sym->ds_code = (ushort_t)intval;
754 ret = dsym_validate_code(sym->ds_category,
755 sym->ds_code);
760 ret = dsym_parse_type(fields[field_num], &sym->ds_type);
767 sym->ds_gran = (uchar_t)intval;
768 ret = dsym_validate_granularity(sym->ds_type,
769 sym->ds_gran);
777 sym->ds_max = (uchar_t)intval;
802 dsym_parser(char **fields, dhcp_symbol_t *sym, int *lastField,
814 tret = dsym_parse_field(i, fields, sym);