| /freebsd/contrib/wpa/src/ap/ |
| H A D | ap_config.c | 187 struct hostapd_config *conf; in hostapd_config_defaults() local 210 conf = os_zalloc(sizeof(*conf)); in hostapd_config_defaults() 212 if (conf == NULL || bss == NULL) { in hostapd_config_defaults() 215 os_free(conf); in hostapd_config_defaults() 219 conf->bss = os_calloc(1, sizeof(struct hostapd_bss_config *)); in hostapd_config_defaults() 220 if (conf->bss == NULL) { in hostapd_config_defaults() 221 os_free(conf); in hostapd_config_defaults() 225 conf->bss[0] = bss; in hostapd_config_defaults() 229 os_free(conf->bss); in hostapd_config_defaults() 230 os_free(conf); in hostapd_config_defaults() [all …]
|
| H A D | authsrv.c | 108 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() local 126 srv.client_file = conf->radius_server_clients; in hostapd_setup_radius_srv() 127 srv.auth_port = conf->radius_server_auth_port; in hostapd_setup_radius_srv() 128 srv.acct_port = conf->radius_server_acct_port; in hostapd_setup_radius_srv() 130 srv.ipv6 = conf->radius_server_ipv6; in hostapd_setup_radius_srv() 132 srv.eap_req_id_text = conf->eap_req_id_text; in hostapd_setup_radius_srv() 133 srv.eap_req_id_text_len = conf->eap_req_id_text_len; in hostapd_setup_radius_srv() 134 srv.sqlite_file = conf->eap_user_sqlite; in hostapd_setup_radius_srv() 136 srv.dump_msk_file = conf->dump_msk_file; in hostapd_setup_radius_srv() 139 srv.subscr_remediation_url = conf->subscr_remediation_url; in hostapd_setup_radius_srv() [all …]
|
| H A D | wpa_auth_ie.c | 28 static int wpa_write_wpa_ie(struct wpa_auth_config *conf, u8 *buf, size_t len) in wpa_write_wpa_ie() argument 41 suite = wpa_cipher_to_suite(WPA_PROTO_WPA, conf->wpa_group); in wpa_write_wpa_ie() 44 conf->wpa_group); in wpa_write_wpa_ie() 53 num_suites = wpa_cipher_put_suites(pos, conf->wpa_pairwise); in wpa_write_wpa_ie() 56 conf->wpa_pairwise); in wpa_write_wpa_ie() 66 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) { in wpa_write_wpa_ie() 71 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) { in wpa_write_wpa_ie() 79 conf->wpa_key_mgmt); in wpa_write_wpa_ie() 92 static u16 wpa_own_rsn_capab(struct wpa_auth_config *conf) in wpa_own_rsn_capab() argument 96 if (conf->rsn_preauth) in wpa_own_rsn_capab() [all …]
|
| H A D | hostapd.c | 126 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reconfig_encryption() 138 if (hapd->conf->wmm_enabled < 0) in hostapd_reload_bss() 139 hapd->conf->wmm_enabled = hapd->iconf->ieee80211n | in hostapd_reload_bss() 143 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss() 146 ssid = &hapd->conf->ssid; in hostapd_reload_bss() 153 hostapd_config_clear_wpa_psk(&hapd->conf->ssid.wpa_psk); in hostapd_reload_bss() 155 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss() 160 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss() 161 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 163 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() [all …]
|
| H A D | hw_features.c | 184 if (iface->conf->basic_rates) in hostapd_prepare_rates() 185 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates() 226 if (iface->conf->supported_rates && in hostapd_prepare_rates() 227 !hostapd_rate_found(iface->conf->supported_rates, in hostapd_prepare_rates() 243 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates() 260 sec_freq = pri_freq + iface->conf->secondary_channel * 20; in ieee80211n_allowed_ht40_channel_pair() 280 if (iface->conf->secondary_channel > 0) { in ieee80211n_switch_pri_sec() 281 iface->conf->channel += 4; in ieee80211n_switch_pri_sec() 283 iface->conf->secondary_channel = -1; in ieee80211n_switch_pri_sec() 285 iface->conf->channel -= 4; in ieee80211n_switch_pri_sec() [all …]
|
| H A D | ieee802_11_shared.c | 46 if (hapd->conf->assoc_sa_query_max_timeout > tu) in hostapd_eid_assoc_comeback_time() 47 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time() 50 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time() 54 if (hapd->conf->test_assoc_comeback_type != -1) in hostapd_eid_assoc_comeback_time() 55 type = hapd->conf->test_assoc_comeback_type; in hostapd_eid_assoc_comeback_time() 89 if (hapd->conf->oci_freq_override_saquery_req) { in ieee802_11_send_sa_query_req() 93 hapd->conf->oci_freq_override_saquery_req); in ieee802_11_send_sa_query_req() 95 hapd->conf->oci_freq_override_saquery_req; in ieee802_11_send_sa_query_req() 184 if (hapd->conf->oci_freq_override_saquery_resp) { in ieee802_11_send_sa_query_resp() 188 hapd->conf->oci_freq_override_saquery_resp); in ieee802_11_send_sa_query_resp() [all …]
|
| H A D | wpa_auth_glue.c | 38 static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf, in hostapd_wpa_auth_conf() argument 45 wconf->wpa = conf->wpa; in hostapd_wpa_auth_conf() 46 wconf->extended_key_id = conf->extended_key_id; in hostapd_wpa_auth_conf() 47 wconf->wpa_key_mgmt = conf->wpa_key_mgmt; in hostapd_wpa_auth_conf() 48 wconf->wpa_pairwise = conf->wpa_pairwise; in hostapd_wpa_auth_conf() 49 wconf->wpa_group = conf->wpa_group; in hostapd_wpa_auth_conf() 50 wconf->wpa_group_rekey = conf->wpa_group_rekey; in hostapd_wpa_auth_conf() 51 wconf->wpa_strict_rekey = conf->wpa_strict_rekey; in hostapd_wpa_auth_conf() 52 wconf->wpa_gmk_rekey = conf->wpa_gmk_rekey; in hostapd_wpa_auth_conf() 53 wconf->wpa_ptk_rekey = conf->wpa_ptk_rekey; in hostapd_wpa_auth_conf() [all …]
|
| /freebsd/crypto/openssl/crypto/conf/ |
| H A D | conf_def.c | 45 static int is_keytype(const CONF *conf, char c, unsigned short type); 46 static char *eat_ws(CONF *conf, char *p); 47 static void trim_ws(CONF *conf, char *start); 48 static char *eat_alpha_numeric(CONF *conf, char *p); 49 static void clear_comments(CONF *conf, char *p); 50 static int str_copy(CONF *conf, char *section, char **to, char *from); 51 static char *scan_quote(CONF *conf, char *p); 52 static char *scan_dquote(CONF *conf, char *p); 53 #define scan_esc(conf, p) (((IS_EOF((conf), (p)[1])) ? ((p) + 1) : ((p) + 2))) argument 61 static int def_init_default(CONF *conf); [all …]
|
| H A D | conf_lib.c | 26 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash) in CONF_set_nconf() argument 31 default_CONF_method->init(conf); in CONF_set_nconf() 32 conf->data = hash; in CONF_set_nconf() 46 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, in LHASH_OF() 62 ltmp = CONF_load_bio(conf, in, eline); in LHASH_OF() 69 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, in LHASH_OF() 78 ltmp = CONF_load_bio(conf, btmp, eline); in LHASH_OF() 84 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, in LHASH_OF() 90 CONF_set_nconf(&ctmp, conf); in LHASH_OF() 98 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, in STACK_OF() [all …]
|
| H A D | conf_def.h | 30 #define IS_COMMENT(conf,c) is_keytype(conf, c, CONF_COMMENT) argument 31 #define IS_FCOMMENT(conf,c) is_keytype(conf, c, CONF_FCOMMENT) argument 32 #define IS_EOF(conf,c) is_keytype(conf, c, CONF_EOF) argument 33 #define IS_ESC(conf,c) is_keytype(conf, c, CONF_ESC) argument 34 #define IS_NUMBER(conf,c) is_keytype(conf, c, CONF_NUMBER) argument 35 #define IS_WS(conf,c) is_keytype(conf, c, CONF_WS) argument 36 #define IS_ALNUM(conf,c) is_keytype(conf, c, CONF_ALNUM) argument 37 #define IS_ALNUM_PUNCT(conf,c) is_keytype(conf, c, CONF_ALNUM_PUNCT) argument 38 #define IS_QUOTE(conf,c) is_keytype(conf, c, CONF_QUOTE) argument 39 #define IS_DQUOTE(conf,c) is_keytype(conf, c, CONF_DQUOTE) argument [all …]
|
| H A D | conf_api.c | 20 static void value_free_hash(const CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf); 23 CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section) in _CONF_get_section() argument 27 if (conf == NULL || section == NULL) in _CONF_get_section() 31 return conf->data != NULL ? lh_CONF_VALUE_retrieve(conf->data, &vv) : NULL; in _CONF_get_section() 34 STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, in STACK_OF() 39 v = _CONF_get_section(conf, section); in STACK_OF() 45 int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value) in _CONF_add_string() argument 56 v = lh_CONF_VALUE_insert(conf->data, value); in _CONF_add_string() 66 char *_CONF_get_string(const CONF *conf, const char *section, in _CONF_get_string() argument 74 if (conf == NULL) in _CONF_get_string() [all …]
|
| /freebsd/contrib/ofed/opensm/opensm/ |
| H A D | osm_prtn_config.c | 128 static inline boolean_t ip_mgroup_pkey_ok(struct part_conf *conf, in ip_mgroup_pkey_ok() argument 138 || mpkey == (conf->p_prtn->pkey | cl_hton16(0x8000))) in ip_mgroup_pkey_ok() 141 OSM_LOG(conf->p_log, OSM_LOG_ERROR, in ip_mgroup_pkey_ok() 145 cl_ntoh16(mpkey), cl_ntoh16(conf->p_prtn->pkey), conf->p_prtn->name); in ip_mgroup_pkey_ok() 149 static inline boolean_t ip_mgroup_rate_ok(struct part_conf *conf, in ip_mgroup_rate_ok() argument 154 if (group->flags.rate == conf->flags.rate) in ip_mgroup_rate_ok() 157 OSM_LOG(conf->p_log, OSM_LOG_ERROR, in ip_mgroup_rate_ok() 162 group->flags.rate, cl_ntoh16(conf->p_prtn->pkey), in ip_mgroup_rate_ok() 163 conf->p_prtn->name, conf->flags.rate); in ip_mgroup_rate_ok() 167 static inline boolean_t ip_mgroup_mtu_ok(struct part_conf *conf, in ip_mgroup_mtu_ok() argument [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | mesh.c | 85 struct mesh_conf *conf; in mesh_config_create() local 88 conf = os_zalloc(sizeof(struct mesh_conf)); in mesh_config_create() 89 if (!conf) in mesh_config_create() 92 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create() 93 conf->meshid_len = ssid->ssid_len; in mesh_config_create() 96 conf->security |= MESH_CONF_SEC_AUTH | in mesh_config_create() 99 conf->security |= MESH_CONF_SEC_NONE; in mesh_config_create() 100 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create() 101 if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) { in mesh_config_create() 103 conf->ieee80211w = wpa_s->conf->pmf; in mesh_config_create() [all …]
|
| H A D | ap.c | 49 struct hostapd_config *conf) in is_chanwidth160_supported() argument 52 if (conf->ieee80211ax) { in is_chanwidth160_supported() 72 struct hostapd_config *conf, in wpas_conf_ap_vht() argument 77 u8 channel = conf->channel; in wpas_conf_ap_vht() 81 if (!conf->secondary_channel) in wpas_conf_ap_vht() 86 hostapd_set_oper_chwidth(conf, ssid->max_oper_chwidth); in wpas_conf_ap_vht() 87 if (hostapd_get_oper_chwidth(conf)) in wpas_conf_ap_vht() 89 hostapd_get_oper_chwidth(conf), in wpas_conf_ap_vht() 90 &conf->op_class, in wpas_conf_ap_vht() 91 &conf->channel); in wpas_conf_ap_vht() [all …]
|
| /freebsd/contrib/mandoc/ |
| H A D | manpath.c | 40 manconf_parse(struct manconf *conf, const char *file, char *pend, char *pbeg) in manconf_parse() argument 45 manpath_parseline(&conf->manpath, pbeg, 'm'); in manconf_parse() 49 manpath_parseline(&conf->manpath, pend, 'M'); in manconf_parse() 53 /* No MANPATH; use man.conf(5) only. */ in manconf_parse() 56 /* Prepend man.conf(5) to MANPATH. */ in manconf_parse() 60 /* Insert man.conf(5) into MANPATH. */ in manconf_parse() 64 /* Append man.conf(5) to MANPATH. */ in manconf_parse() 67 /* MANPATH overrides man.conf(5) completely. */ in manconf_parse() 72 manpath_parseline(&conf->manpath, pbeg, '\0'); in manconf_parse() 76 manconf_file(conf, fil in manconf_parse() 137 manconf_free(struct manconf * conf) manconf_free() argument 152 manconf_file(struct manconf * conf,const char * file,int use_path_from_file) manconf_file() argument 212 manconf_output(struct manoutput * conf,const char * cp,int fromfile) manconf_output() argument [all...] |
| /freebsd/sys/netgraph/ |
| H A D | ng_patch.c | 53 struct ng_patch_config *conf; member 71 const struct ng_patch_config *conf; in ng_patch_config_getlen() local 73 conf = (const struct ng_patch_config *)(buf - in ng_patch_config_getlen() 76 return (conf->count); in ng_patch_config_getlen() 209 struct ng_patch_config *conf, *newconf; in ng_patch_rcvmsg() local 222 if (privp->conf == NULL) in ng_patch_rcvmsg() 226 NG_PATCH_CONF_SIZE(privp->conf->count), M_WAITOK); in ng_patch_rcvmsg() 231 bcopy(privp->conf, resp->data, in ng_patch_rcvmsg() 232 NG_PATCH_CONF_SIZE(privp->conf->count)); in ng_patch_rcvmsg() 234 conf = (struct ng_patch_config *) resp->data; in ng_patch_rcvmsg() [all …]
|
| /freebsd/usr.bin/iscsictl/ |
| H A D | iscsictl.c | 51 struct conf * 54 struct conf *conf; in conf_new() local 56 conf = calloc(1, sizeof(*conf)); in conf_new() 57 if (conf == NULL) in conf_new() 60 TAILQ_INIT(&conf->conf_targets); in conf_new() 62 return (conf); in conf_new() 66 target_find(struct conf *conf, const char *nickname) in target_find() argument 70 TAILQ_FOREACH(targ, &conf->conf_targets, t_next) { in target_find() 80 target_new(struct conf *conf) in target_new() argument 87 targ->t_conf = conf; in target_new() [all …]
|
| /freebsd/release/tools/ |
| H A D | ec2.conf | 31 echo 'net.inet6.ip6.dad_count=0' >> ${DESTDIR}/etc/sysctl.conf 32 metalog_add_data ./etc/sysctl.conf 43 echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf 44 echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf 45 echo 'loader_menu_frame="ascii"' >> ${DESTDIR}/boot/loader.conf 49 echo 'entropy_efi_seed_size="64"' >> ${DESTDIR}/boot/loader.conf 55 echo 'hint.atkbd.0.disabled=1' >> ${DESTDIR}/boot/loader.conf 56 echo 'hint.atkbdc.0.disabled=1' >> ${DESTDIR}/boot/loader.conf 59 echo 'hint.fd.0.disabled=1' >> ${DESTDIR}/boot/loader.conf 60 echo 'hint.fdc.0.disabled=1' >> ${DESTDIR}/boot/loader.conf [all …]
|
| /freebsd/tools/regression/geom/ConfCmp/ |
| H A D | Makefile | 22 ./${PROG} a1.conf a1.conf 23 ./${PROG} a1.conf a1a.conf 24 if ./${PROG} a1.conf a1b.conf > /dev/null 2>&1 ; then exit 1 ; fi 25 if ./${PROG} a1.conf a1c.conf > /dev/null 2>&1 ; then exit 1 ; fi 26 if ./${PROG} a1.conf a1d.conf > /dev/null 2>&1 ; then exit 1 ; fi 27 ./${PROG} a2.conf a2.conf 28 ./${PROG} a2.conf a2a.conf 29 if ./${PROG} a2.conf a2b.conf > /dev/null 2>&1 ; then exit 1 ; fi 30 if ./${PROG} a2.conf a2c.conf > /dev/null 2>&1 ; then exit 1 ; fi 31 if ./${PROG} a2.conf a2d.conf > /dev/null 2>&1 ; then exit 1 ; fi
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | Makefile.am | 86 man5_MANS= ntp.conf.5 ntp.keys.5 112 compsave.conf \ 113 compsave.conf+ \ 115 psl0save.conf \ 116 psl0save.conf+ \ 117 psl1save.conf \ 118 psl1save.conf+ \ 119 psl2save.conf \ 120 psl2save.conf+ \ 129 complete.conf.in \ [all …]
|
| /freebsd/sys/netinet/netdump/ |
| H A D | netdump_client.c | 442 netdump_configure(struct diocskerneldump_arg *conf, struct thread *td) in netdump_configure() argument 448 if (conf->kda_iface[0] != 0) { in netdump_configure() 452 ifp = ifunit_ref(conf->kda_iface); in netdump_configure() 470 sizeof(conf->kda_ ## elm), "elm " __XSTRING(elm) " mismatch"); \ in netdump_configure() 471 memcpy(&nd_conf.ndc_ ## elm, &conf->kda_ ## elm, \ in netdump_configure() 502 struct diocskerneldump_arg *conf; in netdump_ioctl() local 507 conf = NULL; in netdump_ioctl() 513 conf = (void *)addr; in netdump_ioctl() 520 conf = NULL; in netdump_ioctl() 525 strlcpy(conf->kda_iface, nd_ifp->if_xname, in netdump_ioctl() [all …]
|
| /freebsd/sys/contrib/alpine-hal/ |
| H A D | al_hal_udma_config.c | 301 struct al_udma_m2s_pkt_len_conf *conf) in al_udma_m2s_packet_size_cfg_set() argument 308 if (conf->encode_64k_as_zero == AL_TRUE) in al_udma_m2s_packet_size_cfg_set() 311 if (conf->max_pkt_size > max_supported_size) { in al_udma_m2s_packet_size_cfg_set() 314 conf->max_pkt_size, max_supported_size); in al_udma_m2s_packet_size_cfg_set() 319 if (conf->encode_64k_as_zero == AL_TRUE) in al_udma_m2s_packet_size_cfg_set() 325 reg |= conf->max_pkt_size; in al_udma_m2s_packet_size_cfg_set() 345 struct al_udma_m2s_desc_pref_conf *conf) in al_udma_m2s_pref_set() argument 351 reg |= conf->desc_fifo_depth; in al_udma_m2s_pref_set() 356 if (conf->sch_mode == SRR) in al_udma_m2s_pref_set() 358 else if (conf->sch_mode == STRICT) in al_udma_m2s_pref_set() [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | lib_util.c | 312 if (d->conf->button.left1_label != NULL) { in set_buttons() 313 d->bs.label[d->bs.nbuttons] = d->conf->button.left1_label; in set_buttons() 318 if (d->conf->button.left2_label != NULL) { in set_buttons() 319 d->bs.label[d->bs.nbuttons] = d->conf->button.left2_label; in set_buttons() 324 if (d->conf->button.left3_label != NULL) { in set_buttons() 325 d->bs.label[d->bs.nbuttons] = d->conf->button.left3_label; in set_buttons() 330 if (oklabel != NULL && d->conf->button.without_ok == false) { in set_buttons() 331 d->bs.label[d->bs.nbuttons] = d->conf->button.ok_label != NULL ? in set_buttons() 332 d->conf->button.ok_label : oklabel; in set_buttons() 337 if (d->conf->button.with_extra) { in set_buttons() [all …]
|
| /freebsd/share/man/man5/ |
| H A D | Makefile | 20 libmap.conf.5 \ 22 mailer.conf.5 \ 23 make.conf.5 \ 25 mount.conf.5 \ 27 nsswitch.conf.5 \ 34 rctl.conf.5 \ 40 src.conf.5 \ 44 sysctl.conf.5 \ 51 MLINKS+=resolver.5 resolv.conf.5 52 MLINKS+=src.conf.5 src-env.conf.5 [all …]
|
| /freebsd/usr.sbin/bsdinstall/partedit/ |
| H A D | diskmenu.c | 43 struct bsddialog_conf conf; in diskmenu_show() local 62 bsddialog_initconf(&conf); in diskmenu_show() 63 conf.title = title; in diskmenu_show() 64 conf.menu.align_left = true; in diskmenu_show() 65 conf.text.escape = true; in diskmenu_show() 66 conf.key.f1_message="[\\Z1\\ZbC\\Znreate]: a new partition.\n" in diskmenu_show() 72 conf.menu.shortcut_buttons = true; in diskmenu_show() 73 conf.button.ok_label = "Create"; in diskmenu_show() 74 conf.button.with_extra = true; in diskmenu_show() 75 conf.button.extra_label = "Delete"; in diskmenu_show() [all …]
|