#define SIZEOF(X) sizeof(((struct s_auth *)0)->X) static const struct config_list account_opts[] = { #ifdef CS_ANTICASC DEF_OPT_FIXUP_FUNC(account_fixups_fn), #endif DEF_OPT_INT8("disabled" , OFS(disabled), 0 ), DEF_OPT_SSTR("user" , OFS(usr), "", SIZEOF(usr) ), DEF_OPT_STR("pwd" , OFS(pwd), NULL ), #ifdef WEBIF DEF_OPT_STR("description" , OFS(description), NULL ), #endif DEF_OPT_STR("hostname" , OFS(dyndns), NULL ), DEF_OPT_FUNC("caid" , OFS(ctab), check_caidtab_fn ), DEF_OPT_INT8("uniq" , OFS(uniq), 0 ), DEF_OPT_UINT8("sleepsend" , OFS(c35_sleepsend), 0 ), DEF_OPT_INT32("failban" , OFS(failban), 0 ), DEF_OPT_INT8("monlevel" , OFS(monlvl), 0 ), DEF_OPT_FUNC("sleep" , OFS(tosleep), account_tosleep_fn ), DEF_OPT_FUNC("suppresscmd08" , OFS(c35_suppresscmd08), account_c35_suppresscmd08_fn ), DEF_OPT_FUNC("keepalive" , OFS(ncd_keepalive), account_ncd_keepalive_fn ), DEF_OPT_FUNC("au" , 0, account_au_fn ), DEF_OPT_FUNC("expdate" , 0, account_expdate_fn ), DEF_OPT_FUNC("allowedprotocols" , 0, account_allowedprotocols_fn ), DEF_OPT_FUNC("allowedtimeframe" , 0, account_allowedtimeframe_fn ), DEF_OPT_FUNC("betatunnel" , OFS(ttab), account_tuntab_fn ), DEF_OPT_FUNC("group" , OFS(grp), account_group_fn ), DEF_OPT_FUNC("services" , 0, account_services_fn ), DEF_OPT_FUNC("ident" , 0, account_ident_fn ), DEF_OPT_FUNC("chid" , 0, account_chid_fn ), DEF_OPT_FUNC("class" , 0, account_class_fn ),
DEF_OPT_UINT32("cachedelay" , OFS(delay), CS_DELAY ), DEF_OPT_INT32("bindwait" , OFS(bindwait), CS_BIND_TIMEOUT ), DEF_OPT_UINT32("netprio" , OFS(netprio), 0 ), DEF_OPT_INT32("sleep" , OFS(tosleep), 0 ), DEF_OPT_INT32("unlockparental" , OFS(ulparent), 0 ), DEF_OPT_INT32("nice" , OFS(nice), 99 ), DEF_OPT_UINT32("serialreadertimeout" , OFS(srtimeout), 1500 ), DEF_OPT_INT32("maxlogsize" , OFS(max_log_size), 10 ), DEF_OPT_INT8("waitforcards" , OFS(waitforcards), 1 ), DEF_OPT_INT32("waitforcards_extra_delay" , OFS(waitforcards_extra_delay), 500 ), DEF_OPT_INT8("preferlocalcards" , OFS(preferlocalcards), 0 ), DEF_OPT_INT32("readerrestartseconds" , OFS(reader_restart_seconds), 5 ), DEF_OPT_INT8("dropdups" , OFS(dropdups), 0 ), #ifdef CS_CACHEEX DEF_OPT_UINT32("cacheexwaittime" , OFS(cacheex_wait_time), DEFAULT_CACHEEX_WAIT_TIME ), DEF_OPT_UINT8("cacheexenablestats" , OFS(cacheex_enable_stats), 0 ), #endif DEF_OPT_INT8("block_same_ip" , OFS(block_same_ip), 1 ), DEF_OPT_INT8("block_same_name" , OFS(block_same_name), 1 ), DEF_OPT_STR("usrfile" , OFS(usrfile), NULL ), DEF_OPT_STR("mailfile" , OFS(mailfile), NULL ), DEF_OPT_STR("cwlogdir" , OFS(cwlogdir), NULL ), DEF_OPT_STR("emmlogdir" , OFS(emmlogdir), NULL ), #ifdef WITH_LB DEF_OPT_INT32("lb_mode" , OFS(lb_mode), DEFAULT_LB_MODE ), DEF_OPT_INT32("lb_save" , OFS(lb_save), 0 ), DEF_OPT_INT32("lb_nbest_readers" , OFS(lb_nbest_readers), DEFAULT_NBEST ), DEF_OPT_INT32("lb_nfb_readers" , OFS(lb_nfb_readers), DEFAULT_NFB ), DEF_OPT_INT32("lb_min_ecmcount" , OFS(lb_min_ecmcount), DEFAULT_MIN_ECM_COUNT ), DEF_OPT_INT32("lb_max_ecmcount" , OFS(lb_max_ecmcount), DEFAULT_MAX_ECM_COUNT ), DEF_OPT_INT32("lb_reopen_seconds" , OFS(lb_reopen_seconds), DEFAULT_REOPEN_SECONDS ),
static const struct config_list account_opts[] = { #ifdef CS_ANTICASC DEF_OPT_FIXUP_FUNC(account_fixups_fn), #endif DEF_OPT_INT8("disabled" , OFS(disabled), 0), DEF_OPT_SSTR("user" , OFS(usr), "", SIZEOF(usr)), DEF_OPT_STR("pwd" , OFS(pwd), NULL), #ifdef WEBIF DEF_OPT_STR("description" , OFS(description), NULL), #endif DEF_OPT_STR("hostname" , OFS(dyndns), NULL), DEF_OPT_FUNC("caid" , OFS(ctab), check_caidtab_fn), DEF_OPT_INT8("uniq" , OFS(uniq), 0), DEF_OPT_UINT8("sleepsend" , OFS(c35_sleepsend), 0), DEF_OPT_INT32("failban" , OFS(failban), 0), DEF_OPT_INT8("monlevel" , OFS(monlvl), 0), DEF_OPT_FUNC("sleep" , OFS(tosleep), account_tosleep_fn), DEF_OPT_FUNC("suppresscmd08" , OFS(c35_suppresscmd08), account_c35_suppresscmd08_fn), DEF_OPT_INT32("umaxidle" , OFS(umaxidle), -1), DEF_OPT_FUNC("keepalive" , OFS(ncd_keepalive), account_ncd_keepalive_fn), DEF_OPT_FUNC("au" , 0, account_au_fn), DEF_OPT_UINT8("emmreassembly" , OFS(emm_reassembly), 2), DEF_OPT_FUNC("expdate" , 0, account_expdate_fn), DEF_OPT_FUNC("allowedprotocols" , 0, account_allowedprotocols_fn), DEF_OPT_FUNC("allowedtimeframe" , 0, account_allowedtimeframe_fn), DEF_OPT_FUNC("betatunnel" , OFS(ttab), account_tuntab_fn), DEF_OPT_FUNC("group" , OFS(grp), group_fn), DEF_OPT_FUNC("services" , OFS(sidtabs), services_fn), DEF_OPT_INT8("preferlocalcards" , OFS(preferlocalcards), -1),