Home
last modified time | relevance | path

Searched +full:cfg +full:- (Results 1 – 25 of 1632) sorted by relevance

12345678910>>...66

/freebsd/contrib/unbound/smallapp/
H A Dunbound-checkconf.c2 * smallapp/unbound-checkconf.c - config file checker for unbound.conf file.
79 #include "edns-subnet/subnet-whitelist.h"
86 printf("Usage: local-unbound-checkconf [file]\n"); in usage()
89 printf("-o option print value of option to stdout.\n"); in usage()
90 printf("-f output full pathname with chroot applied, eg. with -o pidfile.\n"); in usage()
91 printf("-q quiet (suppress output on success).\n"); in usage()
92 printf("-h show this usage help.\n"); in usage()
101 * @param cfg: config
107 print_option(struct config_file* cfg, const char* opt, int final) in print_option() argument
110 char *p = fname_after_chroot(cfg->pidfile, cfg, 1); in print_option()
[all …]
/freebsd/contrib/unbound/util/
H A Dconfig_file.c2 * util/config_file.c - reads and stores the config file for unbound.
69 #include "edns-subnet/edns-subnet.h"
75 /** from cfg username, after daemonize setup performed */
76 uid_t cfg_uid = (uid_t)-1;
77 /** from cfg username, after daemonize setup performed */
78 gid_t cfg_gid = (gid_t)-1;
98 struct config_file* cfg; in config_create() local
99 cfg = (struct config_file*)calloc(1, sizeof(struct config_file)); in config_create()
100 if(!cfg) in config_create()
103 cfg->verbosity = 1; in config_create()
[all …]
H A Dconfigparser.y2 * configparser.y -- yacc grammar for unbound configuration files
4 * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
225 OUTYY(("\nP(force-toplevel)\n"));
226 cfg_parser->started_toplevel = 0;
233 cfg_parser->started_toplevel = 1;
357 if(cfg_parser->cfg->stubs &&
358 !cfg_parser->cfg->stubs->name)
359 yyerror("stub-zone without name");
366 cfg_parser->started_toplevel = 1;
369 s->next = cfg_parser->cfg->stubs;
[all …]
/freebsd/sbin/etherswitchcfg/
H A Detherswitchcfg.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Stefan Bethke.
66 struct cfg { struct
81 int (*f)(struct cfg *, int argc, char *argv[]); argument
106 if (v & (1 << (i-1))) { in printb()
121 read_register(struct cfg *cfg, int r) in read_register() argument
126 if (ioctl(cfg->fd, IOETHERSWITCHGETREG, &er) != 0) in read_register()
132 write_register(struct cfg *cfg, int r, int v) in write_register() argument
138 if (ioctl(cfg->fd, IOETHERSWITCHSETREG, &er) != 0) in write_register()
[all …]
/freebsd/contrib/unbound/daemon/
H A Dunbound.c2 * daemon/unbound.c - main program for unbound DNS resolver daemon.
147 printf("-h this help.\n"); in usage()
148 printf("-c file config file to read instead of %s\n", CONFIGFILE); in usage()
150 printf("-d do not fork into the background.\n"); in usage()
151 printf("-p do not create a pidfile.\n"); in usage()
152 printf("-v verbose (more times to increase verbosity).\n"); in usage()
153 printf("-V show version number and build options.\n"); in usage()
155 printf("-w opt windows option: \n"); in usage()
156 printf(" install, remove - manage the services entry\n"); in usage()
157 printf(" service - used to start from services control panel\n"); in usage()
[all …]
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64stl_control.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2019 Yandex LLC
6 * Copyright (c) 2015-2019 Andrey V. Elsukov <ae@FreeBSD.org>
68 static void nat64stl_free_config(struct nat64stl_cfg *cfg);
75 struct nat64stl_cfg *cfg; in nat64stl_alloc_config() local
77 cfg = malloc(sizeof(struct nat64stl_cfg), M_IPFW, M_WAITOK | M_ZERO); in nat64stl_alloc_config()
78 COUNTER_ARRAY_ALLOC(cfg->base.stats.cnt, NAT64STATS, M_WAITOK); in nat64stl_alloc_config()
79 cfg->no.name = cfg->name; in nat64stl_alloc_config()
80 cfg->no.etlv = IPFW_TLV_NAT64STL_NAME; in nat64stl_alloc_config()
[all …]
H A Dnat64clat_control.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
66 static void nat64clat_free_config(struct nat64clat_cfg *cfg);
73 struct nat64clat_cfg *cfg; in nat64clat_alloc_config() local
75 cfg = malloc(sizeof(struct nat64clat_cfg), M_IPFW, M_WAITOK | M_ZERO); in nat64clat_alloc_config()
76 COUNTER_ARRAY_ALLOC(cfg->base.stats.cnt, NAT64STATS, M_WAITOK); in nat64clat_alloc_config()
77 cfg->no.name = cfg->name; in nat64clat_alloc_config()
78 cfg->no.etlv = IPFW_TLV_NAT64CLAT_NAME; in nat64clat_alloc_config()
79 cfg->no.set = set; in nat64clat_alloc_config()
80 strlcpy(cfg->name, name, sizeof(cfg->name)); in nat64clat_alloc_config()
[all …]
H A Dnat64lsn_control.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2019 Yandex LLC
6 * Copyright (c) 2015-2019 Andrey V. Elsukov <ae@FreeBSD.org>
76 if (uc->jmaxlen == 0) in nat64lsn_default_config()
77 uc->jmaxlen = NAT64LSN_JMAXLEN; in nat64lsn_default_config()
78 if (uc->jmaxlen > 65536) in nat64lsn_default_config()
79 uc->jmaxlen = 65536; in nat64lsn_default_config()
80 if (uc->nh_delete_delay == 0) in nat64lsn_default_config()
81 uc->nh_delete_delay = NAT64LSN_HOST_AGE; in nat64lsn_default_config()
[all …]
H A Dnat64lsn.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2020 Yandex LLC
6 * Copyright (c) 2016-2020 Andrey V. Elsukov <ae@FreeBSD.org>
87 (struct nat64lsn_instance *)SRV_OBJECT((chain), insntod(cmd, kidx)->kidx)
130 static int nat64lsn_alloc_host(struct nat64lsn_cfg *cfg,
132 static int nat64lsn_alloc_pg(struct nat64lsn_cfg *cfg,
135 struct nat64lsn_cfg *cfg, int jtype);
136 static void nat64lsn_enqueue_job(struct nat64lsn_cfg *cfg,
142 static int nat64lsn_translate4(struct nat64lsn_cfg *cfg,
[all …]
/freebsd/sys/cam/scsi/
H A Dscsi_enc_safte.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
51 * SAF-TE Type Device Emulation
59 * SAF-TE specific defines- Mandatory ones only...
63 * READ BUFFER ('get' commands) IDs- placed in offset 2 of cdb
71 * WRITE BUFFER ('set' commands) IDs- placed in offset 0 of databuf
159 SES_SETSTATUS_ENC_IDX = -1
169 req->result = result; in safte_terminate_control_requests()
195 #define SAFT_ALARM_OFFSET(cc) (cc)->slotoff - 1
228 &emulate_array_devices, 0, "Emulate Array Devices for SAF-TE");
[all …]
/freebsd/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c1 /*-
70 static void nptv6_free_config(struct nptv6_cfg *cfg);
73 static int nptv6_rewrite_internal(struct nptv6_cfg *cfg, struct mbuf **mp,
75 static int nptv6_rewrite_external(struct nptv6_cfg *cfg, struct mbuf **mp,
79 (struct nptv6_cfg *)SRV_OBJECT((chain), insntod(cmd, kidx)->kidx)
83 (a)->s6_addr32[0] &= (m)->s6_addr32[0]; \
84 (a)->s6_addr32[1] &= (m)->s6_addr32[1]; \
85 (a)->s6_addr32[2] &= (m)->s6_addr32[2]; \
86 (a)->s6_addr32[3] &= (m)->s6_addr32[3]; \
91 (((d)->s6_addr32[0] ^ (a)->s6_addr32[0]) & (m)->s6_addr32[0]) == 0 && \
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/
H A Dzpool_import_test.sh36 . $(atf_get_srcdir)/../../../include/default.cfg
37 . $(atf_get_srcdir)/zpool_import.cfg
45 . $(atf_get_srcdir)/../../../include/default.cfg
46 . $(atf_get_srcdir)/zpool_import.cfg
55 atf_set "descr" "Destroyed pools are not listed unless with -D option is specified."
61 . $(atf_get_srcdir)/../../../include/default.cfg
62 . $(atf_get_srcdir)/zpool_import.cfg
70 . $(atf_get_srcdir)/../../../include/default.cfg
71 . $(atf_get_srcdir)/zpool_import.cfg
86 . $(atf_get_srcdir)/../../../include/default.cfg
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/
H A Dmisc_test.sh37 . $(atf_get_srcdir)/../../../include/default.cfg
38 . $(atf_get_srcdir)/misc.cfg
46 . $(atf_get_srcdir)/../../../include/default.cfg
47 . $(atf_get_srcdir)/misc.cfg
63 . $(atf_get_srcdir)/../../../include/default.cfg
64 . $(atf_get_srcdir)/misc.cfg
72 . $(atf_get_srcdir)/../../../include/default.cfg
73 . $(atf_get_srcdir)/misc.cfg
89 . $(atf_get_srcdir)/../../../include/default.cfg
90 . $(atf_get_srcdir)/misc.cfg
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_test.sh36 . $(atf_get_srcdir)/../../../include/default.cfg
38 . $(atf_get_srcdir)/zpool_create.cfg
46 . $(atf_get_srcdir)/../../../include/default.cfg
48 . $(atf_get_srcdir)/zpool_create.cfg
57 …atf_set "descr" "'zpool create -f <pool> <vspec> ...' can successfully createa new pool in some ca…
63 . $(atf_get_srcdir)/../../../include/default.cfg
65 . $(atf_get_srcdir)/zpool_create.cfg
73 . $(atf_get_srcdir)/../../../include/default.cfg
75 . $(atf_get_srcdir)/zpool_create.cfg
84 …atf_set "descr" "'zpool create -n <pool> <vspec> ...' can display the configureationwithout actual…
[all …]
/freebsd/sbin/ipfw/
H A Dnat64lsn.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2019 Yandex LLC
5 * Copyright (c) 2015-2016 Alexander V. Chernikov <melifaro@FreeBSD.org>
6 * Copyright (c) 2015-2019 Andrey V. Elsukov <ae@FreeBSD.org>
53 typedef int (nat64lsn_cb_t)(ipfw_nat64lsn_cfg *cfg, const char *name,
63 static int nat64lsn_show_cb(ipfw_nat64lsn_cfg *cfg, const char *name,
65 static int nat64lsn_destroy_cb(ipfw_nat64lsn_cfg *cfg, const char *name,
67 static int nat64lsn_states_cb(ipfw_nat64lsn_cfg *cfg, const char *name,
97 sz = od->head.length - sizeof(*od); in nat64lsn_print_states()
[all …]
/freebsd/tools/tools/nanobsd/Files/root/
H A Dsave_cfg30 set -e
32 trap "umount /cfg" 1 2 15 EXIT
33 mount /cfg
36 for filename in "$@" `find * -type f`
38 if [ ! -f /cfg/$filename -a ! -f /cfg/.ignore/$filename ]
42 # If file doesn't exist in /cfg and file is not in the 'ignore' list
46 if ! cmp -s /etc/$filename /conf/base/etc/$filename
51 if [ ! -d /etc/$file_path ]
61 # Ask user - how should we handle this file.
62 # Add to cfg (y/n/i)?
[all …]
/freebsd/tests/sys/cddl/zfs/tests/acl/trivial/
H A Dtrivial_test.sh34 . $(atf_get_srcdir)/../../../include/default.cfg
35 . $(atf_get_srcdir)/../acl.cfg
43 . $(atf_get_srcdir)/../../../include/default.cfg
44 . $(atf_get_srcdir)/../acl.cfg
58 . $(atf_get_srcdir)/../../../include/default.cfg
59 . $(atf_get_srcdir)/../acl.cfg
67 . $(atf_get_srcdir)/../../../include/default.cfg
68 . $(atf_get_srcdir)/../acl.cfg
77 atf_set "descr" "Verifies that cp will include file attribute when using the -@ flag"
82 . $(atf_get_srcdir)/../../../include/default.cfg
[all …]
/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot_test.sh35 . $(atf_get_srcdir)/../../include/default.cfg
36 . $(atf_get_srcdir)/snapshot.cfg
45 . $(atf_get_srcdir)/../../include/default.cfg
46 . $(atf_get_srcdir)/snapshot.cfg
60 . $(atf_get_srcdir)/../../include/default.cfg
61 . $(atf_get_srcdir)/snapshot.cfg
69 . $(atf_get_srcdir)/../../include/default.cfg
70 . $(atf_get_srcdir)/snapshot.cfg
84 . $(atf_get_srcdir)/../../include/default.cfg
85 . $(atf_get_srcdir)/snapshot.cfg
[all …]
/freebsd/sys/dev/pci/
H A Dpci.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
87 #define PCIR_IS_BIOS(cfg, reg) \ argument
88 (((cfg)->hdrtype == PCIM_HDRTYPE_NORMAL && reg == PCIR_BIOS) || \
89 ((cfg)->hdrtype == PCIM_HDRTYPE_BRIDGE && reg == PCIR_BIOS_1))
107 static void pci_fixancient(pcicfgregs *cfg);
108 static int pci_printf(pcicfgregs *cfg, const char *fmt, ...);
122 pcicfgregs *cfg);
123 static void pci_read_cap(device_t pcib, pcicfgregs *cfg);
124 static int pci_read_vpd_reg(device_t pcib, pcicfgregs *cfg,
[all …]
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_test.sh30 atf_set "descr" "zfs send -R send replication stream up to the named snap."
36 . $(atf_get_srcdir)/../../include/default.cfg
38 . $(atf_get_srcdir)/rsend.cfg
46 . $(atf_get_srcdir)/../../include/default.cfg
48 . $(atf_get_srcdir)/rsend.cfg
57 atf_set "descr" "zfs send -I sends all incrementals from fs@init to fs@final."
63 . $(atf_get_srcdir)/../../include/default.cfg
65 . $(atf_get_srcdir)/rsend.cfg
73 . $(atf_get_srcdir)/../../include/default.cfg
75 . $(atf_get_srcdir)/rsend.cfg
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/
H A Dfman_ncsw.c2 * Copyright 2008-2012 Freescale Semiconductor Inc.
42 event = ioread32be(&bmi_rg->fmbm_ievr); in fman_get_bmi_err_event()
43 mask = ioread32be(&bmi_rg->fmbm_ier); in fman_get_bmi_err_event()
46 force = ioread32be(&bmi_rg->fmbm_ifr); in fman_get_bmi_err_event()
48 iowrite32be(force & ~event, &bmi_rg->fmbm_ifr); in fman_get_bmi_err_event()
50 iowrite32be(event, &bmi_rg->fmbm_ievr); in fman_get_bmi_err_event()
58 event = ioread32be(&qmi_rg->fmqm_eie); in fman_get_qmi_err_event()
59 mask = ioread32be(&qmi_rg->fmqm_eien); in fman_get_qmi_err_event()
63 force = ioread32be(&qmi_rg->fmqm_eif); in fman_get_qmi_err_event()
65 iowrite32be(force & ~event, &qmi_rg->fmqm_eif); in fman_get_qmi_err_event()
[all …]
/freebsd/sys/dev/ice/
H A Dice_fwlog.c1 /* SPDX-License-Identifier: BSD-3-Clause */
37 * cache_cfg - Cache FW logging config
39 * @cfg: config to cache
41 static void cache_cfg(struct ice_hw *hw, struct ice_fwlog_cfg *cfg) in cache_cfg()
43 hw->fwlog_cfg = *cfg; in cache_cfg()
47 * valid_module_entries - validat
40 cache_cfg(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) cache_cfg() argument
92 valid_cfg(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) valid_cfg() argument
124 ice_fwlog_init(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) ice_fwlog_init() argument
212 ice_fwlog_set(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) ice_fwlog_set() argument
276 struct ice_fwlog_cfg *cfg; ice_fwlog_update_modules() local
369 ice_aq_fwlog_get(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) ice_aq_fwlog_get() argument
440 struct ice_fwlog_cfg *cfg; ice_fwlog_set_support_ena() local
469 ice_fwlog_get(struct ice_hw * hw,struct ice_fwlog_cfg * cfg) ice_fwlog_get() argument
[all...]
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dnontrivial_test.sh35 . $(atf_get_srcdir)/../../../include/default.cfg
36 . $(atf_get_srcdir)/../acl.cfg
44 . $(atf_get_srcdir)/../../../include/default.cfg
45 . $(atf_get_srcdir)/../acl.cfg
60 . $(atf_get_srcdir)/../../../include/default.cfg
61 . $(atf_get_srcdir)/../acl.cfg
69 . $(atf_get_srcdir)/../../../include/default.cfg
70 . $(atf_get_srcdir)/../acl.cfg
85 . $(atf_get_srcdir)/../../../include/default.cfg
86 . $(atf_get_srcdir)/../acl.cfg
[all …]
/freebsd/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare_test.sh35 . $(atf_get_srcdir)/../../include/default.cfg
37 . $(atf_get_srcdir)/hotspare.cfg
44 . $(atf_get_srcdir)/../../include/default.cfg
46 . $(atf_get_srcdir)/hotspare.cfg
55 …cr" "'zpool add <pool> spare <vdev> ...' can add devices to the pool while it has spare-in device."
61 . $(atf_get_srcdir)/../../include/default.cfg
63 . $(atf_get_srcdir)/hotspare.cfg
70 . $(atf_get_srcdir)/../../include/default.cfg
72 . $(atf_get_srcdir)/hotspare.cfg
81 atf_set "descr" "'zpool add [-f]' with hot spares should fail with inapplicable scenarios."
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_create/
H A Dzfs_create_test.sh35 . $(atf_get_srcdir)/../../../include/default.cfg
38 . $(atf_get_srcdir)/zfs_create.cfg
46 . $(atf_get_srcdir)/../../../include/default.cfg
49 . $(atf_get_srcdir)/zfs_create.cfg
58 atf_set "descr" "'zfs create -s -V <size> <volume>' succeeds"
63 . $(atf_get_srcdir)/../../../include/default.cfg
66 . $(atf_get_srcdir)/zfs_create.cfg
74 . $(atf_get_srcdir)/../../../include/default.cfg
77 . $(atf_get_srcdir)/zfs_create.cfg
91 . $(atf_get_srcdir)/../../../include/default.cfg
[all …]

12345678910>>...66