bin/ksh/c_ksh.c
1271
const char *options;
bin/ksh/c_ksh.c
1282
options = *wp++;
bin/ksh/c_ksh.c
1283
if (!options) {
bin/ksh/c_ksh.c
1319
optc = ksh_getopt(wp, &user_opt, options);
bin/ksh/c_ksh.c
259
const char *options = "Rnprsu,";
bin/ksh/c_ksh.c
260
while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1)
bin/ksh/c_ksh.c
265
options = "ne";
bin/ksh/c_ksh.c
415
const char *options;
bin/ksh/c_ksh.c
420
options = "pvV";
bin/ksh/c_ksh.c
427
options = "pv";
bin/ksh/c_ksh.c
434
while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1)
bin/ksh/c_ksh.c
563
const char *options = "L#R#UZ#fi#lprtux"; /* see comment below */
bin/ksh/c_ksh.c
570
options = "p";
bin/ksh/c_ksh.c
574
options = "p";
bin/ksh/c_ksh.c
594
while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1) {
bin/ksh/c_ulimit.c
59
const char *options = "HSat#f#c#d#s#l#m#n#p#";
bin/ksh/c_ulimit.c
65
while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1)
bin/ksh/c_ulimit.c
89
while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1)
bin/ksh/misc.c
875
ksh_getopt(char **argv, Getopt *go, const char *options)
bin/ksh/misc.c
903
!(o = strchr(options, c))) {
bin/ksh/misc.c
904
if (options[0] == ':') {
bin/ksh/misc.c
929
if (options[0] == ':') {
bin/ls/ls.c
348
traverse(int argc, char *argv[], int options)
bin/ls/ls.c
355
fts_open(argv, options, f_nosort ? NULL : mastercmp)) == NULL)
bin/ls/ls.c
372
ch_options = !f_recursive && options & FTS_NOSTAT ? FTS_NAMEONLY : 0;
bin/pax/ar_subs.c
229
if ((get_arc() < 0) || ((*frmt->options)() < 0) ||
bin/pax/ar_subs.c
648
if (((*frmt->options)() < 0) || ((*frmt->st_rd)() < 0))
bin/pax/ar_subs.c
768
if ((*frmt->options)() < 0)
bin/pax/ar_subs.c
85
if ((get_arc() < 0) || ((*frmt->options)() < 0) ||
bin/pax/extern.h
171
void options(int, char **);
bin/pax/pax.c
266
options(argc, argv);
bin/pax/pax.h
214
int (*options)(void); /* process format specific options (-o) */
games/worms/worms.c
173
const struct options *op;
include/resolv.h
131
unsigned int options; /* option flags - see below. */
lib/libc/asr/gethostnamadr.c
139
if (_res.options & RES_USE_INET6 &&
lib/libc/asr/res_init.c
52
if (!(_res.options & RES_INIT)) {
lib/libc/asr/res_init.c
57
if (_res.options == 0)
lib/libc/asr/res_init.c
58
_res.options = ac->ac_options;
lib/libc/asr/res_init.c
78
_res.options |= RES_INIT;
lib/libc/asr/res_init.c
94
ac->ac_options = _res.options;
lib/libc/gen/fts.c
71
fts_open(char * const *argv, int options,
lib/libc/gen/fts.c
80
if (options & ~FTS_OPTIONMASK) {
lib/libc/gen/fts.c
95
sp->fts_options = options;
lib/libc/gen/wait3.c
34
wait3(int *istat, int options, struct rusage *rup)
lib/libc/gen/wait3.c
36
return (wait4(WAIT_ANY, istat, options, rup));
lib/libc/gen/waitpid.c
35
waitpid(pid_t pid, int *istat, int options)
lib/libc/gen/waitpid.c
37
return (wait4(pid, istat, options, NULL));
lib/libc/stdlib/getopt_long.c
164
parse_long_options(char * const *nargv, const char *options,
lib/libc/stdlib/getopt_long.c
289
getopt_internal(int nargc, char * const *nargv, const char *options,
lib/libc/stdlib/getopt_long.c
296
if (options == NULL)
lib/libc/stdlib/getopt_long.c
312
if (*options == '-')
lib/libc/stdlib/getopt_long.c
314
else if (posixly_correct || *options == '+')
lib/libc/stdlib/getopt_long.c
316
if (*options == '+' || *options == '-')
lib/libc/stdlib/getopt_long.c
317
options++;
lib/libc/stdlib/getopt_long.c
344
(place[1] == '\0' && strchr(options, '-') == NULL)) {
lib/libc/stdlib/getopt_long.c
409
else if (*place != ':' && strchr(options, *place) != NULL)
lib/libc/stdlib/getopt_long.c
412
optchar = parse_long_options(nargv, options, long_options,
lib/libc/stdlib/getopt_long.c
421
(oli = strchr(options, optchar)) == NULL) {
lib/libc/stdlib/getopt_long.c
441
optchar = parse_long_options(nargv, options, long_options,
lib/libc/stdlib/getopt_long.c
475
getopt(int nargc, char * const *nargv, const char *options)
lib/libc/stdlib/getopt_long.c
486
return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
lib/libc/stdlib/getopt_long.c
494
getopt_long(int nargc, char * const *nargv, const char *options,
lib/libc/stdlib/getopt_long.c
498
return (getopt_internal(nargc, nargv, options, long_options, idx,
lib/libc/stdlib/getopt_long.c
507
getopt_long_only(int nargc, char * const *nargv, const char *options,
lib/libc/stdlib/getopt_long.c
511
return (getopt_internal(nargc, nargv, options, long_options, idx,
lib/libc/stdlib/getopt_long.c
71
#define PRINT_ERROR ((opterr) && (*options != ':'))
lib/libc/stdlib/getopt_long.c
79
#define BADARG ((*options == ':') ? (int)':' : (int)'?')
lib/libc/sys/w_wait4.c
22
wait4(pid_t wpid, int *status, int options, struct rusage *rusage)
lib/libc/sys/w_wait4.c
27
ret = HIDDEN(wait4)(wpid, status, options, rusage);
lib/libc/sys/w_waitid.c
22
waitid(idtype_t idtype, id_t id, siginfo_t *info, int options)
lib/libc/sys/w_waitid.c
27
ret = HIDDEN(waitid)(idtype, id, info, options);
lib/libexpat/tests/alloc_tests.c
2051
ExtOption options[]
lib/libexpat/tests/alloc_tests.c
2058
XML_SetUserData(g_parser, options);
lib/libexpat/tests/basic_tests.c
6267
ExtOption options[] = {
lib/libexpat/tests/basic_tests.c
6276
XML_SetUserData(g_parser, options);
lib/libexpat/tests/handlers.c
426
ExtOption *options = (ExtOption *)XML_GetUserData(parser);
lib/libexpat/tests/handlers.c
431
while (options->parse_text != NULL) {
lib/libexpat/tests/handlers.c
432
if (! xcstrcmp(systemId, options->system_id)) {
lib/libexpat/tests/handlers.c
437
rc = _XML_Parse_SINGLE_BYTES(ext_parser, options->parse_text,
lib/libexpat/tests/handlers.c
438
(int)strlen(options->parse_text), XML_TRUE);
lib/libexpat/tests/handlers.c
442
options++;
lib/libexpat/tests/misc_tests.c
780
struct ExtOption options[] = {
lib/libexpat/tests/misc_tests.c
787
XML_SetUserData(parser, options);
lib/libexpat/tests/nsalloc_tests.c
1222
ExtOption options[] = {
lib/libexpat/tests/nsalloc_tests.c
1229
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
1328
ExtOption options[] = {{XCS("foo/First"), "Hello world"}, {NULL, NULL}};
lib/libexpat/tests/nsalloc_tests.c
1334
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
1379
ExtOption options[] = {{XCS("foo"), "<e/>"}, {NULL, NULL}};
lib/libexpat/tests/nsalloc_tests.c
1385
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
1427
ExtOption options[] = {
lib/libexpat/tests/nsalloc_tests.c
1454
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
1483
ExtOption options[] = {
lib/libexpat/tests/nsalloc_tests.c
1490
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
909
ExtOption options[] = {
lib/libexpat/tests/nsalloc_tests.c
916
XML_SetUserData(g_parser, options);
lib/libexpat/tests/nsalloc_tests.c
939
ExtOption options[] = {
lib/libexpat/tests/nsalloc_tests.c
946
XML_SetUserData(g_parser, options);
lib/libfido2/src/fido/types.h
227
fido_opt_array_t options; /* list of supported options */
lib/libfido2/src/info.c
258
return (decode_options(val, &ci->options));
lib/libfido2/src/info.c
359
fido_opt_array_free(&ci->options);
lib/libfido2/src/info.c
427
return (ci->options.name);
lib/libfido2/src/info.c
433
return (ci->options.value);
lib/libfido2/src/info.c
439
return (ci->options.len);
lib/libssl/d1_pkt.c
595
if ((s->options & SSL_OP_NO_RENEGOTIATION) != 0) {
lib/libssl/d1_pkt.c
653
if ((s->options & SSL_OP_NO_CLIENT_RENEGOTIATION) != 0 ||
lib/libssl/d1_pkt.c
654
((s->options & SSL_OP_NO_RENEGOTIATION) != 0 &&
lib/libssl/d1_pkt.c
655
(s->options & SSL_OP_ALLOW_CLIENT_RENEGOTIATION) == 0)) {
lib/libssl/s3_lib.c
2314
if (s->options & SSL_OP_CIPHER_SERVER_PREFERENCE) {
lib/libssl/ssl_clnt.c
1070
!(s->options & SSL_OP_LEGACY_SERVER_CONNECT)) {
lib/libssl/ssl_lib.c
1311
if ((s->options & SSL_OP_NO_RENEGOTIATION) != 0) {
lib/libssl/ssl_lib.c
1328
if ((s->options & SSL_OP_NO_RENEGOTIATION) != 0) {
lib/libssl/ssl_lib.c
1371
return (s->options|=larg);
lib/libssl/ssl_lib.c
1373
return (s->options&=~larg);
lib/libssl/ssl_lib.c
1492
return (ctx->options|=larg);
lib/libssl/ssl_lib.c
1494
return (ctx->options&=~larg);
lib/libssl/ssl_lib.c
2187
ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
lib/libssl/ssl_lib.c
2519
if ((s->options & SSL_OP_NO_TICKET) != 0)
lib/libssl/ssl_lib.c
262
s->options = ctx->options;
lib/libssl/ssl_lib.c
2946
ret->options = s->options;
lib/libssl/ssl_local.h
706
unsigned long options;
lib/libssl/ssl_local.h
936
unsigned long options; /* protocol behaviour */
lib/libssl/ssl_pkt.c
860
if ((s->options & SSL_OP_NO_RENEGOTIATION) != 0) {
lib/libssl/ssl_pkt.c
913
if ((s->options & SSL_OP_NO_CLIENT_RENEGOTIATION) != 0 ||
lib/libssl/ssl_pkt.c
914
((s->options & SSL_OP_NO_RENEGOTIATION) != 0 &&
lib/libssl/ssl_pkt.c
915
(s->options & SSL_OP_ALLOW_CLIENT_RENEGOTIATION) == 0)) {
lib/libssl/ssl_srvr.c
906
if ((s->new_session && (s->options &
lib/libssl/ssl_versions.c
131
unsigned long options;
lib/libssl/ssl_versions.c
143
options = s->options;
lib/libssl/ssl_versions.c
146
options = 0;
lib/libssl/ssl_versions.c
147
if (s->options & SSL_OP_NO_DTLSv1)
lib/libssl/ssl_versions.c
148
options |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
lib/libssl/ssl_versions.c
149
if (s->options & SSL_OP_NO_DTLSv1_2)
lib/libssl/ssl_versions.c
150
options |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_2;
lib/libssl/ssl_versions.c
153
if ((options & SSL_OP_NO_TLSv1_2) == 0)
lib/libssl/ssl_versions.c
155
else if ((options & SSL_OP_NO_TLSv1_3) == 0)
lib/libssl/ssl_versions.c
158
if ((options & SSL_OP_NO_TLSv1_3) && min_version < TLS1_3_VERSION)
lib/libssl/ssl_versions.c
160
if ((options & SSL_OP_NO_TLSv1_2) && min_version < TLS1_2_VERSION)
lib/libssl/t1_lib.c
495
server_pref = (ssl->options & SSL_OP_CIPHER_SERVER_PREFERENCE);
libexec/login_token/token.h
62
int options; /* various available options */
regress/lib/libc/arc4random-fork/arc4random-fork.c
77
safewaitpid(pid_t pid, int *status, int options)
regress/lib/libc/arc4random-fork/arc4random-fork.c
81
ret = waitpid(pid, status, options);
regress/lib/libc/asr/bin/common.c
261
_res.options &= ~flag;
regress/lib/libc/asr/bin/common.c
263
_res.options |= flag;
regress/lib/libc/malloc/malloc_errs/malloc_errs.c
289
char options[40];
regress/lib/libc/malloc/malloc_errs/malloc_errs.c
305
snprintf(options, sizeof(options), "MALLOC_OPTIONS=us%s", tests[i].flags);
regress/lib/libc/malloc/malloc_errs/malloc_errs.c
307
env[0] = options;
regress/lib/libc/regex/main.c
162
try(f[0], f[1], f[2], f[3], f[4], options('c', f[1]));
regress/lib/libc/regex/main.c
165
options('c', f[1]) &~ REG_EXTENDED);
regress/lib/libc/regex/main.c
255
if (options('e', f1)®_STARTEND) {
regress/lib/libc/regex/main.c
264
err = regexec(&re, f2copy, NSUBS, subs, options('e', f1));
regress/lib/libc/regex/main.c
50
copts = options('c', optarg);
regress/lib/libc/regex/main.c
56
eopts = options('e', optarg);
regress/lib/libssl/dtls/dtlstest.c
449
dtls_server(int sock, long options, long mtu)
regress/lib/libssl/dtls/dtlstest.c
466
SSL_CTX_set_options(ssl_ctx, options);
regress/lib/libssl/unit/ssl_versions.c
103
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
regress/lib/libssl/unit/ssl_versions.c
111
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
regress/lib/libssl/unit/ssl_versions.c
119
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
126
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
133
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
140
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
147
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
154
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
161
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
168
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
175
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
214
SSL_set_options(ssl, vrt->options);
regress/lib/libssl/unit/ssl_versions.c
23
const long options;
regress/lib/libssl/unit/ssl_versions.c
249
const long options;
regress/lib/libssl/unit/ssl_versions.c
259
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
267
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
275
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
283
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
291
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
299
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
307
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
315
.options = SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
32
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
323
.options = SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
331
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
339
.options = SSL_OP_NO_TLSv1,
regress/lib/libssl/unit/ssl_versions.c
347
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1,
regress/lib/libssl/unit/ssl_versions.c
355
.options = SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
363
.options = SSL_OP_NO_TLSv1,
regress/lib/libssl/unit/ssl_versions.c
371
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
379
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
387
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
39
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
395
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
403
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
411
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
419
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
427
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
435
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
443
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
451
.options = 0,
regress/lib/libssl/unit/ssl_versions.c
459
.options = SSL_OP_NO_DTLSv1,
regress/lib/libssl/unit/ssl_versions.c
46
.options = SSL_OP_NO_TLSv1,
regress/lib/libssl/unit/ssl_versions.c
467
.options = SSL_OP_NO_DTLSv1,
regress/lib/libssl/unit/ssl_versions.c
475
.options = SSL_OP_NO_DTLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
516
SSL_set_options(ssl, svt->options);
regress/lib/libssl/unit/ssl_versions.c
53
.options = SSL_OP_NO_TLSv1_3,
regress/lib/libssl/unit/ssl_versions.c
60
.options = SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
67
.options = SSL_OP_NO_TLSv1_1,
regress/lib/libssl/unit/ssl_versions.c
74
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1,
regress/lib/libssl/unit/ssl_versions.c
81
.options = SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
88
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_2,
regress/lib/libssl/unit/ssl_versions.c
95
.options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 |
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
198
check_options(struct sk_option **options)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
202
if (options == NULL)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
204
for (i = 0; options[i] != NULL; i++) {
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
206
options[i]->name);
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
207
if (options[i]->required) {
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
218
struct sk_option **options, struct sk_enroll_response **enroll_response)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
230
if (check_options(options) != 0)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
462
uint8_t flags, const char *pin, struct sk_option **options,
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
475
if (check_options(options) != 0)
regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c
517
sk_load_resident_keys(const char *pin, struct sk_option **options,
sbin/dhcp6leased/frontend.c
757
const uint16_t options[] = {DHO_SOL_MAX_RT,
sbin/dhcp6leased/frontend.c
852
opt_hdr.len = htons(sizeof(request_option_code) * nitems(options));
sbin/dhcp6leased/frontend.c
855
for (i = 0; i < nitems(options); i++) {
sbin/dhcp6leased/frontend.c
856
request_option_code = htons(options[i]);
sbin/fsck/fsck.c
144
options = catopt(options, globopt, 1);
sbin/fsck/fsck.c
150
options = catopt(options, p, 1);
sbin/fsck/fsck.c
276
if (options) {
sbin/fsck/fsck.c
278
optbuf = catopt(options, extra, 0);
sbin/fsck/fsck.c
280
optbuf = estrdup(options);
sbin/fsck/fsck.c
383
return e->options;
sbin/fsck/fsck.c
401
e->options = catopt(e->options, newoptions, 1);
sbin/fsck/fsck.c
415
e->options = estrdup(opts);
sbin/fsck/fsck.c
66
char *options;
sbin/fsck/fsck.c
71
static char *options;
sbin/ifconfig/ifconfig.c
2972
uint64_t type, subtype, options, inst, mode;
sbin/ifconfig/ifconfig.c
2982
options = IFM_OPTIONS(media_current);
sbin/ifconfig/ifconfig.c
2987
media_current = IFM_MAKEWORD(type, subtype, options, inst) | mode;
sbin/ifconfig/ifconfig.c
2994
uint64_t type, subtype, options, inst;
sbin/ifconfig/ifconfig.c
3004
options = IFM_OPTIONS(media_current);
sbin/ifconfig/ifconfig.c
3007
media_current = IFM_MAKEWORD(type, subtype, options, inst) |
sbin/ifconfig/ifconfig.c
3058
uint64_t type, subtype, options, inst;
sbin/ifconfig/ifconfig.c
3073
options = IFM_OPTIONS(media_current);
sbin/ifconfig/ifconfig.c
3079
media_current = IFM_MAKEWORD(type, subtype, options, inst);
sbin/mount/mount.c
110
char *options, mntpath[PATH_MAX];
sbin/mount/mount.c
113
options = NULL;
sbin/mount/mount.c
127
if (!hasopt(options, "force"))
sbin/mount/mount.c
128
options = catopt(options, "force");
sbin/mount/mount.c
135
options = catopt(options, optarg);
sbin/mount/mount.c
138
if (!hasopt(options, "ro"))
sbin/mount/mount.c
139
options = catopt(options, "ro");
sbin/mount/mount.c
151
if (!hasopt(options, "update"))
sbin/mount/mount.c
152
options = catopt(options, "update");
sbin/mount/mount.c
158
if (!hasopt(options, "rw"))
sbin/mount/mount.c
159
options = catopt(options, "rw");
sbin/mount/mount.c
215
fs->fs_file, options,
sbin/mount/mount.c
238
if (hasopt(options, "update")) {
sbin/mount/mount.c
275
mntonname, options, fs->fs_mntops, skip);
sbin/mount/mount.c
278
rval = mountfs(vfstype, argv[0], argv[1], options, NULL, skip);
sbin/mount/mount.c
337
const char *options, const char *mntopts, int skipmounted)
sbin/mount/mount.c
363
if (options == NULL) {
sbin/mount/mount.c
365
options = "rw";
sbin/mount/mount.c
367
options = mntopts;
sbin/mount/mount.c
375
optbuf = catopt(cp, options);
sbin/mount/mount.c
708
mangle(char *options, int *argcp, const char **argv, int argcmax)
sbin/mount/mount.c
715
for (s = options; argc <= argcmax && (p = strsep(&s, ",")) != NULL;)
sbin/mount_nfs/mount_nfs.c
167
char name[PATH_MAX], *options = NULL, *spec;
sbin/mount_nfs/mount_nfs.c
234
options = optarg;
sbin/mount_nfs/mount_nfs.c
235
while (options != NULL) {
sbin/mount_nfs/mount_nfs.c
236
switch (getmntopt(&options, &value, mopts,
sbin/pfctl/parse.y
2422
filter_opts.keep.options = $1.options;
sbin/pfctl/parse.y
272
struct node_state_opt *options;
sbin/pfctl/parse.y
3791
$$.options = NULL;
sbin/pfctl/parse.y
3795
$$.options = $3;
sbin/pfctl/parse.y
3799
$$.options = $3;
sbin/pfctl/parse.y
3803
$$.options = $3;
sbin/pfctl/parse.y
488
struct node_state_opt *options;
sbin/ping/ping.c
1011
if (!(options & F_QUIET)) {
sbin/ping/ping.c
1057
if (!(options & F_HOSTNAME))
sbin/ping/ping.c
1169
if (options & F_HDRINCL) {
sbin/ping/ping.c
1188
if (!(options & F_QUIET) && (options & F_FLOOD))
sbin/ping/ping.c
1226
if (options & F_VERBOSE)
sbin/ping/ping.c
1234
if (options & F_VERBOSE)
sbin/ping/ping.c
1257
if (options & F_VERBOSE)
sbin/ping/ping.c
1269
if (options & F_VERBOSE)
sbin/ping/ping.c
1338
if (options & F_QUIET)
sbin/ping/ping.c
1341
if (options & F_FLOOD)
sbin/ping/ping.c
1343
else if (options & F_SHOWCHAR) {
sbin/ping/ping.c
1393
if (!(options & F_VERBOSE))
sbin/ping/ping.c
140
int options;
sbin/ping/ping.c
1406
if (!(options & F_FLOOD)) {
sbin/ping/ping.c
1407
if (!(options & F_SHOWCHAR)) {
sbin/ping/ping.c
1409
if (v6flag && (options & F_VERBOSE))
sbin/ping/ping.c
1413
if (options & F_AUD_RECV)
sbin/ping/ping.c
1483
!(options & F_FLOOD)) {
sbin/ping/ping.c
2002
if (options & F_VERBOSE) {
sbin/ping/ping.c
311
options |= F_HDRINCL;
sbin/ping/ping.c
315
options |= F_SO_DEBUG;
sbin/ping/ping.c
318
options |= F_AUD_MISS;
sbin/ping/ping.c
321
options |= F_AUD_RECV;
sbin/ping/ping.c
326
options |= F_FLOOD;
sbin/ping/ping.c
330
options |= F_SHOWCHAR;
sbin/ping/ping.c
333
options |= F_HOSTNAME;
sbin/ping/ping.c
359
options |= F_INTERVAL;
sbin/ping/ping.c
376
options &= ~F_HOSTNAME;
sbin/ping/ping.c
379
options |= F_PINGFILLED;
sbin/ping/ping.c
383
options |= F_QUIET;
sbin/ping/ping.c
386
options |= F_RROUTE;
sbin/ping/ping.c
396
options |= F_HDRINCL;
sbin/ping/ping.c
397
options |= F_TOS;
sbin/ping/ping.c
412
options |= F_TTL;
sbin/ping/ping.c
427
options |= F_VERBOSE;
sbin/ping/ping.c
512
} else if (options & F_VERBOSE) {
sbin/ping/ping.c
569
if (options & F_SO_DEBUG)
sbin/ping/ping.c
573
if ((options & F_FLOOD) && (options & F_INTERVAL))
sbin/ping/ping.c
576
if ((options & F_FLOOD) && (options & (F_AUD_RECV | F_AUD_MISS)))
sbin/ping/ping.c
584
if ((options & F_VERBOSE) && datalen < 2048) /* XXX 2048? */
sbin/ping/ping.c
593
if (!(options & F_PINGFILLED))
sbin/ping/ping.c
632
if (options & F_VERBOSE) {
sbin/ping/ping.c
691
if (options & F_TOS) {
sbin/ping/ping.c
715
if (options & F_TTL) {
sbin/ping/ping.c
719
options |= F_HDRINCL;
sbin/ping/ping.c
722
if ((options & F_RROUTE) && (options & F_HDRINCL))
sbin/ping/ping.c
726
if (options & F_HDRINCL) {
sbin/ping/ping.c
747
if (options & F_RROUTE) {
sbin/ping/ping.c
770
if (options & F_HOSTNAME) {
sbin/ping/ping.c
782
if (options & F_VERBOSE)
sbin/ping/ping.c
847
if (!(options & F_FLOOD)) {
sbin/ping/ping.c
882
if (!(options & F_FLOOD) &&
sbin/ping/ping.c
883
(options & F_AUD_MISS))
sbin/ping/ping.c
885
if ((options & F_SHOWCHAR) &&
sbin/ping/ping.c
886
!(options & F_FLOOD)) {
sbin/ping/ping.c
899
if ((options & F_FLOOD && !flooddone)) {
sbin/ping/ping.c
957
if (options & F_VERBOSE) {
sbin/unwind/resolver.c
1225
} options[] = {
sbin/unwind/resolver.c
1299
for (i = 0; i < nitems(options); i++) {
sbin/unwind/resolver.c
1300
const char* option = options[i].value;
sbin/unwind/resolver.c
1303
strcmp("aggressive-nsec:", options[i].name) == 0) {
sbin/unwind/resolver.c
1311
if ((err = ub_ctx_set_option(res->ctx, options[i].name,
sbin/unwind/resolver.c
1316
options[i].name, options[i].value,
sbin/unwind/resolver.c
1468
for (i = 0; i < nitems(options); i++) {
sbin/unwind/resolver.c
1469
if ((err = ub_ctx_set_option(ctx, options[i].name,
sbin/unwind/resolver.c
1470
options[i].value)) != 0) {
sbin/unwind/resolver.c
1471
fatalx("error setting %s: %s: %s", options[i].name,
sbin/unwind/resolver.c
1472
options[i].value, ub_strerror(err));
sys/arch/sparc64/dev/com_ebus.c
247
int aliases, options;
sys/arch/sparc64/dev/com_ebus.c
263
options = OF_finddevice("/options");
sys/arch/sparc64/dev/com_ebus.c
264
return (getpropspeed(options, name));
sys/arch/sparc64/dev/pcons.c
602
int options, row, col;
sys/arch/sparc64/dev/pcons.c
612
options = OF_finddevice("/options");
sys/arch/sparc64/dev/pcons.c
613
pcons_stdscreen.nrows = getpropint(options, "screen-#rows", 34);
sys/arch/sparc64/dev/pcons.c
614
pcons_stdscreen.ncols = getpropint(options, "screen-#columns", 80);
sys/arch/sparc64/dev/sab.c
1271
int node, channel, options, cookie;
sys/arch/sparc64/dev/sab.c
1277
options = OF_finddevice("/options");
sys/arch/sparc64/dev/sab.c
1283
if (OF_getprop(options, "input-device", buf,
sys/arch/sparc64/dev/sab.c
1296
if (OF_getprop(options, "output-device", buf,
sys/arch/sparc64/dev/sab.c
1311
int node, channel, options;
sys/arch/sparc64/dev/sab.c
1325
options = OF_finddevice("/options");
sys/arch/sparc64/dev/sab.c
1327
sc->sc_speed = getpropspeed(options, name);
sys/arch/sparc64/dev/vdsk.c
800
dr.options = VIO_TX_RING | VIO_RX_RING;
sys/arch/sparc64/dev/viovar.h
81
uint16_t options;
sys/arch/sparc64/dev/vnet.c
1032
dr.options = VIO_TX_RING;
sys/arch/sparc64/dev/zs.c
742
u_int options;
sys/arch/sparc64/dev/zs.c
749
options = OF_finddevice("/options");
sys/arch/sparc64/dev/zs.c
755
if (OF_getprop(options, "input-device",
sys/arch/sparc64/dev/zs.c
766
if (OF_getprop(options, "output-device",
sys/dev/ic/aac.c
1132
u_int32_t major, minor, options;
sys/dev/ic/aac.c
1165
options = AAC_GET_MAILBOX(sc, 1);
sys/dev/ic/aac.c
1166
sc->supported_options = options;
sys/dev/ic/aac.c
1168
if ((options & AAC_SUPPORTED_4GB_WINDOW) != 0 &&
sys/dev/ic/aac.c
1171
if (options & AAC_SUPPORTED_NONDASD)
sys/dev/ic/aac.c
1173
if ((options & AAC_SUPPORTED_SGMAP_HOST64) != 0
sys/dev/ic/aic79xx.c
3107
int options;
sys/dev/ic/aic79xx.c
3113
options = 0;
sys/dev/ic/aic79xx.c
3116
options++;
sys/dev/ic/aic79xx.c
3119
printf("%s", options ? "|DT" : "(DT");
sys/dev/ic/aic79xx.c
3120
options++;
sys/dev/ic/aic79xx.c
3123
printf("%s", options ? "|IU" : "(IU");
sys/dev/ic/aic79xx.c
3124
options++;
sys/dev/ic/aic79xx.c
3127
printf("%s", options ? "|RTI" : "(RTI");
sys/dev/ic/aic79xx.c
3128
options++;
sys/dev/ic/aic79xx.c
3131
printf("%s", options ? "|QAS" : "(QAS");
sys/dev/ic/aic79xx.c
3132
options++;
sys/dev/ic/aic79xx.c
3134
if (options != 0)
sys/dev/ic/if_wi.c
2663
uint64_t options = IFM_OPTIONS(media);
sys/dev/ic/if_wi.c
2687
options &= ~IFM_OMASK;
sys/dev/ic/if_wi.c
2693
options |= IFM_IEEE80211_ADHOC;
sys/dev/ic/if_wi.c
2696
options |= IFM_IEEE80211_HOSTAP;
sys/dev/ic/if_wi.c
2700
options |= IFM_IEEE80211_IBSSMASTER;
sys/dev/ic/if_wi.c
2702
options |= IFM_IEEE80211_IBSS;
sys/dev/ic/if_wi.c
2708
media = IFM_MAKEWORD(IFM_TYPE(media), subtype, options,
sys/dev/ic/qlareg.h
385
u_int8_t options;
sys/dev/ic/siop_common.c
407
int sync, offset, options, scf = 0;
sys/dev/ic/siop_common.c
421
options = tables->msg_in[7];
sys/dev/ic/siop_common.c
422
if (options != MSG_EXT_PPR_PROT_DT) {
sys/dev/pci/auich.c
262
int options;
sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c
5208
.options = BL_CORE_SUSPENDRESUME,
sys/dev/pci/drm/amd/display/dc/dc_dsc.h
118
void dc_dsc_get_default_config_option(const struct dc *dc, struct dc_dsc_config_options *options);
sys/dev/pci/drm/amd/display/dc/dc_dsc.h
83
const struct dc_dsc_config_options *options,
sys/dev/pci/drm/amd/display/dc/dce/dce_transform.c
1241
enum grph_color_adjust_option options)
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
149
if (compressor->options.bits.CLK_GATING_DISABLED == 1) {
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
191
if (compressor->options.bits.FBC_SUPPORT &&
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
243
if (compressor->options.bits.FBC_SUPPORT) {
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
426
compressor->base.options.raw = 0;
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
427
compressor->base.options.bits.FBC_SUPPORT = true;
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
431
compressor->base.options.bits.DUMMY_BACKEND = false;
sys/dev/pci/drm/amd/display/dc/dce110/dce110_compressor.c
439
compressor->base.options.bits.CLK_GATING_DISABLED = false;
sys/dev/pci/drm/amd/display/dc/dce110/dce110_opp_csc_v.c
111
enum grph_color_adjust_option options)
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
109
if (cp110->base.options.bits.LPT_MC_CONFIG == 1) {
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
326
if (compressor->options.bits.CLK_GATING_DISABLED == 1) {
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
369
if (compressor->options.bits.FBC_SUPPORT &&
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
370
(compressor->options.bits.DUMMY_BACKEND == 0) &&
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
383
if (compressor->options.bits.LPT_SUPPORT && (paths_num < 2) &&
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
418
if (compressor->options.bits.FBC_SUPPORT &&
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
432
if (compressor->options.bits.LPT_SUPPORT)
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
497
if (compressor->options.bits.LPT_SUPPORT) {
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
664
if (!compressor->options.bits.LPT_SUPPORT)
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
793
compressor->base.options.raw = 0;
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
794
compressor->base.options.bits.FBC_SUPPORT = true;
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
795
compressor->base.options.bits.LPT_SUPPORT = true;
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
798
compressor->base.options.bits.DUMMY_BACKEND = false;
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
803
compressor->base.options.bits.LPT_SUPPORT = false;
sys/dev/pci/drm/amd/display/dc/dce112/dce112_compressor.c
805
compressor->base.options.bits.CLK_GATING_DISABLED = false;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
61
dml_init->options.project_id = dml21_dcn_revision_to_dml2_project_id(in_dc->ctx->dce_version);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
71
dml21_populate_pmo_options(&dml_init->options.pmo_options, in_dc, config);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/inc/dml_top_types.h
82
struct dml2_options options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c
245
pmo->options = in_out->options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c
288
if (in_out->instance->options->disable_dyn_odm ||
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c
289
(in_out->instance->options->disable_dyn_odm_for_multi_stream && display_config->num_streams > 1))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn3.c
313
in_out->instance->options->disable_dyn_odm_for_stream_with_svp)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1537
pmo->options->disable_drr_var_when_var_active &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1543
(pmo->options->disable_drr_var ||
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1549
(pmo->options->disable_drr_clamped ||
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1552
(pmo->options->disable_drr_clamped_when_var_active &&
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1558
pmo->options->disable_fams2) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1622
if (vblank_count > 0 && (pmo->options->disable_vblank || !all_timings_support_vblank(pmo, display_cfg, vblank_stream_mask)))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1625
if (drr_count > 0 && (pmo->options->disable_drr_var || !all_timings_support_drr(pmo, display_cfg, drr_stream_mask)))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
1628
if (svp_count > 0 && (pmo->options->disable_svp || !all_timings_support_svp(pmo, display_cfg, svp_stream_mask)))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
2078
if (!pmo->options->disable_vactive_det_fill_bw_pad) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
2099
if (!pmo->options->disable_vactive_det_fill_bw_pad) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
312
if (in_out->optimized_display_cfg->num_streams > 1 || in_out->instance->options->disable_dyn_odm) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
656
pmo->options = in_out->options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
751
if (in_out->instance->options->disable_dyn_odm ||
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
752
(in_out->instance->options->disable_dyn_odm_for_multi_stream && display_config->num_streams > 1))
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
776
in_out->instance->options->disable_dyn_odm_for_stream_with_svp)
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_interfaces.c
16
switch (in_out->options.project_id) {
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1124
dml->project_id = in_out->options.project_id;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1125
dml->pmo_options = in_out->options.pmo_options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1128
result = dml2_mcg_create(in_out->options.project_id, &dml->mcg_instance);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1131
result = dml2_dpmm_create(in_out->options.project_id, &dml->dpmm_instance);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1134
result = dml2_core_create(in_out->options.project_id, &dml->core_instance);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1143
core_init_params.project_id = in_out->options.project_id;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1158
result = dml2_pmo_create(in_out->options.project_id, &dml->pmo_instance);
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/dml2_top/dml2_top_soc15.c
1165
pmo_init_params.options = &dml->pmo_options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/inc/dml2_internal_shared_types.h
503
struct dml2_pmo_options *options;
sys/dev/pci/drm/amd/display/dc/dml2/dml21/src/inc/dml2_internal_shared_types.h
691
struct dml2_pmo_options *options;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1050
const struct dc_dsc_config_options *options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1070
dc_dsc_get_policy_for_timing(timing, options->max_target_bpp_limit_override_x16, &policy, link_encoding);
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1207
switch (options->dsc_force_odm_hslice_override) {
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1242
if (options->dsc_min_slice_height_override == 0)
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1245
slice_height = min((int)(options->dsc_min_slice_height_override), pic_height);
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1248
slice_height % options->slice_height_granularity != 0 ||
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1268
options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1296
const struct dc_dsc_config_options *options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1313
options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1452
void dc_dsc_get_default_config_option(const struct dc *dc, struct dc_dsc_config_options *options)
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1454
options->dsc_min_slice_height_override = dc->debug.dsc_min_slice_height_override;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1455
options->dsc_force_odm_hslice_override = dc->debug.force_odm_combine;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1456
options->max_target_bpp_limit_override_x16 = 0;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1457
options->slice_height_granularity = 1;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
1458
options->force_dsc_when_not_needed = false;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
192
const struct dc_dsc_config_options *options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
473
struct dc_dsc_config_options options = {0};
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
475
options.dsc_min_slice_height_override = dsc_min_slice_height_override;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
476
options.max_target_bpp_limit_override_x16 = max_bpp_x16;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
477
options.slice_height_granularity = 1;
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
488
&options, link_encoding, min_dsc_slice_count, &config);
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
855
const struct dc_dsc_config_options *options,
sys/dev/pci/drm/amd/display/dc/dsc/dc_dsc.c
870
if (policy->enable_dsc_when_not_needed || options->force_dsc_when_not_needed)
sys/dev/pci/drm/amd/display/dc/inc/compressor.h
96
} options;
sys/dev/pci/drm/amd/pm/powerplay/inc/hardwaremanager.h
391
uint32_t options;
sys/dev/pci/drm/apple/dcp_backlight.c
211
.options = BL_CORE_SUSPENDRESUME,
sys/dev/pci/drm/include/linux/backlight.h
30
int options;
sys/dev/pci/if_bnxtreg.h
16068
uint8_t options;
sys/dev/pci/if_bnxtreg.h
17038
uint8_t options;
sys/dev/pci/if_bnxtreg.h
66501
uint8_t options;
sys/dev/pci/if_bnxtreg.h
67739
uint8_t options;
sys/dev/pci/if_bnxtreg.h
90402
uint8_t options;
sys/dev/pci/if_ice.c
12537
ldo->options = buf & ICE_LINK_OVERRIDE_OPT_M;
sys/dev/pci/if_ice.c
12684
if (!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE) &&
sys/dev/pci/if_ice.c
12685
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/pci/if_ice.c
14611
if (hw->fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) {
sys/dev/pci/if_ice.c
26463
if (hw->fwlog_cfg.options & ICE_FWLOG_OPTION_IS_REGISTERED) {
sys/dev/pci/if_ice.c
30281
(!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE)))
sys/dev/pci/if_ice.c
30298
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/pci/if_ice.c
3094
cfg->options |= ICE_FWLOG_OPTION_ARQ_ENA;
sys/dev/pci/if_ice.c
3096
cfg->options |= ICE_FWLOG_OPTION_UART_ENA;
sys/dev/pci/if_ice.c
3098
cfg->options |= ICE_FWLOG_OPTION_IS_REGISTERED;
sys/dev/pci/if_ice.c
3162
uint16_t num_entries, uint16_t options,
sys/dev/pci/if_ice.c
3190
if (options & ICE_FWLOG_OPTION_ARQ_ENA)
sys/dev/pci/if_ice.c
3192
if (options & ICE_FWLOG_OPTION_UART_ENA)
sys/dev/pci/if_ice.c
3312
ICE_AQC_FW_LOG_ID_MAX, cfg->options,
sys/dev/pci/if_ice.c
3358
hw->fwlog_cfg.options |= ICE_FWLOG_OPTION_IS_REGISTERED;
sys/dev/pci/if_ice.c
3380
hw->fwlog_cfg.options &= ~ICE_FWLOG_OPTION_IS_REGISTERED;
sys/dev/pci/if_ice.c
7688
if (hw->fwlog_cfg.options & ICE_FWLOG_OPTION_REGISTER_ON_INIT) {
sys/dev/pci/if_icereg.h
12912
uint16_t options;
sys/dev/pci/if_icevar.h
1129
uint8_t options;
sys/kern/init_main.c
600
int options, error;
sys/kern/init_main.c
649
options = 0;
sys/kern/init_main.c
653
options = 1;
sys/kern/init_main.c
658
options = 1;
sys/kern/init_main.c
665
if (options != 0) {
sys/kern/init_main.c
705
if (options != 0)
sys/kern/kern_exit.c
529
dowait6(struct proc *q, idtype_t idtype, id_t id, int *statusp, int options,
sys/kern/kern_exit.c
551
if ((options & WEXITED) && (pr->ps_flags & PS_ZOMBIE)) {
sys/kern/kern_exit.c
575
if ((options & WNOWAIT) == 0)
sys/kern/kern_exit.c
579
if ((options & WTRAPPED) && (pr->ps_flags & PS_TRACED) &&
sys/kern/kern_exit.c
583
if ((options & WNOWAIT) == 0)
sys/kern/kern_exit.c
602
if (((pr->ps_flags & PS_TRACED) || (options & WUNTRACED)) &&
sys/kern/kern_exit.c
606
if ((options & WNOWAIT) == 0)
sys/kern/kern_exit.c
625
if ((options & WCONTINUED) && (pr->ps_flags & PS_CONTINUED)) {
sys/kern/kern_exit.c
626
if ((options & WNOWAIT) == 0)
sys/kern/kern_exit.c
672
if (options & WNOHANG) {
sys/kern/kern_exit.c
689
syscallarg(int) options;
sys/kern/kern_exit.c
694
int options = SCARG(uap, options);
sys/kern/kern_exit.c
699
if (SCARG(uap, options) &~ (WUNTRACED|WNOHANG|WCONTINUED))
sys/kern/kern_exit.c
701
options |= WEXITED | WTRAPPED;
sys/kern/kern_exit.c
718
SCARG(uap, status) ? &status : NULL, options,
sys/kern/kern_exit.c
740
syscallarg(int) options;
sys/kern/kern_exit.c
744
int options = SCARG(uap, options);
sys/kern/kern_exit.c
747
if (options &~ (WSTOPPED|WCONTINUED|WEXITED|WTRAPPED|WNOHANG|WNOWAIT))
sys/kern/kern_exit.c
749
if ((options & (WSTOPPED|WCONTINUED|WEXITED|WTRAPPED)) == 0)
sys/kern/kern_exit.c
755
options, NULL, &info, retval);
sys/net/bsd-comp.c
125
static void *bsd_comp_alloc(u_char *options, int opt_len);
sys/net/bsd-comp.c
126
static void *bsd_decomp_alloc(u_char *options, int opt_len);
sys/net/bsd-comp.c
128
static int bsd_comp_init(void *state, u_char *options, int opt_len,
sys/net/bsd-comp.c
130
static int bsd_decomp_init(void *state, u_char *options, int opt_len,
sys/net/bsd-comp.c
296
bsd_alloc(u_char *options, int opt_len, int decomp)
sys/net/bsd-comp.c
302
if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
sys/net/bsd-comp.c
303
|| options[1] != CILEN_BSD_COMPRESS
sys/net/bsd-comp.c
304
|| BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
sys/net/bsd-comp.c
306
bits = BSD_NBITS(options[2]);
sys/net/bsd-comp.c
372
bsd_comp_alloc(u_char *options, int opt_len)
sys/net/bsd-comp.c
374
return bsd_alloc(options, opt_len, 0);
sys/net/bsd-comp.c
378
bsd_decomp_alloc(u_char *options, int opt_len)
sys/net/bsd-comp.c
380
return bsd_alloc(options, opt_len, 1);
sys/net/bsd-comp.c
387
bsd_init(struct bsd_db *db, u_char *options, int opt_len, int unit, int hdrlen,
sys/net/bsd-comp.c
392
if (opt_len < CILEN_BSD_COMPRESS || options[0] != CI_BSD_COMPRESS
sys/net/bsd-comp.c
393
|| options[1] != CILEN_BSD_COMPRESS
sys/net/bsd-comp.c
394
|| BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
sys/net/bsd-comp.c
395
|| BSD_NBITS(options[2]) != db->maxbits
sys/net/bsd-comp.c
424
bsd_comp_init(void *state, u_char *options, int opt_len, int unit, int hdrlen,
sys/net/bsd-comp.c
427
return bsd_init((struct bsd_db *) state, options, opt_len,
sys/net/bsd-comp.c
432
bsd_decomp_init(void *state, u_char *options, int opt_len, int unit, int hdrlen,
sys/net/bsd-comp.c
435
return bsd_init((struct bsd_db *) state, options, opt_len,
sys/net/if_media.h
465
#define IFM_MAKEWORD(type, subtype, options, instance) \
sys/net/if_media.h
466
((type) | (subtype) | (options) | \
sys/net/ppp-comp.h
62
void *(*comp_alloc)(u_char *options, int opt_len);
sys/net/ppp-comp.h
66
int (*comp_init)(void *state, u_char *options, int opt_len,
sys/net/ppp-comp.h
77
void *(*decomp_alloc)(u_char *options, int opt_len);
sys/net/ppp-comp.h
81
int (*decomp_init)(void *state, u_char *options, int opt_len,
sys/net/ppp-deflate.c
145
z_comp_alloc(u_char *options, int opt_len)
sys/net/ppp-deflate.c
151
|| (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT)
sys/net/ppp-deflate.c
152
|| options[1] != CILEN_DEFLATE
sys/net/ppp-deflate.c
153
|| DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL
sys/net/ppp-deflate.c
154
|| options[3] != DEFLATE_CHK_SEQUENCE)
sys/net/ppp-deflate.c
156
w_size = DEFLATE_SIZE(options[2]);
sys/net/ppp-deflate.c
188
z_comp_init(void *arg, u_char *options, int opt_len, int unit, int hdrlen,
sys/net/ppp-deflate.c
194
|| (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT)
sys/net/ppp-deflate.c
195
|| options[1] != CILEN_DEFLATE
sys/net/ppp-deflate.c
196
|| DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL
sys/net/ppp-deflate.c
197
|| DEFLATE_SIZE(options[2]) != state->w_size
sys/net/ppp-deflate.c
198
|| options[3] != DEFLATE_CHK_SEQUENCE)
sys/net/ppp-deflate.c
366
z_decomp_alloc(u_char *options, int opt_len)
sys/net/ppp-deflate.c
372
|| (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT)
sys/net/ppp-deflate.c
373
|| options[1] != CILEN_DEFLATE
sys/net/ppp-deflate.c
374
|| DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL
sys/net/ppp-deflate.c
375
|| options[3] != DEFLATE_CHK_SEQUENCE)
sys/net/ppp-deflate.c
377
w_size = DEFLATE_SIZE(options[2]);
sys/net/ppp-deflate.c
408
z_decomp_init(void *arg, u_char *options, int opt_len, int unit, int hdrlen,
sys/net/ppp-deflate.c
414
|| (options[0] != CI_DEFLATE && options[0] != CI_DEFLATE_DRAFT)
sys/net/ppp-deflate.c
415
|| options[1] != CILEN_DEFLATE
sys/net/ppp-deflate.c
416
|| DEFLATE_METHOD(options[2]) != DEFLATE_METHOD_VAL
sys/net/ppp-deflate.c
417
|| DEFLATE_SIZE(options[2]) != state->w_size
sys/net/ppp-deflate.c
418
|| options[3] != DEFLATE_CHK_SEQUENCE)
sys/net/ppp-deflate.c
70
static void *z_comp_alloc(u_char *options, int opt_len);
sys/net/ppp-deflate.c
71
static void *z_decomp_alloc(u_char *options, int opt_len);
sys/net/ppp-deflate.c
74
static int z_comp_init(void *state, u_char *options, int opt_len,
sys/net/ppp-deflate.c
76
static int z_decomp_init(void *state, u_char *options, int opt_len,
sys/netinet/raw_ip.c
339
rip_chkhdr(struct mbuf *m, struct mbuf *options)
sys/netinet/raw_ip.c
380
if (options) {
sys/scsi/cd.c
1078
error = cd_load_unload(sc, args->options, args->slot);
sys/scsi/cd.c
1275
cd_load_unload(struct cd_softc *sc, int options, int slot)
sys/scsi/cd.c
1289
cmd->options = options; /* ioctl uses ATAPI values */
sys/scsi/cd.h
166
u_int8_t options;
sys/scsi/mpath_rdac.c
42
u_int8_t options;
sys/sys/cdio.h
233
u_char options;
sys/sys/syscallargs.h
74
syscallarg(int) options;
sys/sys/syscallargs.h
757
syscallarg(int) options;
usr.bin/at/at.c
868
char *options = "q:f:t:bcdlmrv"; /* default options for at */
usr.bin/at/at.c
891
options = "cnvq:";
usr.bin/at/at.c
894
options = "afi";
usr.bin/at/at.c
897
options = "f:q:mv";
usr.bin/at/at.c
901
while ((ch = getopt(argc, argv, options)) != -1) {
usr.bin/at/at.c
948
options = "";
usr.bin/at/at.c
957
options = "cnvq:";
usr.bin/at/at.c
962
options = "f:q:mv";
usr.bin/at/at.c
970
options = "";
usr.bin/dig/lib/dns/include/dns/message.h
327
unsigned int options);
usr.bin/dig/lib/dns/include/dns/name.h
533
dns_decompress_t *dctx, unsigned int options,
usr.bin/dig/lib/dns/include/dns/name.h
624
const dns_name_t *origin, unsigned int options,
usr.bin/dig/lib/dns/include/dns/name.h
676
dns_name_totext2(dns_name_t *name, unsigned int options, isc_buffer_t *target);
usr.bin/dig/lib/dns/include/dns/name.h
883
const dns_name_t *origin, unsigned int options);
usr.bin/dig/lib/dns/include/dns/rdata.h
266
dns_decompress_t *dctx, unsigned int options,
usr.bin/dig/lib/dns/message.c
1029
dns_section_t sectionid, unsigned int options)
usr.bin/dig/lib/dns/message.c
1047
best_effort = options & DNS_MESSAGEPARSE_BESTEFFORT;
usr.bin/dig/lib/dns/message.c
1368
unsigned int options)
usr.bin/dig/lib/dns/message.c
1382
ignore_tc = options & DNS_MESSAGEPARSE_IGNORETRUNCATION;
usr.bin/dig/lib/dns/message.c
1414
ret = getquestions(source, msg, &dctx, options);
usr.bin/dig/lib/dns/message.c
1425
ret = getsection(source, msg, &dctx, DNS_SECTION_ANSWER, options);
usr.bin/dig/lib/dns/message.c
1435
ret = getsection(source, msg, &dctx, DNS_SECTION_AUTHORITY, options);
usr.bin/dig/lib/dns/message.c
1445
ret = getsection(source, msg, &dctx, DNS_SECTION_ADDITIONAL, options);
usr.bin/dig/lib/dns/message.c
855
unsigned int options)
usr.bin/dig/lib/dns/message.c
874
best_effort = options & DNS_MESSAGEPARSE_BESTEFFORT;
usr.bin/dig/lib/dns/name.c
1015
if ((options & DNS_NAME_MASTERFILE) == 0)
usr.bin/dig/lib/dns/name.c
1200
dns_decompress_t *dctx, unsigned int options,
usr.bin/dig/lib/dns/name.c
1221
downcase = (options & DNS_NAME_DOWNCASE) != 0;
usr.bin/dig/lib/dns/name.c
1676
const dns_name_t *origin, unsigned int options)
usr.bin/dig/lib/dns/name.c
1694
result = dns_name_fromtext(name, &buf, origin, options, NULL);
usr.bin/dig/lib/dns/name.c
684
const dns_name_t *origin, unsigned int options,
usr.bin/dig/lib/dns/name.c
709
downcase = (options & DNS_NAME_DOWNCASE) != 0;
usr.bin/dig/lib/dns/name.c
926
unsigned int options = DNS_NAME_MASTERFILE;
usr.bin/dig/lib/dns/name.c
929
options |= DNS_NAME_OMITFINALDOT;
usr.bin/dig/lib/dns/name.c
930
return (dns_name_totext2(name, options, target));
usr.bin/dig/lib/dns/name.c
934
dns_name_totext2(dns_name_t *name, unsigned int options, isc_buffer_t *target)
usr.bin/dig/lib/dns/name.c
943
int omit_final_dot = options & DNS_NAME_OMITFINALDOT;
usr.bin/dig/lib/dns/rdata.c
358
dns_decompress_t *dctx, unsigned int options,
usr.bin/dig/lib/dns/rdata.c
53
unsigned int options, isc_buffer_t *target
usr.bin/dig/lib/dns/rdata/any_255/tsig_250.c
158
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/ch_3/a_1.c
70
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/afsdb_18.c
75
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/avc_258.c
38
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/avc_258.c
40
return (generic_fromwire_txt(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/caa_257.c
83
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/cdnskey_60.c
39
options, target));
usr.bin/dig/lib/dns/rdata/generic/cds_59.c
40
return (generic_fromwire_ds(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/cert_37.c
86
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/cname_5.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/csync_62.c
64
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/dlv_32769.c
42
return (generic_fromwire_ds(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/dname_39.c
59
return(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/dnskey_48.c
45
options, target));
usr.bin/dig/lib/dns/rdata/generic/doa_259.c
80
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/ds_43.c
136
return (generic_fromwire_ds(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/ds_43.c
99
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/eui48_108.c
44
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/eui64_109.c
47
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/gpos_27.c
56
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/hinfo_13.c
49
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/hip_55.c
128
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/ipseckey_45.c
148
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/isdn_20.c
50
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/key_25.c
137
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/key_25.c
152
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/key_25.c
183
options, target));
usr.bin/dig/lib/dns/rdata/generic/keydata_65533.c
203
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/l32_105.c
51
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/l64_106.c
56
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/loc_29.c
155
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/lp_107.c
69
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/mb_7.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/md_3.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/mf_4.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/mg_8.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/minfo_14.c
72
RETERR(dns_name_fromwire(&rmail, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/minfo_14.c
73
return (dns_name_fromwire(&email, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/mr_9.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/mx_15.c
73
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/naptr_35.c
225
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/nid_104.c
56
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/ninfo_56.c
38
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/ninfo_56.c
40
return (generic_fromwire_txt(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/nsec3_50.c
124
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/nsec3param_51.c
100
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/nsec_47.c
68
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/null_10.c
40
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/nxt_30.c
75
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/openpgpkey_61.c
59
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/opt_41.c
83
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/ptr_12.c
57
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/resinfo_261.c
46
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/resinfo_261.c
69
return (generic_fromwire_resinfo(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/rkey_57.c
35
options, target));
usr.bin/dig/lib/dns/rdata/generic/rp_17.c
71
RETERR(dns_name_fromwire(&rmail, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/rp_17.c
72
return (dns_name_fromwire(&email, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/rrsig_46.c
163
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/rt_21.c
76
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/sig_24.c
163
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/sink_40.c
73
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/smimea_53.c
33
return (generic_fromwire_tlsa(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/soa_6.c
116
RETERR(dns_name_fromwire(&mname, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/soa_6.c
117
RETERR(dns_name_fromwire(&rname, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/spf_99.c
42
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/spf_99.c
44
return (generic_fromwire_txt(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c
78
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/ta_32768.c
35
return (generic_fromwire_ds(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/talink_58.c
67
RETERR(dns_name_fromwire(&prev, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/talink_58.c
68
return(dns_name_fromwire(&next, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/tkey_249.c
163
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/generic/tlsa_52.c
105
return (generic_fromwire_tlsa(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/tlsa_52.c
81
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/txt_16.c
46
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/txt_16.c
69
return (generic_fromwire_txt(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/generic/unspec_103.c
41
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/uri_256.c
67
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/x25_19.c
48
UNUSED(options);
usr.bin/dig/lib/dns/rdata/generic/zonemd_63.c
81
UNUSED(options);
usr.bin/dig/lib/dns/rdata/hs_4/a_1.c
48
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/a6_38.c
117
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/a_1.c
51
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/aaaa_28.c
50
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/apl_42.c
103
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/dhcid_49.c
67
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/https_65.c
37
return (fromwire_in_svcb_https(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/in_1/kx_36.c
75
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/nsap-ptr_23.c
61
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/nsap_22.c
56
UNUSED(options);
usr.bin/dig/lib/dns/rdata/in_1/px_26.c
101
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/px_26.c
96
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/srv_33.c
105
return (dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/svcb_64.c
220
RETERR(dns_name_fromwire(&name, source, dctx, options, target));
usr.bin/dig/lib/dns/rdata/in_1/svcb_64.c
260
return (fromwire_in_svcb_https(rdclass, type, source, dctx, options,
usr.bin/dig/lib/dns/rdata/in_1/wks_11.c
76
UNUSED(options);
usr.bin/dig/lib/isc/include/isc/lex.h
210
isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp);
usr.bin/dig/lib/isc/include/isc/socket.h
313
unsigned int options);
usr.bin/dig/lib/isc/lex.c
277
isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
usr.bin/dig/lib/isc/lex.c
299
if ((options & ISC_LEXOPT_NOMORE) != 0) {
usr.bin/dig/lib/isc/lex.c
315
if ((options & ISC_LEXOPT_EOF) != 0) {
usr.bin/dig/lib/isc/lex.c
406
if ((options & ISC_LEXOPT_EOF) == 0) {
usr.bin/dig/lib/isc/lex.c
419
(options & ISC_LEXOPT_QSTRING) != 0) {
usr.bin/dig/lib/isc/lex.c
540
(options & ISC_LEXOPT_QSTRINGMULTILINE) == 0) {
usr.bin/dig/lib/isc/unix/socket.c
2171
unsigned int options) {
usr.bin/dig/lib/isc/unix/socket.c
2184
if ((options & ISC_SOCKET_REUSEADDRESS) != 0 &&
usr.bin/dig/lib/isccfg/parser.c
76
cfg_gettoken(cfg_parser_t *pctx, int options);
usr.bin/dig/lib/isccfg/parser.c
79
cfg_peektoken(cfg_parser_t *pctx, int options);
usr.bin/dig/lib/isccfg/parser.c
907
cfg_gettoken(cfg_parser_t *pctx, int options) {
usr.bin/dig/lib/isccfg/parser.c
915
options |= (ISC_LEXOPT_EOF | ISC_LEXOPT_NOMORE);
usr.bin/dig/lib/isccfg/parser.c
919
result = isc_lex_gettoken(pctx->lexer, options, &pctx->token);
usr.bin/dig/lib/isccfg/parser.c
977
cfg_peektoken(cfg_parser_t *pctx, int options) {
usr.bin/dig/lib/isccfg/parser.c
982
CHECK(cfg_gettoken(pctx, options));
usr.bin/doas/doas.c
197
printf("permit%s\n", (rule->options & NOPASS) ? " nopass" : "");
usr.bin/doas/doas.c
426
if (!(rule->options & NOPASS)) {
usr.bin/doas/doas.c
430
authuser(mypw->pw_name, login_style, rule->options & PERSIST);
usr.bin/doas/doas.c
477
if (!(rule->options & NOLOG)) {
usr.bin/doas/doas.h
20
int options;
usr.bin/doas/env.c
112
if (rule->options & KEEPENV) {
usr.bin/doas/parse.y
110
action: TPERMIT options {
usr.bin/doas/parse.y
112
$$.options = $2.options;
usr.bin/doas/parse.y
116
$$.options = 0;
usr.bin/doas/parse.y
120
options: /* none */ {
usr.bin/doas/parse.y
121
$$.options = 0;
usr.bin/doas/parse.y
123
} | options option {
usr.bin/doas/parse.y
124
$$.options = $1.options | $2.options;
usr.bin/doas/parse.y
126
if (($$.options & (NOPASS|PERSIST)) == (NOPASS|PERSIST)) {
usr.bin/doas/parse.y
139
$$.options = NOPASS;
usr.bin/doas/parse.y
142
$$.options = NOLOG;
usr.bin/doas/parse.y
145
$$.options = PERSIST;
usr.bin/doas/parse.y
148
$$.options = KEEPENV;
usr.bin/doas/parse.y
151
$$.options = 0;
usr.bin/doas/parse.y
35
int options;
usr.bin/doas/parse.y
92
r->options = $1.options;
usr.bin/find/option.c
149
return ((OPTION *)bsearch(&tmp, options,
usr.bin/find/option.c
150
sizeof(options)/sizeof(OPTION), sizeof(OPTION), typecompare));
usr.bin/find/option.c
50
static OPTION options[] = {
usr.bin/ftp/cmds.c
760
options |= SO_DEBUG;
usr.bin/ftp/cmds.c
762
options &= ~SO_DEBUG;
usr.bin/ftp/ftp.c
1311
if ((options & SO_DEBUG) &&
usr.bin/ftp/ftp.c
1568
if (options & SO_DEBUG &&
usr.bin/ftp/ftp_var.h
191
extern int options; /* used during socket creation */
usr.bin/ftp/main.c
177
int options;
usr.bin/ftp/main.c
460
options |= SO_DEBUG;
usr.bin/infocmp/infocmp.c
1204
static const char options[][46] =
usr.bin/infocmp/infocmp.c
1249
const size_t last = SIZEOF(options);
usr.bin/infocmp/infocmp.c
1257
fprintf(stderr, "%-40.40s%s\n", options[n], options[m]);
usr.bin/infocmp/infocmp.c
1259
fprintf(stderr, "%s\n", options[n]);
usr.bin/lex/parse.y
155
| sect1 options
usr.bin/lex/parse.y
186
options : OPTION_OP optionlist
usr.bin/lex/scanopt.c
103
return s->options[i].r_val;
usr.bin/lex/scanopt.c
113
return s->options[i].desc ? s->options[i].desc : "";
usr.bin/lex/scanopt.c
152
scanopt_t *scanopt_init (const optspec_t *options, int argc, char **argv,
usr.bin/lex/scanopt.c
159
s->options = options;
usr.bin/lex/scanopt.c
171
while (options[s->optc].opt_fmt
usr.bin/lex/scanopt.c
172
|| options[s->optc].r_val || options[s->optc].desc)
usr.bin/lex/scanopt.c
183
opt = s->options + i;
usr.bin/lex/scanopt.c
430
nchars+=fprintf(fp,"%s",s->options[i].opt_fmt);\
usr.bin/lex/scanopt.c
630
(char *) (s->options[i].opt_fmt +
usr.bin/lex/scanopt.c
650
s->options[i].r_val) nmatch--;
usr.bin/lex/scanopt.c
651
lastr_val = s->options[i].r_val;
usr.bin/lex/scanopt.c
67
const optspec_t *options; /* List of options. */
usr.bin/lex/scanopt.c
774
optp = s->options + opt_offset;
usr.bin/lex/scanopt.c
92
return s->options[i].opt_fmt +
usr.bin/lex/scanopt.h
90
scanopt_t *scanopt_init PROTO ((const optspec_t * options,
usr.bin/mandoc/main.c
143
int options; /* Parser options. */
usr.bin/mandoc/main.c
179
options = MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1;
usr.bin/mandoc/main.c
231
options &= ~(MPARSE_UTF8 | MPARSE_LATIN1);
usr.bin/mandoc/main.c
233
options |= MPARSE_UTF8;
usr.bin/mandoc/main.c
235
options |= MPARSE_LATIN1;
usr.bin/mandoc/main.c
350
options |= MPARSE_VALIDATE;
usr.bin/mandoc/main.c
601
options |= MPARSE_MDOC;
usr.bin/mandoc/main.c
603
options |= MPARSE_MAN;
usr.bin/mandoc/main.c
607
mp = mparse_alloc(options, os_e, os_s);
usr.bin/mandoc/read.c
380
if ( ! (curp->options & MPARSE_SO) &&
usr.bin/mandoc/read.c
59
int options; /* parser options */
usr.bin/mandoc/read.c
591
curp->filenc = curp->options & (MPARSE_UTF8 | MPARSE_LATIN1);
usr.bin/mandoc/read.c
663
mparse_alloc(int options, enum mandoc_os os_e, const char *os_s)
usr.bin/mandoc/read.c
669
curp->options = options;
usr.bin/mandoc/read.c
672
curp->roff = roff_alloc(options);
usr.bin/mandoc/read.c
674
curp->options & MPARSE_QUICK ? 1 : 0);
usr.bin/mandoc/read.c
675
if (curp->options & MPARSE_MDOC) {
usr.bin/mandoc/read.c
679
} else if (curp->options & MPARSE_MAN) {
usr.bin/mandoc/read.c
718
if (curp->options & MPARSE_VALIDATE) {
usr.bin/mandoc/roff.c
118
int options; /* parse options */
usr.bin/mandoc/roff.c
1318
if (r->options & MPARSE_COMMENT) {
usr.bin/mandoc/roff.c
1861
r->options &= ~MPARSE_COMMENT;
usr.bin/mandoc/roff.c
1883
r->options &= ~MPARSE_COMMENT;
usr.bin/mandoc/roff.c
3284
if ((r->options & mask) == 0)
usr.bin/mandoc/roff.c
769
r->options |= MPARSE_COMMENT;
usr.bin/mandoc/roff.c
770
r->format = r->options & (MPARSE_MDOC | MPARSE_MAN);
usr.bin/mandoc/roff.c
793
roff_alloc(int options)
usr.bin/mandoc/roff.c
799
r->options = options | MPARSE_COMMENT;
usr.bin/mandoc/roff.c
800
r->format = options & (MPARSE_MDOC | MPARSE_MAN);
usr.bin/openssl/pkcs12.c
113
int options;
usr.bin/openssl/pkcs12.c
271
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
319
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
346
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
402
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
422
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
450
.opt.value = &cfg.options,
usr.bin/openssl/pkcs12.c
604
if ((cfg.options & (NOCERTS | NOKEYS)) ==
usr.bin/openssl/pkcs12.c
609
if (cfg.options & NOCERTS)
usr.bin/openssl/pkcs12.c
612
if (!(cfg.options & NOKEYS)) {
usr.bin/openssl/pkcs12.c
621
if (!(cfg.options & NOCERTS)) {
usr.bin/openssl/pkcs12.c
778
if ((cfg.options & INFO) != 0 && PKCS12_mac_present(p12)) {
usr.bin/openssl/pkcs12.c
799
if (!dump_certs_keys_p12(out, p12, cpass, -1, cfg.options,
usr.bin/openssl/pkcs12.c
818
dump_certs_keys_p12(BIO *out, PKCS12 *p12, char *pass, int passlen, int options,
usr.bin/openssl/pkcs12.c
834
if (options & INFO)
usr.bin/openssl/pkcs12.c
837
if (options & INFO) {
usr.bin/openssl/pkcs12.c
84
int options, char *pempass);
usr.bin/openssl/pkcs12.c
848
options, pempass)) {
usr.bin/openssl/pkcs12.c
86
char *pass, int passlen, int options, char *pempass);
usr.bin/openssl/pkcs12.c
864
char *pass, int passlen, int options, char *pempass)
usr.bin/openssl/pkcs12.c
872
options, pempass))
usr.bin/openssl/pkcs12.c
88
int passlen, int options, char *pempass);
usr.bin/openssl/pkcs12.c
880
int options, char *pempass)
usr.bin/openssl/pkcs12.c
893
if (options & INFO)
usr.bin/openssl/pkcs12.c
895
if (options & NOKEYS)
usr.bin/openssl/pkcs12.c
913
if (options & INFO) {
usr.bin/openssl/pkcs12.c
923
if (options & NOKEYS)
usr.bin/openssl/pkcs12.c
941
if (options & INFO)
usr.bin/openssl/pkcs12.c
943
if (options & NOCERTS)
usr.bin/openssl/pkcs12.c
946
if (options & CACERTS)
usr.bin/openssl/pkcs12.c
948
} else if (options & CLCERTS)
usr.bin/openssl/pkcs12.c
961
if (options & INFO)
usr.bin/openssl/pkcs12.c
965
pass, passlen, options, pempass);
usr.bin/openssl/version.c
142
int options;
usr.bin/openssl/version.c
153
cfg.options = 1;
usr.bin/openssl/version.c
188
.opt.flag = &cfg.options,
usr.bin/patch/patch.c
518
const char *options = "b::B:cCd:D:eEfF:i:lnNo:p:r:RstuvV:x:z:";
usr.bin/patch/patch.c
559
while ((ch = getopt_long(Argc, Argv, options, longopts, NULL)) != -1) {
usr.bin/pkgconf/cli/getopt_long.c
190
parse_long_options(char * const *nargv, const char *options,
usr.bin/pkgconf/cli/getopt_long.c
371
getopt_internal(int nargc, char * const *nargv, const char *options,
usr.bin/pkgconf/cli/getopt_long.c
378
if (options == NULL)
usr.bin/pkgconf/cli/getopt_long.c
387
if (*options == '-')
usr.bin/pkgconf/cli/getopt_long.c
389
else if (posixly_correct || *options == '+')
usr.bin/pkgconf/cli/getopt_long.c
392
if (posixly_correct || *options == '+')
usr.bin/pkgconf/cli/getopt_long.c
394
else if (*options == '-')
usr.bin/pkgconf/cli/getopt_long.c
398
if (*options == '+' || *options == '-')
usr.bin/pkgconf/cli/getopt_long.c
399
options++;
usr.bin/pkgconf/cli/getopt_long.c
436
(place[1] == '\0' && strchr(options, '-') == NULL)) {
usr.bin/pkgconf/cli/getopt_long.c
508
} else if (*place != ':' && strchr(options, *place) != NULL)
usr.bin/pkgconf/cli/getopt_long.c
511
optchar = parse_long_options(nargv, options, long_options,
usr.bin/pkgconf/cli/getopt_long.c
521
(oli = strchr(options, optchar)) == NULL) {
usr.bin/pkgconf/cli/getopt_long.c
566
optchar = parse_long_options(nargv, options, long_options,
usr.bin/pkgconf/cli/getopt_long.c
605
pkg_getopt(int nargc, char * const *nargv, const char *options)
usr.bin/pkgconf/cli/getopt_long.c
616
return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
usr.bin/pkgconf/cli/getopt_long.c
624
pkg_getopt_long(int nargc, char * const *nargv, const char *options,
usr.bin/pkgconf/cli/getopt_long.c
628
return (getopt_internal(nargc, nargv, options, long_options, idx,
usr.bin/pkgconf/cli/getopt_long.c
637
pkg_getopt_long_only(int nargc, char * const *nargv, const char *options,
usr.bin/pkgconf/cli/getopt_long.c
641
return (getopt_internal(nargc, nargv, options, long_options, idx,
usr.bin/pkgconf/cli/getopt_long.c
77
#define PRINT_ERROR ((pkg_opterr) && (*options != ':'))
usr.bin/pkgconf/cli/getopt_long.c
85
#define BADARG ((*options == ':') ? (int)':' : (int)'?')
usr.bin/pkgconf/cli/main.c
1076
struct pkg_option options[] = {
usr.bin/pkgconf/cli/main.c
1159
while ((ret = pkg_getopt_long_only(argc, argv, "", options, NULL)) != -1)
usr.bin/rdist/common.c
146
FLAG_ON(options, DO_NOCHKOWNER);
usr.bin/rdist/common.c
147
FLAG_ON(options, DO_NOCHKGROUP);
usr.bin/rdist/common.c
76
opt_t options = 0; /* Global install options */
usr.bin/rdist/defs.h
164
extern opt_t options; /* Global options */
usr.bin/rdist/docmd.c
101
if (IS_ON(options, DO_VERIFY) || to == NULL)
usr.bin/rdist/docmd.c
1025
if (!IS_ON(options, DO_QUIET))
usr.bin/rdist/docmd.c
107
if (!IS_ON(options, DO_QUIET)) {
usr.bin/rdist/docmd.c
177
(void) fprintf(pf, "Options: %s\n\n", getondistoptlist(options));
usr.bin/rdist/docmd.c
322
if (!IS_ON(options, DO_QUIET))
usr.bin/rdist/docmd.c
420
volatile opt_t opts = options;
usr.bin/rdist/docmd.c
549
if (install(f->n_name, NULL, 0, 0, options) > 0)
usr.bin/rdist/docmd.c
704
if (IS_ON(options, DO_VERIFY))
usr.bin/rdist/docmd.c
754
if (!nflag && !IS_ON(options, DO_VERIFY))
usr.bin/rdist/docmd.c
784
if (!nflag && IS_OFF(options, DO_VERIFY))
usr.bin/rdist/docmd.c
790
if (!nflag && !IS_ON(options, DO_VERIFY) && (cp = getnotifyfile()))
usr.bin/rdist/docmd.c
880
FLAG_OFF(options, DO_CHKNFS);
usr.bin/rdist/gram.y
148
cmd: INSTALL options opt_namelist ';' = {
usr.bin/rdist/gram.y
151
$1->sc_options = $2 | options;
usr.bin/rdist/gram.y
207
options: /* VOID */ = {
usr.bin/rdist/gram.y
210
| options OPTION = {
usr.bin/rdist/gram.y
69
%type <optval> OPTION, options
usr.bin/rdist/rdist.c
107
if (parsedistopts(cp, &options, TRUE)) {
usr.bin/rdist/rdist.c
204
if (parsedistopts(optarg, &options, TRUE)) {
usr.bin/rdist/rdist.c
237
case 'v': FLAG_ON(options, DO_VERIFY); break;
usr.bin/rdist/rdist.c
238
case 'N': FLAG_ON(options, DO_CHKNFS); break;
usr.bin/rdist/rdist.c
239
case 'O': FLAG_ON(options, DO_CHKREADONLY); break;
usr.bin/rdist/rdist.c
240
case 'q': FLAG_ON(options, DO_QUIET); break;
usr.bin/rdist/rdist.c
241
case 'b': FLAG_ON(options, DO_COMPARE); break;
usr.bin/rdist/rdist.c
242
case 'r': FLAG_ON(options, DO_NODESCEND); break;
usr.bin/rdist/rdist.c
243
case 'R': FLAG_ON(options, DO_REMOVE); break;
usr.bin/rdist/rdist.c
244
case 's': FLAG_ON(options, DO_SAVETARGETS); break;
usr.bin/rdist/rdist.c
245
case 'w': FLAG_ON(options, DO_WHOLE); break;
usr.bin/rdist/rdist.c
246
case 'y': FLAG_ON(options, DO_YOUNGER); break;
usr.bin/rdist/rdist.c
247
case 'h': FLAG_ON(options, DO_FOLLOW); break;
usr.bin/rdist/rdist.c
248
case 'i': FLAG_ON(options, DO_IGNLNKS); break;
usr.bin/rdist/rdist.c
249
case 'x': FLAG_ON(options, DO_NOEXEC); break;
usr.bin/rdist/rdist.c
260
if (nflag && IS_ON(options, DO_VERIFY))
usr.bin/rdist/rdist.c
393
scmds->sc_options = options;
usr.bin/rdistd/server.c
1258
if (chkparent(target, options) < 0 ) {
usr.bin/rdistd/server.c
1622
options = opts;
usr.bin/rdistd/server.c
569
if (IS_ON(options, DO_CHKNFS)) {
usr.bin/rdistd/server.c
582
if (IS_ON(options, DO_CHKREADONLY)) {
usr.bin/rdistd/server.c
595
if (IS_ON(options, DO_CHKSYM)) {
usr.bin/rdistd/server.c
623
getusername(stb.st_uid, target, options),
usr.bin/rdistd/server.c
624
getgroupname(stb.st_gid, target, options));
usr.bin/ssh/auth-krb5.c
142
if (options.kerberos_or_local_passwd)
usr.bin/ssh/auth-krb5.c
53
extern ServerOptions options;
usr.bin/ssh/auth-passwd.c
59
extern ServerOptions options;
usr.bin/ssh/auth-passwd.c
83
if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
usr.bin/ssh/auth-passwd.c
85
if (*password == '\0' && options.permit_empty_passwd == 0)
usr.bin/ssh/auth-passwd.c
88
if (options.kerberos_authentication == 1) {
usr.bin/ssh/auth-rhosts.c
263
if (options.strict_modes &&
usr.bin/ssh/auth-rhosts.c
293
if (options.strict_modes &&
usr.bin/ssh/auth-rhosts.c
306
if (options.ignore_rhosts == IGNORE_RHOSTS_YES ||
usr.bin/ssh/auth-rhosts.c
307
(options.ignore_rhosts == IGNORE_RHOSTS_SHOSTS &&
usr.bin/ssh/auth-rhosts.c
44
extern ServerOptions options;
usr.bin/ssh/auth.c
100
if (options.chroot_directory == NULL ||
usr.bin/ssh/auth.c
101
strcasecmp(options.chroot_directory, "none") == 0) {
usr.bin/ssh/auth.c
121
if (options.num_deny_users > 0 || options.num_allow_users > 0 ||
usr.bin/ssh/auth.c
122
options.num_deny_groups > 0 || options.num_allow_groups > 0) {
usr.bin/ssh/auth.c
123
hostname = auth_get_canonical_hostname(ssh, options.use_dns);
usr.bin/ssh/auth.c
128
if (options.num_deny_users > 0) {
usr.bin/ssh/auth.c
129
for (i = 0; i < options.num_deny_users; i++) {
usr.bin/ssh/auth.c
131
options.deny_users[i]);
usr.bin/ssh/auth.c
134
options.deny_users[i]);
usr.bin/ssh/auth.c
144
if (options.num_allow_users > 0) {
usr.bin/ssh/auth.c
145
for (i = 0; i < options.num_allow_users; i++) {
usr.bin/ssh/auth.c
147
options.allow_users[i]);
usr.bin/ssh/auth.c
150
options.allow_users[i]);
usr.bin/ssh/auth.c
155
if (i >= options.num_allow_users) {
usr.bin/ssh/auth.c
161
if (options.num_deny_groups > 0 || options.num_allow_groups > 0) {
usr.bin/ssh/auth.c
170
if (options.num_deny_groups > 0)
usr.bin/ssh/auth.c
171
if (ga_match(options.deny_groups,
usr.bin/ssh/auth.c
172
options.num_deny_groups)) {
usr.bin/ssh/auth.c
183
if (options.num_allow_groups > 0)
usr.bin/ssh/auth.c
184
if (!ga_match(options.allow_groups,
usr.bin/ssh/auth.c
185
options.num_allow_groups)) {
usr.bin/ssh/auth.c
214
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/auth.c
216
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/auth.c
228
fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/auth.c
254
authctxt->failures >= options.max_authtries / 2 ||
usr.bin/ssh/auth.c
305
switch (options.permit_root_login) {
usr.bin/ssh/auth.c
362
if (options.authorized_principals_file == NULL)
usr.bin/ssh/auth.c
364
return expand_authorized_keys(options.authorized_principals_file, pw);
usr.bin/ssh/auth.c
382
if (options.strict_modes &&
usr.bin/ssh/auth.c
422
ci = server_get_connection_info(ssh, 1, options.use_dns);
usr.bin/ssh/auth.c
425
parse_server_match_config(&options, &includes, ci);
usr.bin/ssh/auth.c
426
log_change_level(options.log_level);
usr.bin/ssh/auth.c
428
for (i = 0; i < options.num_log_verbose; i++)
usr.bin/ssh/auth.c
429
log_verbose_add(options.log_verbose[i]);
usr.bin/ssh/auth.c
464
if (options.num_revoked_keys_files == 0)
usr.bin/ssh/auth.c
466
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/auth.c
473
for (i = 0; i < options.num_revoked_keys_files; i++) {
usr.bin/ssh/auth.c
474
r = sshkey_check_revoked(key, options.revoked_keys_files[i]);
usr.bin/ssh/auth.c
481
options.revoked_keys_files[i]);
usr.bin/ssh/auth.c
486
options.revoked_keys_files[i]);
usr.bin/ssh/auth.c
594
int do_env = options.permit_user_env && opts->nenv > 0;
usr.bin/ssh/auth.c
596
(options.allow_tcp_forwarding & FORWARD_LOCAL) != 0;
usr.bin/ssh/auth.c
598
(options.allow_tcp_forwarding & FORWARD_REMOTE) != 0;
usr.bin/ssh/auth.c
625
if (options.permit_user_env) {
usr.bin/ssh/auth.c
68
extern ServerOptions options;
usr.bin/ssh/auth2-gss.c
51
extern ServerOptions options;
usr.bin/ssh/auth2-hostbased.c
104
if (match_pattern_list(pkalg, options.hostbased_accepted_algos, 0) != 1) {
usr.bin/ssh/auth2-hostbased.c
110
options.ca_sign_algorithms)) != 0) {
usr.bin/ssh/auth2-hostbased.c
117
options.required_rsa_size)) != 0) {
usr.bin/ssh/auth2-hostbased.c
181
resolvedname = auth_get_canonical_hostname(ssh, options.use_dns);
usr.bin/ssh/auth2-hostbased.c
192
if (options.hostbased_uses_name_from_packet_only) {
usr.bin/ssh/auth2-hostbased.c
215
options.ca_sign_algorithms, &reason) != 0) {
usr.bin/ssh/auth2-hostbased.c
217
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/auth2-hostbased.c
232
options.ignore_user_known_hosts ? NULL : _PATH_SSH_USER_HOSTFILE);
usr.bin/ssh/auth2-hostbased.c
238
options.ignore_user_known_hosts ? NULL :
usr.bin/ssh/auth2-hostbased.c
245
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/auth2-hostbased.c
253
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/auth2-hostbased.c
55
extern ServerOptions options;
usr.bin/ssh/auth2-kbdint.c
42
extern ServerOptions options;
usr.bin/ssh/auth2-kbdint.c
58
if (options.kbd_interactive_authentication)
usr.bin/ssh/auth2-methods.c
29
extern ServerOptions options;
usr.bin/ssh/auth2-methods.c
48
&options.pubkey_authentication
usr.bin/ssh/auth2-methods.c
54
&options.gss_authentication
usr.bin/ssh/auth2-methods.c
60
&options.password_authentication
usr.bin/ssh/auth2-methods.c
65
&options.kbd_interactive_authentication
usr.bin/ssh/auth2-methods.c
70
&options.hostbased_authentication
usr.bin/ssh/auth2-none.c
46
extern ServerOptions options;
usr.bin/ssh/auth2-none.c
59
if (options.permit_empty_passwd && options.password_authentication)
usr.bin/ssh/auth2-passwd.c
47
extern ServerOptions options;
usr.bin/ssh/auth2-pubkey.c
160
if (match_pattern_list(pkalg, options.pubkey_accepted_algos, 0) != 1) {
usr.bin/ssh/auth2-pubkey.c
166
options.ca_sign_algorithms)) != 0) {
usr.bin/ssh/auth2-pubkey.c
173
options.required_rsa_size)) != 0) {
usr.bin/ssh/auth2-pubkey.c
234
req_presence = (options.pubkey_auth_options &
usr.bin/ssh/auth2-pubkey.c
249
req_verify = (options.pubkey_auth_options &
usr.bin/ssh/auth2-pubkey.c
347
options.strict_modes)) == NULL) {
usr.bin/ssh/auth2-pubkey.c
390
if (options.authorized_principals_command == NULL)
usr.bin/ssh/auth2-pubkey.c
392
if (options.authorized_principals_command_user == NULL) {
usr.bin/ssh/auth2-pubkey.c
405
username = percent_expand(options.authorized_principals_command_user,
usr.bin/ssh/auth2-pubkey.c
415
if (argv_split(options.authorized_principals_command,
usr.bin/ssh/auth2-pubkey.c
418
"invalid quotes", options.authorized_principals_command);
usr.bin/ssh/auth2-pubkey.c
423
options.authorized_principals_command);
usr.bin/ssh/auth2-pubkey.c
427
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
usr.bin/ssh/auth2-pubkey.c
432
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
usr.bin/ssh/auth2-pubkey.c
524
if (!sshkey_is_cert(key) || options.trusted_user_ca_keys == NULL)
usr.bin/ssh/auth2-pubkey.c
528
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/auth2-pubkey.c
532
options.trusted_user_ca_keys, 1, 0)) != 0) {
usr.bin/ssh/auth2-pubkey.c
535
options.trusted_user_ca_keys);
usr.bin/ssh/auth2-pubkey.c
554
options.authorized_principals_command != NULL;
usr.bin/ssh/auth2-pubkey.c
604
options.trusted_user_ca_keys);
usr.bin/ssh/auth2-pubkey.c
638
if ((f = auth_openkeyfile(file, pw, options.strict_modes)) != NULL) {
usr.bin/ssh/auth2-pubkey.c
668
if (options.authorized_keys_command == NULL)
usr.bin/ssh/auth2-pubkey.c
670
if (options.authorized_keys_command_user == NULL) {
usr.bin/ssh/auth2-pubkey.c
682
username = percent_expand(options.authorized_keys_command_user,
usr.bin/ssh/auth2-pubkey.c
692
if ((key_fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/auth2-pubkey.c
703
if (argv_split(options.authorized_keys_command, &ac, &av, 0) != 0) {
usr.bin/ssh/auth2-pubkey.c
705
options.authorized_keys_command);
usr.bin/ssh/auth2-pubkey.c
710
options.authorized_keys_command);
usr.bin/ssh/auth2-pubkey.c
72
extern ServerOptions options;
usr.bin/ssh/auth2-pubkey.c
758
options.authorized_keys_command, key, remote_ip,
usr.bin/ssh/auth2-pubkey.c
79
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/auth2-pubkey.c
809
remote_host = auth_get_canonical_hostname(ssh, options.use_dns);
usr.bin/ssh/auth2-pubkey.c
814
for (i = 0; !success && i < options.num_authkeys_files; i++) {
usr.bin/ssh/auth2-pubkey.c
818
if (strcasecmp(options.authorized_keys_files[i], "none") == 0)
usr.bin/ssh/auth2-pubkey.c
821
options.authorized_keys_files[i], pw);
usr.bin/ssh/auth2.c
110
if ((fd = open(options.banner, O_RDONLY)) == -1)
usr.bin/ssh/auth2.c
141
if (options.banner == NULL)
usr.bin/ssh/auth2.c
225
(unsigned long long)options.timing_secret, user);
usr.bin/ssh/auth2.c
327
if (m != NULL && authctxt->failures < options.max_authtries) {
usr.bin/ssh/auth2.c
371
if (authenticated && options.num_auth_methods != 0) {
usr.bin/ssh/auth2.c
404
if (authctxt->failures >= options.max_authtries)
usr.bin/ssh/auth2.c
434
if (options.num_auth_methods == 0)
usr.bin/ssh/auth2.c
522
if (options.num_auth_methods == 1 &&
usr.bin/ssh/auth2.c
523
strcmp(options.auth_methods[0], "any") == 0) {
usr.bin/ssh/auth2.c
524
free(options.auth_methods[0]);
usr.bin/ssh/auth2.c
525
options.auth_methods[0] = NULL;
usr.bin/ssh/auth2.c
526
options.num_auth_methods = 0;
usr.bin/ssh/auth2.c
529
if (options.num_auth_methods == 0)
usr.bin/ssh/auth2.c
532
authctxt->auth_methods = xcalloc(options.num_auth_methods,
usr.bin/ssh/auth2.c
535
for (i = 0; i < options.num_auth_methods; i++) {
usr.bin/ssh/auth2.c
536
if (auth2_methods_valid(options.auth_methods[i], 1) != 0) {
usr.bin/ssh/auth2.c
539
options.auth_methods[i]);
usr.bin/ssh/auth2.c
543
authctxt->num_auth_methods, options.auth_methods[i]);
usr.bin/ssh/auth2.c
545
xstrdup(options.auth_methods[i]);
usr.bin/ssh/auth2.c
61
extern ServerOptions options;
usr.bin/ssh/auth2.c
708
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/clientloop.c
1013
if (!options.permit_local_command)
usr.bin/ssh/clientloop.c
1020
if (*s == '!' && options.permit_local_command) {
usr.bin/ssh/clientloop.c
1055
0, &options.fwd_opts) > 0;
usr.bin/ssh/clientloop.c
1059
&options.fwd_opts) > 0;
usr.bin/ssh/clientloop.c
1079
&options.fwd_opts)) {
usr.bin/ssh/clientloop.c
1094
enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
110
extern Options options;
usr.bin/ssh/clientloop.c
1144
(options.enable_escape_commandline == 0 ? SUPPRESS_NOCMDLINE : 0);
usr.bin/ssh/clientloop.c
1272
if (ch == 'V' && options.log_level >
usr.bin/ssh/clientloop.c
1274
log_change_level(--options.log_level);
usr.bin/ssh/clientloop.c
1275
if (ch == 'v' && options.log_level <
usr.bin/ssh/clientloop.c
1277
log_change_level(++options.log_level);
usr.bin/ssh/clientloop.c
1281
log_level_name(options.log_level))) != 0)
usr.bin/ssh/clientloop.c
1295
options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
1338
if (options.enable_escape_commandline == 0) {
usr.bin/ssh/clientloop.c
1438
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
1462
if (options.pkcs11_provider != NULL)
usr.bin/ssh/clientloop.c
1464
else if (options.control_master &&
usr.bin/ssh/clientloop.c
1465
!option_clear_or_none(options.control_path)) {
usr.bin/ssh/clientloop.c
1471
} else if (options.forward_x11 || options.permit_local_command) {
usr.bin/ssh/clientloop.c
1477
} else if (options.update_hostkeys) {
usr.bin/ssh/clientloop.c
1483
} else if (!option_clear_or_none(options.proxy_command) ||
usr.bin/ssh/clientloop.c
1484
options.fork_after_authentication) {
usr.bin/ssh/clientloop.c
1526
enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
1654
if (have_pty && options.log_level >= SYSLOG_LEVEL_INFO)
usr.bin/ssh/clientloop.c
1672
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
1679
if (options.session_type == SESSION_TYPE_NONE &&
usr.bin/ssh/clientloop.c
1795
if (!options.forward_x11) {
usr.bin/ssh/clientloop.c
1831
if (!options.forward_agent) {
usr.bin/ssh/clientloop.c
2219
for (i = 0; i < options.num_user_hostfiles; i++) {
usr.bin/ssh/clientloop.c
2221
options.user_hostfiles[i], ctx->host_str,
usr.bin/ssh/clientloop.c
2223
if ((r = hostkeys_foreach(options.user_hostfiles[i],
usr.bin/ssh/clientloop.c
2228
options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
2232
options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
2251
int asking = options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK;
usr.bin/ssh/clientloop.c
2261
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/clientloop.c
2272
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/clientloop.c
2281
if (options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) {
usr.bin/ssh/clientloop.c
2295
options.update_hostkeys = 0;
usr.bin/ssh/clientloop.c
2303
options.update_hostkeys = 0;
usr.bin/ssh/clientloop.c
2308
if (options.update_hostkeys == 0)
usr.bin/ssh/clientloop.c
2315
for (i = 0; i < options.num_user_hostfiles; i++) {
usr.bin/ssh/clientloop.c
2320
if (stat(options.user_hostfiles[i], &sb) != 0) {
usr.bin/ssh/clientloop.c
2323
"exist", options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
2327
options.user_hostfiles[i], strerror(errno));
usr.bin/ssh/clientloop.c
2331
if ((r = hostfile_replace_entries(options.user_hostfiles[i],
usr.bin/ssh/clientloop.c
2334
options.hash_known_hosts, 0,
usr.bin/ssh/clientloop.c
2335
options.fingerprint_hash)) != 0) {
usr.bin/ssh/clientloop.c
2337
options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
240
if (muxserver_sock == -1 || !options.control_persist
usr.bin/ssh/clientloop.c
241
|| options.control_persist_timeout == 0) {
usr.bin/ssh/clientloop.c
2481
fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/clientloop.c
252
(time_t)options.control_persist_timeout;
usr.bin/ssh/clientloop.c
2527
options.check_host_ip ? (struct sockaddr *)&hostaddr : NULL,
usr.bin/ssh/clientloop.c
2528
options.port, &ctx->host_str,
usr.bin/ssh/clientloop.c
2529
options.check_host_ip ? &ctx->ip_str : NULL);
usr.bin/ssh/clientloop.c
2532
for (i = 0; i < options.num_user_hostfiles; i++) {
usr.bin/ssh/clientloop.c
2534
options.user_hostfiles[i], ctx->host_str,
usr.bin/ssh/clientloop.c
2536
if ((r = hostkeys_foreach(options.user_hostfiles[i],
usr.bin/ssh/clientloop.c
254
options.control_persist_timeout);
usr.bin/ssh/clientloop.c
2541
options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
2545
options.user_hostfiles[i]);
usr.bin/ssh/clientloop.c
2552
want = HKF_MATCH_HOST | ( options.check_host_ip ? HKF_MATCH_IP : 0);
usr.bin/ssh/clientloop.c
2734
if (options.num_send_env != 0 && env != NULL) {
usr.bin/ssh/clientloop.c
2746
for (j = 0; j < options.num_send_env; j++) {
usr.bin/ssh/clientloop.c
2747
if (match_pattern(name, options.send_env[j])) {
usr.bin/ssh/clientloop.c
2761
for (i = 0; i < options.num_setenv; i++) {
usr.bin/ssh/clientloop.c
2763
name = xstrdup(options.setenv[i]);
usr.bin/ssh/clientloop.c
2846
if (options.control_path != NULL && muxserver_sock != -1)
usr.bin/ssh/clientloop.c
2847
unlink(options.control_path);
usr.bin/ssh/clientloop.c
2852
if (options.control_persist || options.session_type == SESSION_TYPE_NONE) {
usr.bin/ssh/clientloop.c
2862
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
2863
if (options.control_path != NULL && muxserver_sock != -1)
usr.bin/ssh/clientloop.c
2864
unlink(options.control_path);
usr.bin/ssh/clientloop.c
483
if (options.server_alive_interval > 0)
usr.bin/ssh/clientloop.c
484
server_alive_time = monotime() + options.server_alive_interval;
usr.bin/ssh/clientloop.c
492
if (ssh_packet_inc_alive_timeouts(ssh) > options.server_alive_count_max) {
usr.bin/ssh/clientloop.c
582
if (options.obscure_keystroke_timing_interval <= 0)
usr.bin/ssh/clientloop.c
629
options.obscure_keystroke_timing_interval);
usr.bin/ssh/clientloop.c
633
options.obscure_keystroke_timing_interval, 1);
usr.bin/ssh/clientloop.c
663
n /= options.obscure_keystroke_timing_interval * 1000LL * 1000;
usr.bin/ssh/clientloop.c
668
options.obscure_keystroke_timing_interval * n, 0);
usr.bin/ssh/clientloop.c
719
if (options.server_alive_interval > 0)
usr.bin/ssh/clientloop.c
721
if (options.rekey_interval > 0 && !ssh_packet_is_rekeying(ssh)) {
usr.bin/ssh/clientloop.c
746
if (options.server_alive_interval > 0 && !*conn_in_readyp &&
usr.bin/ssh/clientloop.c
768
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
780
enter_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/clientloop.c
819
(options.request_tty == REQUEST_TTY_FORCE ||
usr.bin/ssh/clientloop.c
820
options.request_tty == REQUEST_TTY_YES))
usr.bin/ssh/clientloop.c
824
tochan = options.log_level >= SYSLOG_LEVEL_ERROR &&
usr.bin/ssh/clientloop.c
920
if (options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK &&
usr.bin/ssh/clientloop.c
921
options.batch_mode)
usr.bin/ssh/clientloop.c
923
if (!options.update_hostkeys || options.num_user_hostfiles <= 0)
usr.bin/ssh/clientloop.c
934
if (options.control_master || options.control_path != NULL ||
usr.bin/ssh/clientloop.c
935
options.forward_x11 || options.fork_after_authentication ||
usr.bin/ssh/clientloop.c
936
options.pkcs11_provider != NULL || can_update_hostkeys() ||
usr.bin/ssh/clientloop.c
950
if (options.num_local_forwards != 0 ||
usr.bin/ssh/clientloop.c
951
options.num_remote_forwards != 0 ||
usr.bin/ssh/clientloop.c
952
options.num_permitted_remote_opens != 0 ||
usr.bin/ssh/clientloop.c
953
options.enable_escape_commandline != 0) {
usr.bin/ssh/clientloop.c
958
} else if (options.forward_agent != 0) {
usr.bin/ssh/clientloop.c
987
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/gss-serv.c
104
if (options.gss_strict_acceptor) {
usr.bin/ssh/gss-serv.c
334
if (options.gss_deleg_creds == 0) {
usr.bin/ssh/gss-serv.c
50
extern ServerOptions options;
usr.bin/ssh/hostfile.c
784
void *ctx, const char *host, const char *ip, u_int options, u_int note)
usr.bin/ssh/hostfile.c
796
if (host == NULL && (options & HKF_WANT_MATCH) != 0)
usr.bin/ssh/hostfile.c
818
if ((options & HKF_WANT_MATCH) == 0) {
usr.bin/ssh/hostfile.c
828
if ((options & HKF_WANT_MATCH) == 0)
usr.bin/ssh/hostfile.c
838
if ((options & HKF_WANT_MATCH) == 0)
usr.bin/ssh/hostfile.c
877
if ((options & HKF_WANT_MATCH) != 0 &&
usr.bin/ssh/hostfile.c
892
if ((options & HKF_WANT_PARSE_KEY) != 0) {
usr.bin/ssh/hostfile.c
960
const char *host, const char *ip, u_int options, u_int note)
usr.bin/ssh/hostfile.c
970
options, note);
usr.bin/ssh/hostfile.h
116
const char *host, const char *ip, u_int options, u_int note);
usr.bin/ssh/hostfile.h
119
const char *host, const char *ip, u_int options, u_int note);
usr.bin/ssh/monitor.c
1000
if (!options.kbd_interactive_authentication)
usr.bin/ssh/monitor.c
1007
authok = options.kbd_interactive_authentication &&
usr.bin/ssh/monitor.c
1077
if (!options.pubkey_authentication)
usr.bin/ssh/monitor.c
1082
options.pubkey_accepted_algos))
usr.bin/ssh/monitor.c
1089
if (!options.hostbased_authentication)
usr.bin/ssh/monitor.c
1094
options.hostbased_accepted_algos))
usr.bin/ssh/monitor.c
1347
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/monitor.c
1359
req_presence = (options.pubkey_auth_options &
usr.bin/ssh/monitor.c
1373
req_verify = (options.pubkey_auth_options &
usr.bin/ssh/monitor.c
1435
session_get_remote_name_or_ip(ssh, utmp_len, options.use_dns),
usr.bin/ssh/monitor.c
1696
if (!options.gss_authentication)
usr.bin/ssh/monitor.c
1729
if (!options.gss_authentication)
usr.bin/ssh/monitor.c
1761
if (!options.gss_authentication)
usr.bin/ssh/monitor.c
1791
if (!options.gss_authentication)
usr.bin/ssh/monitor.c
270
if (options.num_auth_methods != 0) {
usr.bin/ssh/monitor.c
298
if (authctxt->failures > options.max_authtries) {
usr.bin/ssh/monitor.c
587
(r = sshbuf_put_u64(m, options.timing_secret)) != 0 ||
usr.bin/ssh/monitor.c
740
options.sk_provider, NULL, compat)) != 0)
usr.bin/ssh/monitor.c
783
if ((r = sshbuf_put_string(m, &options, sizeof(options))) != 0)
usr.bin/ssh/monitor.c
787
if (options.x != NULL && \
usr.bin/ssh/monitor.c
788
(r = sshbuf_put_cstring(m, options.x)) != 0) \
usr.bin/ssh/monitor.c
792
for (i = 0; i < options.nx; i++) { \
usr.bin/ssh/monitor.c
793
if ((r = sshbuf_put_cstring(m, options.x[i])) != 0) \
usr.bin/ssh/monitor.c
859
if (options.refuse_connection) {
usr.bin/ssh/monitor.c
92
extern ServerOptions options;
usr.bin/ssh/monitor.c
934
if (!options.password_authentication)
usr.bin/ssh/monitor.c
939
authenticated = options.password_authentication &&
usr.bin/ssh/monitor.c
968
if (!options.kbd_interactive_authentication)
usr.bin/ssh/monitor_wrap.c
1003
options.permitted_opens, options.num_permitted_opens);
usr.bin/ssh/monitor_wrap.c
1005
options.permitted_listens, options.num_permitted_listens);
usr.bin/ssh/monitor_wrap.c
1014
debug3_f("setting %u timeouts", options.num_channel_timeouts);
usr.bin/ssh/monitor_wrap.c
1016
for (i = 0; i < options.num_channel_timeouts; i++) {
usr.bin/ssh/monitor_wrap.c
1017
if (parse_pattern_interval(options.channel_timeouts[i],
usr.bin/ssh/monitor_wrap.c
1020
options.channel_timeouts[i]);
usr.bin/ssh/monitor_wrap.c
334
copy_set_server_options(&options, newopts, 1);
usr.bin/ssh/monitor_wrap.c
335
log_change_level(options.log_level);
usr.bin/ssh/monitor_wrap.c
337
for (i = 0; i < options.num_log_verbose; i++)
usr.bin/ssh/monitor_wrap.c
338
log_verbose_add(options.log_verbose[i]);
usr.bin/ssh/monitor_wrap.c
409
kex_set_server_sig_algs(ssh, options.pubkey_accepted_algos);
usr.bin/ssh/monitor_wrap.c
81
extern ServerOptions options;
usr.bin/ssh/mux.c
1050
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
1051
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
1141
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
1142
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
1155
free(options.control_path);
usr.bin/ssh/mux.c
1156
options.control_path = NULL;
usr.bin/ssh/mux.c
1173
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
1174
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
1321
char *orig_control_path = options.control_path;
usr.bin/ssh/mux.c
1326
if (options.control_path == NULL ||
usr.bin/ssh/mux.c
1327
options.control_master == SSHCTL_MASTER_NO)
usr.bin/ssh/mux.c
1345
options.control_path = NULL;
usr.bin/ssh/mux.c
1346
xasprintf(&options.control_path, "%s.%s", orig_control_path, rbuf);
usr.bin/ssh/mux.c
1347
debug3_f("temporary control path %s", options.control_path);
usr.bin/ssh/mux.c
1350
muxserver_sock = unix_listener(options.control_path, 64, 0);
usr.bin/ssh/mux.c
1356
"disabling multiplexing", options.control_path);
usr.bin/ssh/mux.c
1363
free(options.control_path);
usr.bin/ssh/mux.c
1364
options.control_path = NULL;
usr.bin/ssh/mux.c
1365
options.control_master = SSHCTL_MASTER_NO;
usr.bin/ssh/mux.c
1374
if (link(options.control_path, orig_control_path) != 0) {
usr.bin/ssh/mux.c
1377
options.control_path, orig_control_path,
usr.bin/ssh/mux.c
1382
unlink(options.control_path);
usr.bin/ssh/mux.c
1385
unlink(options.control_path);
usr.bin/ssh/mux.c
1386
free(options.control_path);
usr.bin/ssh/mux.c
1387
options.control_path = orig_control_path;
usr.bin/ssh/mux.c
1394
0, options.control_path, 1);
usr.bin/ssh/mux.c
1428
if (cctx->want_x_fwd && options.forward_x11 && display != NULL) {
usr.bin/ssh/mux.c
1432
if (client_x11_get_proto(ssh, display, options.xauth_location,
usr.bin/ssh/mux.c
1433
options.forward_x11_trusted, options.forward_x11_timeout,
usr.bin/ssh/mux.c
1446
if (cctx->want_agent_fwd && options.forward_agent)
usr.bin/ssh/mux.c
1958
options.num_local_forwards, options.num_remote_forwards);
usr.bin/ssh/mux.c
1961
for (i = 0; i < options.num_local_forwards; i++) {
usr.bin/ssh/mux.c
1963
options.local_forwards[i].connect_port == 0 ?
usr.bin/ssh/mux.c
1965
options.local_forwards + i) != 0)
usr.bin/ssh/mux.c
1968
for (i = 0; i < options.num_remote_forwards; i++) {
usr.bin/ssh/mux.c
1970
options.remote_forwards + i) != 0)
usr.bin/ssh/mux.c
1995
if (options.stdin_null && stdfd_devnull(1, 0, 0) == -1)
usr.bin/ssh/mux.c
1998
if ((term = lookup_env_in_list("TERM", options.setenv,
usr.bin/ssh/mux.c
1999
options.num_setenv)) == NULL || *term == '\0')
usr.bin/ssh/mux.c
2003
if (options.escape_char != SSH_ESCAPECHAR_NONE)
usr.bin/ssh/mux.c
2004
echar = (u_int)options.escape_char;
usr.bin/ssh/mux.c
2012
(r = sshbuf_put_u32(m, options.forward_x11)) != 0 ||
usr.bin/ssh/mux.c
2013
(r = sshbuf_put_u32(m, options.forward_agent)) != 0 ||
usr.bin/ssh/mux.c
2014
(r = sshbuf_put_u32(m, options.session_type == SESSION_TYPE_SUBSYSTEM)) != 0 ||
usr.bin/ssh/mux.c
2021
if (options.num_send_env > 0 && environ != NULL) {
usr.bin/ssh/mux.c
2029
for (i = 0; i < options.num_setenv; i++) {
usr.bin/ssh/mux.c
2030
if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0)
usr.bin/ssh/mux.c
2093
if (options.fork_after_authentication)
usr.bin/ssh/mux.c
2099
options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/mux.c
2123
leave_raw_mode(options.request_tty ==
usr.bin/ssh/mux.c
2148
leave_raw_mode(options.request_tty == REQUEST_TTY_FORCE);
usr.bin/ssh/mux.c
2159
if (tty_flag && options.log_level >= SYSLOG_LEVEL_INFO)
usr.bin/ssh/mux.c
2223
if (options.stdin_null && stdfd_devnull(1, 0, 0) == -1)
usr.bin/ssh/mux.c
2231
(r = sshbuf_put_cstring(m, options.stdio_forward_host)) != 0 ||
usr.bin/ssh/mux.c
2232
(r = sshbuf_put_u32(m, options.stdio_forward_port)) != 0)
usr.bin/ssh/mux.c
2361
int sock, timeout = options.connection_timeout, timeout_ms = -1;
usr.bin/ssh/mux.c
2366
if (options.stdio_forward_host != NULL)
usr.bin/ssh/mux.c
2372
switch (options.control_master) {
usr.bin/ssh/mux.c
2404
options.control_master != SSHCTL_MASTER_NO) {
usr.bin/ssh/mux.c
2447
if (options.log_level != SYSLOG_LEVEL_QUIET)
usr.bin/ssh/mux.c
245
for (i = 0; i < options.num_send_env; i++)
usr.bin/ssh/mux.c
246
if (match_pattern(name, options.send_env[i]))
usr.bin/ssh/mux.c
2466
if (options.log_level != SYSLOG_LEVEL_QUIET)
usr.bin/ssh/mux.c
433
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
434
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
53
extern Options options;
usr.bin/ssh/mux.c
544
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
545
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
571
(options.fwd_opts.gateway_ports ? "*" : "LOCALHOST") :
usr.bin/ssh/mux.c
579
(options.fwd_opts.gateway_ports ? "*" : "LOCALHOST") :
usr.bin/ssh/mux.c
644
if (fctx->fid >= options.num_remote_forwards ||
usr.bin/ssh/mux.c
645
(options.remote_forwards[fctx->fid].connect_path == NULL &&
usr.bin/ssh/mux.c
646
options.remote_forwards[fctx->fid].connect_host == NULL)) {
usr.bin/ssh/mux.c
650
rfwd = &options.remote_forwards[fctx->fid];
usr.bin/ssh/mux.c
801
for (i = 0; i < options.num_local_forwards; i++) {
usr.bin/ssh/mux.c
803
options.local_forwards + i)) {
usr.bin/ssh/mux.c
812
for (i = 0; i < options.num_remote_forwards; i++) {
usr.bin/ssh/mux.c
813
if (!compare_forward(&fwd, options.remote_forwards + i))
usr.bin/ssh/mux.c
822
options.remote_forwards[i].allocated_port)) != 0)
usr.bin/ssh/mux.c
829
if (options.control_master == SSHCTL_MASTER_ASK ||
usr.bin/ssh/mux.c
830
options.control_master == SSHCTL_MASTER_AUTO_ASK) {
usr.bin/ssh/mux.c
841
&options.fwd_opts)) {
usr.bin/ssh/mux.c
848
add_local_forward(&options, &fwd);
usr.bin/ssh/mux.c
856
add_remote_forward(&options, &fwd);
usr.bin/ssh/mux.c
860
fctx->fid = options.num_remote_forwards - 1;
usr.bin/ssh/mux.c
935
for (i = 0; i < options.num_local_forwards; i++) {
usr.bin/ssh/mux.c
937
options.local_forwards + i)) {
usr.bin/ssh/mux.c
938
found_fwd = options.local_forwards + i;
usr.bin/ssh/mux.c
944
for (i = 0; i < options.num_remote_forwards; i++) {
usr.bin/ssh/mux.c
946
options.remote_forwards + i)) {
usr.bin/ssh/mux.c
947
found_fwd = options.remote_forwards + i;
usr.bin/ssh/mux.c
968
&options.fwd_opts) != 1)
usr.bin/ssh/readconf.c
1112
process_config_line(Options *options, struct passwd *pw, const char *host,
usr.bin/ssh/readconf.c
1116
return process_config_line_depth(options, pw, host, original_host,
usr.bin/ssh/readconf.c
1122
process_config_line_depth(Options *options, struct passwd *pw, const char *host,
usr.bin/ssh/readconf.c
1183
options->ignored_unknown);
usr.bin/ssh/readconf.c
119
Options *options, int flags, int *activep, int *want_final_pass, int depth);
usr.bin/ssh/readconf.c
120
static int process_config_line_depth(Options *options, struct passwd *pw,
usr.bin/ssh/readconf.c
1204
intptr = &options->connection_timeout;
usr.bin/ssh/readconf.c
1224
intptr = &options->forward_agent;
usr.bin/ssh/readconf.c
1250
charptr = &options->forward_agent_sock_path;
usr.bin/ssh/readconf.c
1254
intptr = &options->forward_x11;
usr.bin/ssh/readconf.c
1270
intptr = &options->forward_x11_trusted;
usr.bin/ssh/readconf.c
1274
intptr = &options->forward_x11_timeout;
usr.bin/ssh/readconf.c
1278
intptr = &options->fwd_opts.gateway_ports;
usr.bin/ssh/readconf.c
1282
intptr = &options->exit_on_forward_failure;
usr.bin/ssh/readconf.c
1286
intptr = &options->password_authentication;
usr.bin/ssh/readconf.c
1290
intptr = &options->kbd_interactive_authentication;
usr.bin/ssh/readconf.c
1294
charptr = &options->kbd_interactive_devices;
usr.bin/ssh/readconf.c
1299
intptr = &options->pubkey_authentication;
usr.bin/ssh/readconf.c
1303
intptr = &options->hostbased_authentication;
usr.bin/ssh/readconf.c
1307
intptr = &options->gss_authentication;
usr.bin/ssh/readconf.c
1311
intptr = &options->gss_deleg_creds;
usr.bin/ssh/readconf.c
1315
intptr = &options->batch_mode;
usr.bin/ssh/readconf.c
1319
intptr = &options->check_host_ip;
usr.bin/ssh/readconf.c
1323
intptr = &options->verify_host_key_dns;
usr.bin/ssh/readconf.c
1328
intptr = &options->strict_host_key_checking;
usr.bin/ssh/readconf.c
1333
intptr = &options->compression;
usr.bin/ssh/readconf.c
1338
intptr = &options->tcp_keep_alive;
usr.bin/ssh/readconf.c
1342
intptr = &options->no_host_authentication_for_localhost;
usr.bin/ssh/readconf.c
1346
intptr = &options->number_of_password_prompts;
usr.bin/ssh/readconf.c
1370
if (*activep && options->rekey_limit == -1)
usr.bin/ssh/readconf.c
1371
options->rekey_limit = val64;
usr.bin/ssh/readconf.c
1377
intptr = &options->rekey_interval;
usr.bin/ssh/readconf.c
1390
intptr = &options->num_identity_files;
usr.bin/ssh/readconf.c
1397
add_identity_file(options, NULL,
usr.bin/ssh/readconf.c
1410
intptr = &options->num_certificate_files;
usr.bin/ssh/readconf.c
1418
add_certificate_file(options, arg,
usr.bin/ssh/readconf.c
1424
charptr=&options->xauth_location;
usr.bin/ssh/readconf.c
1428
charptr = &options->user;
usr.bin/ssh/readconf.c
1441
cpptr = (char **)&options->system_hostfiles;
usr.bin/ssh/readconf.c
1442
uintptr = &options->num_system_hostfiles;
usr.bin/ssh/readconf.c
1476
cpptr = (char **)&options->user_hostfiles;
usr.bin/ssh/readconf.c
1477
uintptr = &options->num_user_hostfiles;
usr.bin/ssh/readconf.c
1482
charptr = &options->hostname;
usr.bin/ssh/readconf.c
1486
charptr = &options->tag;
usr.bin/ssh/readconf.c
1490
charptr = &options->host_key_alias;
usr.bin/ssh/readconf.c
1494
charptr = &options->preferred_authentications;
usr.bin/ssh/readconf.c
1498
charptr = &options->bind_address;
usr.bin/ssh/readconf.c
1502
charptr = &options->bind_interface;
usr.bin/ssh/readconf.c
1506
charptr = &options->pkcs11_provider;
usr.bin/ssh/readconf.c
1510
charptr = &options->sk_provider;
usr.bin/ssh/readconf.c
1514
charptr = &options->known_hosts_command;
usr.bin/ssh/readconf.c
1518
charptr = &options->proxy_command;
usr.bin/ssh/readconf.c
1539
if (parse_jump(str + len, options, cmdline, *activep) == -1) {
usr.bin/ssh/readconf.c
1560
if (*activep && options->port == -1)
usr.bin/ssh/readconf.c
1561
options->port = value;
usr.bin/ssh/readconf.c
1565
intptr = &options->connection_attempts;
usr.bin/ssh/readconf.c
1590
if (*activep && options->ciphers == NULL)
usr.bin/ssh/readconf.c
1591
options->ciphers = xstrdup(arg);
usr.bin/ssh/readconf.c
1607
if (*activep && options->macs == NULL)
usr.bin/ssh/readconf.c
1608
options->macs = xstrdup(arg);
usr.bin/ssh/readconf.c
1625
if (*activep && options->kex_algorithms == NULL)
usr.bin/ssh/readconf.c
1626
options->kex_algorithms = xstrdup(arg);
usr.bin/ssh/readconf.c
1630
charptr = &options->hostkeyalgorithms;
usr.bin/ssh/readconf.c
1651
charptr = &options->ca_sign_algorithms;
usr.bin/ssh/readconf.c
1656
log_level_ptr = &options->log_level;
usr.bin/ssh/readconf.c
1669
log_facility_ptr = &options->log_facility;
usr.bin/ssh/readconf.c
1682
cppptr = &options->log_verbose;
usr.bin/ssh/readconf.c
1683
uintptr = &options->num_log_verbose;
usr.bin/ssh/readconf.c
1749
add_remote_forward(options, &fwd);
usr.bin/ssh/readconf.c
1751
add_local_forward(options, &fwd);
usr.bin/ssh/readconf.c
1757
uintptr = &options->num_permitted_remote_opens;
usr.bin/ssh/readconf.c
1758
cppptr = &options->permitted_remote_opens;
usr.bin/ssh/readconf.c
1808
intptr = &options->clear_forwardings;
usr.bin/ssh/readconf.c
1858
value = match_cfg_line(options, str, &ac, &av, pw, host,
usr.bin/ssh/readconf.c
1870
intptr = &options->escape_char;
usr.bin/ssh/readconf.c
1894
intptr = &options->address_family;
usr.bin/ssh/readconf.c
1899
intptr = &options->enable_ssh_keysign;
usr.bin/ssh/readconf.c
1903
intptr = &options->identities_only;
usr.bin/ssh/readconf.c
1907
intptr = &options->server_alive_interval;
usr.bin/ssh/readconf.c
1911
intptr = &options->server_alive_count_max;
usr.bin/ssh/readconf.c
1927
rm_env(options, arg, filename, linenum);
usr.bin/ssh/readconf.c
1932
&options->send_env, &options->num_send_env, arg);
usr.bin/ssh/readconf.c
1941
found = options->num_setenv == 0;
usr.bin/ssh/readconf.c
1962
options->setenv = strs;
usr.bin/ssh/readconf.c
1963
options->num_setenv = nstrs;
usr.bin/ssh/readconf.c
1970
charptr = &options->control_path;
usr.bin/ssh/readconf.c
1974
intptr = &options->control_master;
usr.bin/ssh/readconf.c
1980
intptr = &options->control_persist;
usr.bin/ssh/readconf.c
2002
options->control_persist_timeout = value2;
usr.bin/ssh/readconf.c
2007
intptr = &options->hash_known_hosts;
usr.bin/ssh/readconf.c
2011
intptr = &options->tun_open;
usr.bin/ssh/readconf.c
2028
if (*activep && options->tun_local == -1) {
usr.bin/ssh/readconf.c
2029
options->tun_local = value;
usr.bin/ssh/readconf.c
2030
options->tun_remote = value2;
usr.bin/ssh/readconf.c
2035
charptr = &options->local_command;
usr.bin/ssh/readconf.c
2039
intptr = &options->permit_local_command;
usr.bin/ssh/readconf.c
2043
charptr = &options->remote_command;
usr.bin/ssh/readconf.c
2047
intptr = &options->visual_host_key;
usr.bin/ssh/readconf.c
2065
options, pw, host, original_host,
usr.bin/ssh/readconf.c
2113
options, flags | SSHCONF_CHECKPERM |
usr.bin/ssh/readconf.c
2165
if (*activep && options->ip_qos_interactive == -1) {
usr.bin/ssh/readconf.c
2166
options->ip_qos_interactive = value;
usr.bin/ssh/readconf.c
2167
options->ip_qos_bulk = value2;
usr.bin/ssh/readconf.c
2172
intptr = &options->request_tty;
usr.bin/ssh/readconf.c
2177
intptr = &options->session_type;
usr.bin/ssh/readconf.c
2182
intptr = &options->stdin_null;
usr.bin/ssh/readconf.c
2186
intptr = &options->fork_after_authentication;
usr.bin/ssh/readconf.c
2190
charptr = &options->ignored_unknown;
usr.bin/ssh/readconf.c
2194
intptr = &options->proxy_use_fdpass;
usr.bin/ssh/readconf.c
2198
found = options->num_canonical_domains == 0;
usr.bin/ssh/readconf.c
2222
options->canonical_domains = strs;
usr.bin/ssh/readconf.c
2223
options->num_canonical_domains = nstrs;
usr.bin/ssh/readconf.c
2230
found = options->num_permitted_cnames == 0;
usr.bin/ssh/readconf.c
2269
options->permitted_cnames = cnames;
usr.bin/ssh/readconf.c
2270
options->num_permitted_cnames = ncnames;
usr.bin/ssh/readconf.c
2278
intptr = &options->canonicalize_hostname;
usr.bin/ssh/readconf.c
2283
intptr = &options->canonicalize_max_dots;
usr.bin/ssh/readconf.c
2287
intptr = &options->canonicalize_fallback_local;
usr.bin/ssh/readconf.c
2303
options->fwd_opts.streamlocal_bind_mask = (mode_t)value;
usr.bin/ssh/readconf.c
2307
intptr = &options->fwd_opts.streamlocal_bind_unlink;
usr.bin/ssh/readconf.c
2311
uintptr = &options->num_revoked_host_keys;
usr.bin/ssh/readconf.c
2312
cppptr = &options->revoked_host_keys;
usr.bin/ssh/readconf.c
2345
intptr = &options->fingerprint_hash;
usr.bin/ssh/readconf.c
2362
intptr = &options->update_hostkeys;
usr.bin/ssh/readconf.c
2367
charptr = &options->hostbased_accepted_algos;
usr.bin/ssh/readconf.c
2372
charptr = &options->pubkey_accepted_algos;
usr.bin/ssh/readconf.c
2401
if (*activep && options->add_keys_to_agent == -1) {
usr.bin/ssh/readconf.c
2402
options->add_keys_to_agent = value;
usr.bin/ssh/readconf.c
2403
options->add_keys_to_agent_lifespan = value2;
usr.bin/ssh/readconf.c
2408
charptr = &options->identity_agent;
usr.bin/ssh/readconf.c
2435
intptr = &options->enable_escape_commandline;
usr.bin/ssh/readconf.c
2439
intptr = &options->required_rsa_size;
usr.bin/ssh/readconf.c
2443
intptr = &options->warn_weak_crypto;
usr.bin/ssh/readconf.c
2484
intptr = &options->obscure_keystroke_timing_interval;
usr.bin/ssh/readconf.c
2490
found = options->num_channel_timeouts == 0;
usr.bin/ssh/readconf.c
2513
options->channel_timeouts = strs;
usr.bin/ssh/readconf.c
2514
options->num_channel_timeouts = nstrs;
usr.bin/ssh/readconf.c
2533
if (*activep && options->version_addendum == NULL) {
usr.bin/ssh/readconf.c
2535
options->version_addendum = xstrdup("");
usr.bin/ssh/readconf.c
2537
options->version_addendum = xstrdup(str + len);
usr.bin/ssh/readconf.c
2596
const char *original_host, const char *remote_command, Options *options, int flags,
usr.bin/ssh/readconf.c
2602
remote_command, options, flags, &active, want_final_pass, 0);
usr.bin/ssh/readconf.c
2609
Options *options, int flags, int *activep, int *want_final_pass, int depth)
usr.bin/ssh/readconf.c
2648
if (process_config_line_depth(options, pw, host, original_host,
usr.bin/ssh/readconf.c
2673
config_has_permitted_cnames(Options *options)
usr.bin/ssh/readconf.c
2675
if (options->num_permitted_cnames == 1 &&
usr.bin/ssh/readconf.c
2676
strcasecmp(options->permitted_cnames[0].source_list, "none") == 0 &&
usr.bin/ssh/readconf.c
2677
strcmp(options->permitted_cnames[0].target_list, "") == 0)
usr.bin/ssh/readconf.c
2679
return options->num_permitted_cnames > 0;
usr.bin/ssh/readconf.c
2690
initialize_options(Options * options)
usr.bin/ssh/readconf.c
2692
memset(options, 'X', sizeof(*options));
usr.bin/ssh/readconf.c
2693
options->host_arg = NULL;
usr.bin/ssh/readconf.c
2694
options->forward_agent = -1;
usr.bin/ssh/readconf.c
2695
options->forward_agent_sock_path = NULL;
usr.bin/ssh/readconf.c
2696
options->forward_x11 = -1;
usr.bin/ssh/readconf.c
2697
options->forward_x11_trusted = -1;
usr.bin/ssh/readconf.c
2698
options->forward_x11_timeout = -1;
usr.bin/ssh/readconf.c
2699
options->stdio_forward_host = NULL;
usr.bin/ssh/readconf.c
2700
options->stdio_forward_port = 0;
usr.bin/ssh/readconf.c
2701
options->clear_forwardings = -1;
usr.bin/ssh/readconf.c
2702
options->exit_on_forward_failure = -1;
usr.bin/ssh/readconf.c
2703
options->xauth_location = NULL;
usr.bin/ssh/readconf.c
2704
options->fwd_opts.gateway_ports = -1;
usr.bin/ssh/readconf.c
2705
options->fwd_opts.streamlocal_bind_mask = (mode_t)-1;
usr.bin/ssh/readconf.c
2706
options->fwd_opts.streamlocal_bind_unlink = -1;
usr.bin/ssh/readconf.c
2707
options->pubkey_authentication = -1;
usr.bin/ssh/readconf.c
2708
options->gss_authentication = -1;
usr.bin/ssh/readconf.c
2709
options->gss_deleg_creds = -1;
usr.bin/ssh/readconf.c
2710
options->password_authentication = -1;
usr.bin/ssh/readconf.c
2711
options->kbd_interactive_authentication = -1;
usr.bin/ssh/readconf.c
2712
options->kbd_interactive_devices = NULL;
usr.bin/ssh/readconf.c
2713
options->hostbased_authentication = -1;
usr.bin/ssh/readconf.c
2714
options->batch_mode = -1;
usr.bin/ssh/readconf.c
2715
options->check_host_ip = -1;
usr.bin/ssh/readconf.c
2716
options->strict_host_key_checking = -1;
usr.bin/ssh/readconf.c
2717
options->compression = -1;
usr.bin/ssh/readconf.c
2718
options->tcp_keep_alive = -1;
usr.bin/ssh/readconf.c
2719
options->port = -1;
usr.bin/ssh/readconf.c
2720
options->address_family = -1;
usr.bin/ssh/readconf.c
2721
options->connection_attempts = -1;
usr.bin/ssh/readconf.c
2722
options->connection_timeout = -1;
usr.bin/ssh/readconf.c
2723
options->number_of_password_prompts = -1;
usr.bin/ssh/readconf.c
2724
options->ciphers = NULL;
usr.bin/ssh/readconf.c
2725
options->macs = NULL;
usr.bin/ssh/readconf.c
2726
options->kex_algorithms = NULL;
usr.bin/ssh/readconf.c
2727
options->hostkeyalgorithms = NULL;
usr.bin/ssh/readconf.c
2728
options->ca_sign_algorithms = NULL;
usr.bin/ssh/readconf.c
2729
options->num_identity_files = 0;
usr.bin/ssh/readconf.c
2730
memset(options->identity_keys, 0, sizeof(options->identity_keys));
usr.bin/ssh/readconf.c
2731
options->num_certificate_files = 0;
usr.bin/ssh/readconf.c
2732
memset(options->certificates, 0, sizeof(options->certificates));
usr.bin/ssh/readconf.c
2733
options->hostname = NULL;
usr.bin/ssh/readconf.c
2734
options->host_key_alias = NULL;
usr.bin/ssh/readconf.c
2735
options->proxy_command = NULL;
usr.bin/ssh/readconf.c
2736
options->jump_user = NULL;
usr.bin/ssh/readconf.c
2737
options->jump_host = NULL;
usr.bin/ssh/readconf.c
2738
options->jump_port = -1;
usr.bin/ssh/readconf.c
2739
options->jump_extra = NULL;
usr.bin/ssh/readconf.c
2740
options->user = NULL;
usr.bin/ssh/readconf.c
2741
options->escape_char = -1;
usr.bin/ssh/readconf.c
2742
options->num_system_hostfiles = 0;
usr.bin/ssh/readconf.c
2743
options->num_user_hostfiles = 0;
usr.bin/ssh/readconf.c
2744
options->local_forwards = NULL;
usr.bin/ssh/readconf.c
2745
options->num_local_forwards = 0;
usr.bin/ssh/readconf.c
2746
options->remote_forwards = NULL;
usr.bin/ssh/readconf.c
2747
options->num_remote_forwards = 0;
usr.bin/ssh/readconf.c
2748
options->permitted_remote_opens = NULL;
usr.bin/ssh/readconf.c
2749
options->num_permitted_remote_opens = 0;
usr.bin/ssh/readconf.c
2750
options->log_facility = SYSLOG_FACILITY_NOT_SET;
usr.bin/ssh/readconf.c
2751
options->log_level = SYSLOG_LEVEL_NOT_SET;
usr.bin/ssh/readconf.c
2752
options->num_log_verbose = 0;
usr.bin/ssh/readconf.c
2753
options->log_verbose = NULL;
usr.bin/ssh/readconf.c
2754
options->preferred_authentications = NULL;
usr.bin/ssh/readconf.c
2755
options->bind_address = NULL;
usr.bin/ssh/readconf.c
2756
options->bind_interface = NULL;
usr.bin/ssh/readconf.c
2757
options->pkcs11_provider = NULL;
usr.bin/ssh/readconf.c
2758
options->sk_provider = NULL;
usr.bin/ssh/readconf.c
2759
options->enable_ssh_keysign = - 1;
usr.bin/ssh/readconf.c
2760
options->no_host_authentication_for_localhost = - 1;
usr.bin/ssh/readconf.c
2761
options->identities_only = - 1;
usr.bin/ssh/readconf.c
2762
options->rekey_limit = - 1;
usr.bin/ssh/readconf.c
2763
options->rekey_interval = -1;
usr.bin/ssh/readconf.c
2764
options->verify_host_key_dns = -1;
usr.bin/ssh/readconf.c
2765
options->server_alive_interval = -1;
usr.bin/ssh/readconf.c
2766
options->server_alive_count_max = -1;
usr.bin/ssh/readconf.c
2767
options->send_env = NULL;
usr.bin/ssh/readconf.c
2768
options->num_send_env = 0;
usr.bin/ssh/readconf.c
2769
options->setenv = NULL;
usr.bin/ssh/readconf.c
2770
options->num_setenv = 0;
usr.bin/ssh/readconf.c
2771
options->control_path = NULL;
usr.bin/ssh/readconf.c
2772
options->control_master = -1;
usr.bin/ssh/readconf.c
2773
options->control_persist = -1;
usr.bin/ssh/readconf.c
2774
options->control_persist_timeout = 0;
usr.bin/ssh/readconf.c
2775
options->hash_known_hosts = -1;
usr.bin/ssh/readconf.c
2776
options->tun_open = -1;
usr.bin/ssh/readconf.c
2777
options->tun_local = -1;
usr.bin/ssh/readconf.c
2778
options->tun_remote = -1;
usr.bin/ssh/readconf.c
2779
options->local_command = NULL;
usr.bin/ssh/readconf.c
2780
options->permit_local_command = -1;
usr.bin/ssh/readconf.c
2781
options->remote_command = NULL;
usr.bin/ssh/readconf.c
2782
options->add_keys_to_agent = -1;
usr.bin/ssh/readconf.c
2783
options->add_keys_to_agent_lifespan = -1;
usr.bin/ssh/readconf.c
2784
options->identity_agent = NULL;
usr.bin/ssh/readconf.c
2785
options->visual_host_key = -1;
usr.bin/ssh/readconf.c
2786
options->ip_qos_interactive = -1;
usr.bin/ssh/readconf.c
2787
options->ip_qos_bulk = -1;
usr.bin/ssh/readconf.c
2788
options->request_tty = -1;
usr.bin/ssh/readconf.c
2789
options->session_type = -1;
usr.bin/ssh/readconf.c
2790
options->stdin_null = -1;
usr.bin/ssh/readconf.c
2791
options->fork_after_authentication = -1;
usr.bin/ssh/readconf.c
2792
options->proxy_use_fdpass = -1;
usr.bin/ssh/readconf.c
2793
options->ignored_unknown = NULL;
usr.bin/ssh/readconf.c
2794
options->num_canonical_domains = 0;
usr.bin/ssh/readconf.c
2795
options->num_permitted_cnames = 0;
usr.bin/ssh/readconf.c
2796
options->canonicalize_max_dots = -1;
usr.bin/ssh/readconf.c
2797
options->canonicalize_fallback_local = -1;
usr.bin/ssh/readconf.c
2798
options->canonicalize_hostname = -1;
usr.bin/ssh/readconf.c
2799
options->revoked_host_keys = NULL;
usr.bin/ssh/readconf.c
2800
options->num_revoked_host_keys = 0;
usr.bin/ssh/readconf.c
2801
options->fingerprint_hash = -1;
usr.bin/ssh/readconf.c
2802
options->update_hostkeys = -1;
usr.bin/ssh/readconf.c
2803
options->hostbased_accepted_algos = NULL;
usr.bin/ssh/readconf.c
2804
options->pubkey_accepted_algos = NULL;
usr.bin/ssh/readconf.c
2805
options->known_hosts_command = NULL;
usr.bin/ssh/readconf.c
2806
options->required_rsa_size = -1;
usr.bin/ssh/readconf.c
2807
options->warn_weak_crypto = -1;
usr.bin/ssh/readconf.c
2808
options->enable_escape_commandline = -1;
usr.bin/ssh/readconf.c
2809
options->obscure_keystroke_timing_interval = -1;
usr.bin/ssh/readconf.c
2810
options->tag = NULL;
usr.bin/ssh/readconf.c
2811
options->channel_timeouts = NULL;
usr.bin/ssh/readconf.c
2812
options->num_channel_timeouts = 0;
usr.bin/ssh/readconf.c
2813
options->version_addendum = NULL;
usr.bin/ssh/readconf.c
2821
fill_default_options_for_canonicalization(Options *options)
usr.bin/ssh/readconf.c
2823
if (options->canonicalize_max_dots == -1)
usr.bin/ssh/readconf.c
2824
options->canonicalize_max_dots = 1;
usr.bin/ssh/readconf.c
2825
if (options->canonicalize_fallback_local == -1)
usr.bin/ssh/readconf.c
2826
options->canonicalize_fallback_local = 1;
usr.bin/ssh/readconf.c
2827
if (options->canonicalize_hostname == -1)
usr.bin/ssh/readconf.c
2828
options->canonicalize_hostname = SSH_CANONICALISE_NO;
usr.bin/ssh/readconf.c
2836
fill_default_options(Options * options)
usr.bin/ssh/readconf.c
2842
if (options->forward_agent == -1)
usr.bin/ssh/readconf.c
2843
options->forward_agent = 0;
usr.bin/ssh/readconf.c
2844
if (options->forward_x11 == -1)
usr.bin/ssh/readconf.c
2845
options->forward_x11 = 0;
usr.bin/ssh/readconf.c
2846
if (options->forward_x11_trusted == -1)
usr.bin/ssh/readconf.c
2847
options->forward_x11_trusted = 0;
usr.bin/ssh/readconf.c
2848
if (options->forward_x11_timeout == -1)
usr.bin/ssh/readconf.c
2849
options->forward_x11_timeout = 1200;
usr.bin/ssh/readconf.c
2854
if (options->exit_on_forward_failure == -1)
usr.bin/ssh/readconf.c
2855
options->exit_on_forward_failure =
usr.bin/ssh/readconf.c
2856
options->stdio_forward_host != NULL ? 1 : 0;
usr.bin/ssh/readconf.c
2857
if (options->clear_forwardings == -1)
usr.bin/ssh/readconf.c
2858
options->clear_forwardings =
usr.bin/ssh/readconf.c
2859
options->stdio_forward_host != NULL ? 1 : 0;
usr.bin/ssh/readconf.c
2860
if (options->clear_forwardings == 1)
usr.bin/ssh/readconf.c
2861
clear_forwardings(options);
usr.bin/ssh/readconf.c
2863
if (options->xauth_location == NULL)
usr.bin/ssh/readconf.c
2864
options->xauth_location = xstrdup(_PATH_XAUTH);
usr.bin/ssh/readconf.c
2865
if (options->fwd_opts.gateway_ports == -1)
usr.bin/ssh/readconf.c
2866
options->fwd_opts.gateway_ports = 0;
usr.bin/ssh/readconf.c
2867
if (options->fwd_opts.streamlocal_bind_mask == (mode_t)-1)
usr.bin/ssh/readconf.c
2868
options->fwd_opts.streamlocal_bind_mask = 0177;
usr.bin/ssh/readconf.c
2869
if (options->fwd_opts.streamlocal_bind_unlink == -1)
usr.bin/ssh/readconf.c
2870
options->fwd_opts.streamlocal_bind_unlink = 0;
usr.bin/ssh/readconf.c
2871
if (options->pubkey_authentication == -1)
usr.bin/ssh/readconf.c
2872
options->pubkey_authentication = SSH_PUBKEY_AUTH_ALL;
usr.bin/ssh/readconf.c
2873
if (options->gss_authentication == -1)
usr.bin/ssh/readconf.c
2874
options->gss_authentication = 0;
usr.bin/ssh/readconf.c
2875
if (options->gss_deleg_creds == -1)
usr.bin/ssh/readconf.c
2876
options->gss_deleg_creds = 0;
usr.bin/ssh/readconf.c
2877
if (options->password_authentication == -1)
usr.bin/ssh/readconf.c
2878
options->password_authentication = 1;
usr.bin/ssh/readconf.c
2879
if (options->kbd_interactive_authentication == -1)
usr.bin/ssh/readconf.c
2880
options->kbd_interactive_authentication = 1;
usr.bin/ssh/readconf.c
2881
if (options->hostbased_authentication == -1)
usr.bin/ssh/readconf.c
2882
options->hostbased_authentication = 0;
usr.bin/ssh/readconf.c
2883
if (options->batch_mode == -1)
usr.bin/ssh/readconf.c
2884
options->batch_mode = 0;
usr.bin/ssh/readconf.c
2885
if (options->check_host_ip == -1)
usr.bin/ssh/readconf.c
2886
options->check_host_ip = 0;
usr.bin/ssh/readconf.c
2887
if (options->strict_host_key_checking == -1)
usr.bin/ssh/readconf.c
2888
options->strict_host_key_checking = SSH_STRICT_HOSTKEY_ASK;
usr.bin/ssh/readconf.c
2889
if (options->compression == -1)
usr.bin/ssh/readconf.c
2890
options->compression = 0;
usr.bin/ssh/readconf.c
2891
if (options->tcp_keep_alive == -1)
usr.bin/ssh/readconf.c
2892
options->tcp_keep_alive = 1;
usr.bin/ssh/readconf.c
2893
if (options->port == -1)
usr.bin/ssh/readconf.c
2894
options->port = 0; /* Filled in ssh_connect. */
usr.bin/ssh/readconf.c
2895
if (options->address_family == -1)
usr.bin/ssh/readconf.c
2896
options->address_family = AF_UNSPEC;
usr.bin/ssh/readconf.c
2897
if (options->connection_attempts == -1)
usr.bin/ssh/readconf.c
2898
options->connection_attempts = 1;
usr.bin/ssh/readconf.c
2899
if (options->number_of_password_prompts == -1)
usr.bin/ssh/readconf.c
2900
options->number_of_password_prompts = 3;
usr.bin/ssh/readconf.c
2902
if (options->add_keys_to_agent == -1) {
usr.bin/ssh/readconf.c
2903
options->add_keys_to_agent = 0;
usr.bin/ssh/readconf.c
2904
options->add_keys_to_agent_lifespan = 0;
usr.bin/ssh/readconf.c
2906
if (options->num_identity_files == 0) {
usr.bin/ssh/readconf.c
2907
add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_RSA, 0);
usr.bin/ssh/readconf.c
2908
add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_ECDSA, 0);
usr.bin/ssh/readconf.c
2909
add_identity_file(options, "~/",
usr.bin/ssh/readconf.c
2911
add_identity_file(options, "~/",
usr.bin/ssh/readconf.c
2913
add_identity_file(options, "~/",
usr.bin/ssh/readconf.c
2916
if (options->escape_char == -1)
usr.bin/ssh/readconf.c
2917
options->escape_char = '~';
usr.bin/ssh/readconf.c
2918
if (options->num_system_hostfiles == 0) {
usr.bin/ssh/readconf.c
2919
options->system_hostfiles[options->num_system_hostfiles++] =
usr.bin/ssh/readconf.c
2921
options->system_hostfiles[options->num_system_hostfiles++] =
usr.bin/ssh/readconf.c
2924
if (options->update_hostkeys == -1) {
usr.bin/ssh/readconf.c
2925
if (options->verify_host_key_dns <= 0 &&
usr.bin/ssh/readconf.c
2926
(options->num_user_hostfiles == 0 ||
usr.bin/ssh/readconf.c
2927
(options->num_user_hostfiles == 1 && strcmp(options->
usr.bin/ssh/readconf.c
2929
options->update_hostkeys = SSH_UPDATE_HOSTKEYS_YES;
usr.bin/ssh/readconf.c
2931
options->update_hostkeys = SSH_UPDATE_HOSTKEYS_NO;
usr.bin/ssh/readconf.c
2933
if (options->num_user_hostfiles == 0) {
usr.bin/ssh/readconf.c
2934
options->user_hostfiles[options->num_user_hostfiles++] =
usr.bin/ssh/readconf.c
2936
options->user_hostfiles[options->num_user_hostfiles++] =
usr.bin/ssh/readconf.c
2939
if (options->log_level == SYSLOG_LEVEL_NOT_SET)
usr.bin/ssh/readconf.c
2940
options->log_level = SYSLOG_LEVEL_INFO;
usr.bin/ssh/readconf.c
2941
if (options->log_facility == SYSLOG_FACILITY_NOT_SET)
usr.bin/ssh/readconf.c
2942
options->log_facility = SYSLOG_FACILITY_USER;
usr.bin/ssh/readconf.c
2943
if (options->no_host_authentication_for_localhost == - 1)
usr.bin/ssh/readconf.c
2944
options->no_host_authentication_for_localhost = 0;
usr.bin/ssh/readconf.c
2945
if (options->identities_only == -1)
usr.bin/ssh/readconf.c
2946
options->identities_only = 0;
usr.bin/ssh/readconf.c
2947
if (options->enable_ssh_keysign == -1)
usr.bin/ssh/readconf.c
2948
options->enable_ssh_keysign = 0;
usr.bin/ssh/readconf.c
2949
if (options->rekey_limit == -1)
usr.bin/ssh/readconf.c
2950
options->rekey_limit = 0;
usr.bin/ssh/readconf.c
2951
if (options->rekey_interval == -1)
usr.bin/ssh/readconf.c
2952
options->rekey_interval = 0;
usr.bin/ssh/readconf.c
2953
if (options->verify_host_key_dns == -1)
usr.bin/ssh/readconf.c
2954
options->verify_host_key_dns = 0;
usr.bin/ssh/readconf.c
2955
if (options->server_alive_interval == -1)
usr.bin/ssh/readconf.c
2956
options->server_alive_interval = 0;
usr.bin/ssh/readconf.c
2957
if (options->server_alive_count_max == -1)
usr.bin/ssh/readconf.c
2958
options->server_alive_count_max = 3;
usr.bin/ssh/readconf.c
2959
if (options->control_master == -1)
usr.bin/ssh/readconf.c
2960
options->control_master = 0;
usr.bin/ssh/readconf.c
2961
if (options->control_persist == -1) {
usr.bin/ssh/readconf.c
2962
options->control_persist = 0;
usr.bin/ssh/readconf.c
2963
options->control_persist_timeout = 0;
usr.bin/ssh/readconf.c
2965
if (options->hash_known_hosts == -1)
usr.bin/ssh/readconf.c
2966
options->hash_known_hosts = 0;
usr.bin/ssh/readconf.c
2967
if (options->tun_open == -1)
usr.bin/ssh/readconf.c
2968
options->tun_open = SSH_TUNMODE_NO;
usr.bin/ssh/readconf.c
2969
if (options->tun_local == -1)
usr.bin/ssh/readconf.c
2970
options->tun_local = SSH_TUNID_ANY;
usr.bin/ssh/readconf.c
2971
if (options->tun_remote == -1)
usr.bin/ssh/readconf.c
2972
options->tun_remote = SSH_TUNID_ANY;
usr.bin/ssh/readconf.c
2973
if (options->permit_local_command == -1)
usr.bin/ssh/readconf.c
2974
options->permit_local_command = 0;
usr.bin/ssh/readconf.c
2975
if (options->visual_host_key == -1)
usr.bin/ssh/readconf.c
2976
options->visual_host_key = 0;
usr.bin/ssh/readconf.c
2977
if (options->ip_qos_interactive == -1)
usr.bin/ssh/readconf.c
2978
options->ip_qos_interactive = IPTOS_DSCP_EF;
usr.bin/ssh/readconf.c
2979
if (options->ip_qos_bulk == -1)
usr.bin/ssh/readconf.c
2980
options->ip_qos_bulk = IPTOS_DSCP_CS0;
usr.bin/ssh/readconf.c
2981
if (options->request_tty == -1)
usr.bin/ssh/readconf.c
2982
options->request_tty = REQUEST_TTY_AUTO;
usr.bin/ssh/readconf.c
2983
if (options->session_type == -1)
usr.bin/ssh/readconf.c
2984
options->session_type = SESSION_TYPE_DEFAULT;
usr.bin/ssh/readconf.c
2985
if (options->stdin_null == -1)
usr.bin/ssh/readconf.c
2986
options->stdin_null = 0;
usr.bin/ssh/readconf.c
2987
if (options->fork_after_authentication == -1)
usr.bin/ssh/readconf.c
2988
options->fork_after_authentication = 0;
usr.bin/ssh/readconf.c
2989
if (options->proxy_use_fdpass == -1)
usr.bin/ssh/readconf.c
2990
options->proxy_use_fdpass = 0;
usr.bin/ssh/readconf.c
2991
if (options->canonicalize_max_dots == -1)
usr.bin/ssh/readconf.c
2992
options->canonicalize_max_dots = 1;
usr.bin/ssh/readconf.c
2993
if (options->canonicalize_fallback_local == -1)
usr.bin/ssh/readconf.c
2994
options->canonicalize_fallback_local = 1;
usr.bin/ssh/readconf.c
2995
if (options->canonicalize_hostname == -1)
usr.bin/ssh/readconf.c
2996
options->canonicalize_hostname = SSH_CANONICALISE_NO;
usr.bin/ssh/readconf.c
2997
if (options->fingerprint_hash == -1)
usr.bin/ssh/readconf.c
2998
options->fingerprint_hash = SSH_FP_HASH_DEFAULT;
usr.bin/ssh/readconf.c
2999
if (options->sk_provider == NULL)
usr.bin/ssh/readconf.c
3000
options->sk_provider = xstrdup("internal");
usr.bin/ssh/readconf.c
3001
if (options->required_rsa_size == -1)
usr.bin/ssh/readconf.c
3002
options->required_rsa_size = SSH_RSA_MINIMUM_MODULUS_SIZE;
usr.bin/ssh/readconf.c
3003
if (options->warn_weak_crypto == -1)
usr.bin/ssh/readconf.c
3004
options->warn_weak_crypto = 1;
usr.bin/ssh/readconf.c
3005
if (options->enable_escape_commandline == -1)
usr.bin/ssh/readconf.c
3006
options->enable_escape_commandline = 0;
usr.bin/ssh/readconf.c
3007
if (options->obscure_keystroke_timing_interval == -1) {
usr.bin/ssh/readconf.c
3008
options->obscure_keystroke_timing_interval =
usr.bin/ssh/readconf.c
3026
if ((r = kex_assemble_names(&options->what, \
usr.bin/ssh/readconf.c
3032
options->kex_algorithms_set = options->kex_algorithms != NULL;
usr.bin/ssh/readconf.c
3050
if (options->nv == 1 && \
usr.bin/ssh/readconf.c
3051
strcasecmp(options->v[0], none) == 0) { \
usr.bin/ssh/readconf.c
3052
free(options->v[0]); \
usr.bin/ssh/readconf.c
3053
free(options->v); \
usr.bin/ssh/readconf.c
3054
options->v = NULL; \
usr.bin/ssh/readconf.c
3055
options->nv = 0; \
usr.bin/ssh/readconf.c
3058
CLEAR_ON_NONE(options->local_command);
usr.bin/ssh/readconf.c
3059
CLEAR_ON_NONE(options->remote_command);
usr.bin/ssh/readconf.c
3060
CLEAR_ON_NONE(options->proxy_command);
usr.bin/ssh/readconf.c
3061
CLEAR_ON_NONE(options->control_path);
usr.bin/ssh/readconf.c
3062
CLEAR_ON_NONE(options->pkcs11_provider);
usr.bin/ssh/readconf.c
3063
CLEAR_ON_NONE(options->sk_provider);
usr.bin/ssh/readconf.c
3064
CLEAR_ON_NONE(options->known_hosts_command);
usr.bin/ssh/readconf.c
3069
if (options->jump_host != NULL &&
usr.bin/ssh/readconf.c
3070
strcmp(options->jump_host, "none") == 0 &&
usr.bin/ssh/readconf.c
3071
options->jump_port == 0 && options->jump_user == NULL) {
usr.bin/ssh/readconf.c
3072
free(options->jump_host);
usr.bin/ssh/readconf.c
3073
options->jump_host = NULL;
usr.bin/ssh/readconf.c
3075
if (options->num_permitted_cnames == 1 &&
usr.bin/ssh/readconf.c
3076
!config_has_permitted_cnames(options)) {
usr.bin/ssh/readconf.c
3078
free(options->permitted_cnames[0].source_list);
usr.bin/ssh/readconf.c
3079
free(options->permitted_cnames[0].target_list);
usr.bin/ssh/readconf.c
3080
memset(options->permitted_cnames, '\0',
usr.bin/ssh/readconf.c
3081
sizeof(*options->permitted_cnames));
usr.bin/ssh/readconf.c
3082
options->num_permitted_cnames = 0;
usr.bin/ssh/readconf.c
364
add_local_forward(Options *options, const struct Forward *newfwd)
usr.bin/ssh/readconf.c
370
for (i = 0; i < options->num_local_forwards; i++) {
usr.bin/ssh/readconf.c
371
if (forward_equals(newfwd, options->local_forwards + i))
usr.bin/ssh/readconf.c
374
options->local_forwards = xreallocarray(options->local_forwards,
usr.bin/ssh/readconf.c
375
options->num_local_forwards + 1,
usr.bin/ssh/readconf.c
376
sizeof(*options->local_forwards));
usr.bin/ssh/readconf.c
377
fwd = &options->local_forwards[options->num_local_forwards++];
usr.bin/ssh/readconf.c
393
add_remote_forward(Options *options, const struct Forward *newfwd)
usr.bin/ssh/readconf.c
399
for (i = 0; i < options->num_remote_forwards; i++) {
usr.bin/ssh/readconf.c
400
if (forward_equals(newfwd, options->remote_forwards + i))
usr.bin/ssh/readconf.c
403
options->remote_forwards = xreallocarray(options->remote_forwards,
usr.bin/ssh/readconf.c
404
options->num_remote_forwards + 1,
usr.bin/ssh/readconf.c
405
sizeof(*options->remote_forwards));
usr.bin/ssh/readconf.c
406
fwd = &options->remote_forwards[options->num_remote_forwards++];
usr.bin/ssh/readconf.c
419
clear_forwardings(Options *options)
usr.bin/ssh/readconf.c
423
for (i = 0; i < options->num_local_forwards; i++) {
usr.bin/ssh/readconf.c
424
free(options->local_forwards[i].listen_host);
usr.bin/ssh/readconf.c
425
free(options->local_forwards[i].listen_path);
usr.bin/ssh/readconf.c
426
free(options->local_forwards[i].connect_host);
usr.bin/ssh/readconf.c
427
free(options->local_forwards[i].connect_path);
usr.bin/ssh/readconf.c
429
if (options->num_local_forwards > 0) {
usr.bin/ssh/readconf.c
430
free(options->local_forwards);
usr.bin/ssh/readconf.c
431
options->local_forwards = NULL;
usr.bin/ssh/readconf.c
433
options->num_local_forwards = 0;
usr.bin/ssh/readconf.c
434
for (i = 0; i < options->num_remote_forwards; i++) {
usr.bin/ssh/readconf.c
435
free(options->remote_forwards[i].listen_host);
usr.bin/ssh/readconf.c
436
free(options->remote_forwards[i].listen_path);
usr.bin/ssh/readconf.c
437
free(options->remote_forwards[i].connect_host);
usr.bin/ssh/readconf.c
438
free(options->remote_forwards[i].connect_path);
usr.bin/ssh/readconf.c
440
if (options->num_remote_forwards > 0) {
usr.bin/ssh/readconf.c
441
free(options->remote_forwards);
usr.bin/ssh/readconf.c
442
options->remote_forwards = NULL;
usr.bin/ssh/readconf.c
444
options->num_remote_forwards = 0;
usr.bin/ssh/readconf.c
445
options->tun_open = SSH_TUNMODE_NO;
usr.bin/ssh/readconf.c
449
add_certificate_file(Options *options, const char *path, int userprovided)
usr.bin/ssh/readconf.c
453
if (options->num_certificate_files >= SSH_MAX_CERTIFICATE_FILES)
usr.bin/ssh/readconf.c
458
for (i = 0; i < options->num_certificate_files; i++) {
usr.bin/ssh/readconf.c
459
if (options->certificate_file_userprovided[i] == userprovided &&
usr.bin/ssh/readconf.c
460
strcmp(options->certificate_files[i], path) == 0) {
usr.bin/ssh/readconf.c
466
options->certificate_file_userprovided[options->num_certificate_files] =
usr.bin/ssh/readconf.c
468
options->certificate_files[options->num_certificate_files++] =
usr.bin/ssh/readconf.c
473
add_identity_file(Options *options, const char *dir, const char *filename,
usr.bin/ssh/readconf.c
479
if (options->num_identity_files >= SSH_MAX_IDENTITY_FILES)
usr.bin/ssh/readconf.c
489
for (i = 0; i < options->num_identity_files; i++) {
usr.bin/ssh/readconf.c
490
if (options->identity_file_userprovided[i] == userprovided &&
usr.bin/ssh/readconf.c
491
strcmp(options->identity_files[i], path) == 0) {
usr.bin/ssh/readconf.c
498
options->identity_file_userprovided[options->num_identity_files] =
usr.bin/ssh/readconf.c
500
options->identity_files[options->num_identity_files++] = path;
usr.bin/ssh/readconf.c
632
expand_match_exec_or_include_path(const char *path, Options *options,
usr.bin/ssh/readconf.c
641
port = options->port <= 0 ? default_ssh_port() : options->port;
usr.bin/ssh/readconf.c
642
ruser = options->user == NULL ? pw->pw_name : options->user;
usr.bin/ssh/readconf.c
644
host = xstrdup(options->hostname);
usr.bin/ssh/readconf.c
645
} else if (options->hostname != NULL) {
usr.bin/ssh/readconf.c
647
host = percent_expand(options->hostname,
usr.bin/ssh/readconf.c
654
jmphost = option_clear_or_none(options->jump_host) ?
usr.bin/ssh/readconf.c
655
"" : options->jump_host;
usr.bin/ssh/readconf.c
663
keyalias = options->host_key_alias ? options->host_key_alias : host;
usr.bin/ssh/readconf.c
688
match_cfg_line(Options *options, const char *full_line, int *acp, char ***avp,
usr.bin/ssh/readconf.c
701
ruser = options->user == NULL ? pw->pw_name : options->user;
usr.bin/ssh/readconf.c
703
host = xstrdup(options->hostname);
usr.bin/ssh/readconf.c
704
} else if (options->hostname != NULL) {
usr.bin/ssh/readconf.c
706
host = percent_expand(options->hostname,
usr.bin/ssh/readconf.c
831
criteria = xstrdup(options->tag == NULL ? "" :
usr.bin/ssh/readconf.c
832
options->tag);
usr.bin/ssh/readconf.c
847
if (options->session_type == SESSION_TYPE_SUBSYSTEM)
usr.bin/ssh/readconf.c
849
else if (options->session_type == SESSION_TYPE_NONE)
usr.bin/ssh/readconf.c
861
options, pw, host_arg, original_host,
usr.bin/ssh/readconf.c
915
rm_env(Options *options, const char *arg, const char *filename, int linenum)
usr.bin/ssh/readconf.c
917
u_int i, j, onum_send_env = options->num_send_env;
usr.bin/ssh/readconf.c
920
for (i = 0; i < options->num_send_env; ) {
usr.bin/ssh/readconf.c
921
if (!match_pattern(options->send_env[i], arg + 1)) {
usr.bin/ssh/readconf.c
926
filename, linenum, options->send_env[i]);
usr.bin/ssh/readconf.c
927
free(options->send_env[i]);
usr.bin/ssh/readconf.c
928
options->send_env[i] = NULL;
usr.bin/ssh/readconf.c
929
for (j = i; j < options->num_send_env - 1; j++) {
usr.bin/ssh/readconf.c
930
options->send_env[j] = options->send_env[j + 1];
usr.bin/ssh/readconf.c
931
options->send_env[j + 1] = NULL;
usr.bin/ssh/readconf.c
933
options->num_send_env--;
usr.bin/ssh/readconf.c
936
if (onum_send_env != options->num_send_env) {
usr.bin/ssh/readconf.c
937
options->send_env = xrecallocarray(options->send_env,
usr.bin/ssh/readconf.c
938
onum_send_env, options->num_send_env,
usr.bin/ssh/readconf.c
939
sizeof(*options->send_env));
usr.bin/ssh/servconf.c
100
options->strict_modes = -1;
usr.bin/ssh/servconf.c
101
options->tcp_keep_alive = -1;
usr.bin/ssh/servconf.c
102
options->log_facility = SYSLOG_FACILITY_NOT_SET;
usr.bin/ssh/servconf.c
103
options->log_level = SYSLOG_LEVEL_NOT_SET;
usr.bin/ssh/servconf.c
104
options->num_log_verbose = 0;
usr.bin/ssh/servconf.c
105
options->log_verbose = NULL;
usr.bin/ssh/servconf.c
106
options->hostbased_authentication = -1;
usr.bin/ssh/servconf.c
107
options->hostbased_uses_name_from_packet_only = -1;
usr.bin/ssh/servconf.c
108
options->hostbased_accepted_algos = NULL;
usr.bin/ssh/servconf.c
109
options->hostkeyalgorithms = NULL;
usr.bin/ssh/servconf.c
110
options->pubkey_authentication = -1;
usr.bin/ssh/servconf.c
111
options->pubkey_auth_options = -1;
usr.bin/ssh/servconf.c
112
options->pubkey_accepted_algos = NULL;
usr.bin/ssh/servconf.c
113
options->kerberos_authentication = -1;
usr.bin/ssh/servconf.c
114
options->kerberos_or_local_passwd = -1;
usr.bin/ssh/servconf.c
115
options->kerberos_ticket_cleanup = -1;
usr.bin/ssh/servconf.c
116
options->kerberos_get_afs_token = -1;
usr.bin/ssh/servconf.c
117
options->gss_authentication=-1;
usr.bin/ssh/servconf.c
118
options->gss_cleanup_creds = -1;
usr.bin/ssh/servconf.c
119
options->gss_deleg_creds = -1;
usr.bin/ssh/servconf.c
120
options->gss_strict_acceptor = -1;
usr.bin/ssh/servconf.c
121
options->password_authentication = -1;
usr.bin/ssh/servconf.c
122
options->kbd_interactive_authentication = -1;
usr.bin/ssh/servconf.c
123
options->permit_empty_passwd = -1;
usr.bin/ssh/servconf.c
124
options->permit_user_env = -1;
usr.bin/ssh/servconf.c
125
options->permit_user_env_allowlist = NULL;
usr.bin/ssh/servconf.c
126
options->compression = -1;
usr.bin/ssh/servconf.c
1263
process_server_config_line_depth(ServerOptions *options, char *line,
usr.bin/ssh/servconf.c
127
options->rekey_limit = -1;
usr.bin/ssh/servconf.c
128
options->rekey_interval = -1;
usr.bin/ssh/servconf.c
129
options->allow_tcp_forwarding = -1;
usr.bin/ssh/servconf.c
130
options->allow_streamlocal_forwarding = -1;
usr.bin/ssh/servconf.c
131
options->allow_agent_forwarding = -1;
usr.bin/ssh/servconf.c
132
options->num_allow_users = 0;
usr.bin/ssh/servconf.c
133
options->num_deny_users = 0;
usr.bin/ssh/servconf.c
134
options->num_allow_groups = 0;
usr.bin/ssh/servconf.c
1342
if (options->ports_from_cmdline) {
usr.bin/ssh/servconf.c
1346
if (options->num_ports >= MAX_PORTS)
usr.bin/ssh/servconf.c
135
options->num_deny_groups = 0;
usr.bin/ssh/servconf.c
1353
options->ports[options->num_ports++] = a2port(arg);
usr.bin/ssh/servconf.c
1354
if (options->ports[options->num_ports-1] <= 0)
usr.bin/ssh/servconf.c
136
options->ciphers = NULL;
usr.bin/ssh/servconf.c
1360
intptr = &options->login_grace_time;
usr.bin/ssh/servconf.c
137
options->macs = NULL;
usr.bin/ssh/servconf.c
138
options->kex_algorithms = NULL;
usr.bin/ssh/servconf.c
139
options->ca_sign_algorithms = NULL;
usr.bin/ssh/servconf.c
140
options->fwd_opts.gateway_ports = -1;
usr.bin/ssh/servconf.c
1407
queue_listen_addr(options, p, arg2, port);
usr.bin/ssh/servconf.c
141
options->fwd_opts.streamlocal_bind_mask = (mode_t)-1;
usr.bin/ssh/servconf.c
1412
intptr = &options->address_family;
usr.bin/ssh/servconf.c
142
options->fwd_opts.streamlocal_bind_unlink = -1;
usr.bin/ssh/servconf.c
143
options->num_subsystems = 0;
usr.bin/ssh/servconf.c
144
options->max_startups_begin = -1;
usr.bin/ssh/servconf.c
1440
options, arg, 1);
usr.bin/ssh/servconf.c
1445
charptr = &options->host_key_agent;
usr.bin/ssh/servconf.c
145
options->max_startups_rate = -1;
usr.bin/ssh/servconf.c
146
options->max_startups = -1;
usr.bin/ssh/servconf.c
1461
servconf_add_hostcert(filename, linenum, options, arg);
usr.bin/ssh/servconf.c
1465
charptr = &options->pid_file;
usr.bin/ssh/servconf.c
147
options->per_source_max_startups = -1;
usr.bin/ssh/servconf.c
148
options->per_source_masklen_ipv4 = -1;
usr.bin/ssh/servconf.c
1480
charptr = &options->moduli_file;
usr.bin/ssh/servconf.c
1484
intptr = &options->permit_root_login;
usr.bin/ssh/servconf.c
1489
intptr = &options->ignore_rhosts;
usr.bin/ssh/servconf.c
149
options->per_source_masklen_ipv6 = -1;
usr.bin/ssh/servconf.c
1494
intptr = &options->ignore_user_known_hosts;
usr.bin/ssh/servconf.c
150
options->per_source_penalty_exempt = NULL;
usr.bin/ssh/servconf.c
1500
intptr = &options->hostbased_authentication;
usr.bin/ssh/servconf.c
1504
intptr = &options->hostbased_uses_name_from_packet_only;
usr.bin/ssh/servconf.c
1508
charptr = &options->hostbased_accepted_algos;
usr.bin/ssh/servconf.c
151
options->per_source_penalty.enabled = -1;
usr.bin/ssh/servconf.c
152
options->per_source_penalty.max_sources4 = -1;
usr.bin/ssh/servconf.c
1525
charptr = &options->hostkeyalgorithms;
usr.bin/ssh/servconf.c
153
options->per_source_penalty.max_sources6 = -1;
usr.bin/ssh/servconf.c
1530
charptr = &options->ca_sign_algorithms;
usr.bin/ssh/servconf.c
1535
intptr = &options->pubkey_authentication;
usr.bin/ssh/servconf.c
154
options->per_source_penalty.overflow_mode = -1;
usr.bin/ssh/servconf.c
1540
charptr = &options->pubkey_accepted_algos;
usr.bin/ssh/servconf.c
1545
intptr = &options->pubkey_auth_options;
usr.bin/ssh/servconf.c
155
options->per_source_penalty.overflow_mode6 = -1;
usr.bin/ssh/servconf.c
156
options->per_source_penalty.penalty_crash = -1.0;
usr.bin/ssh/servconf.c
1565
intptr = &options->kerberos_authentication;
usr.bin/ssh/servconf.c
1569
intptr = &options->kerberos_or_local_passwd;
usr.bin/ssh/servconf.c
157
options->per_source_penalty.penalty_authfail = -1.0;
usr.bin/ssh/servconf.c
1573
intptr = &options->kerberos_ticket_cleanup;
usr.bin/ssh/servconf.c
1577
intptr = &options->kerberos_get_afs_token;
usr.bin/ssh/servconf.c
158
options->per_source_penalty.penalty_invaliduser = -1.0;
usr.bin/ssh/servconf.c
1581
intptr = &options->gss_authentication;
usr.bin/ssh/servconf.c
1585
intptr = &options->gss_cleanup_creds;
usr.bin/ssh/servconf.c
1589
intptr = &options->gss_deleg_creds;
usr.bin/ssh/servconf.c
159
options->per_source_penalty.penalty_noauth = -1.0;
usr.bin/ssh/servconf.c
1593
intptr = &options->gss_strict_acceptor;
usr.bin/ssh/servconf.c
1597
intptr = &options->password_authentication;
usr.bin/ssh/servconf.c
160
options->per_source_penalty.penalty_grace = -1.0;
usr.bin/ssh/servconf.c
1601
intptr = &options->kbd_interactive_authentication;
usr.bin/ssh/servconf.c
1605
intptr = &options->print_motd;
usr.bin/ssh/servconf.c
1609
intptr = &options->print_lastlog;
usr.bin/ssh/servconf.c
161
options->per_source_penalty.penalty_refuseconnection = -1.0;
usr.bin/ssh/servconf.c
1613
intptr = &options->x11_forwarding;
usr.bin/ssh/servconf.c
1617
intptr = &options->x11_display_offset;
usr.bin/ssh/servconf.c
162
options->per_source_penalty.penalty_max = -1.0;
usr.bin/ssh/servconf.c
1628
intptr = &options->x11_use_localhost;
usr.bin/ssh/servconf.c
163
options->per_source_penalty.penalty_min = -1.0;
usr.bin/ssh/servconf.c
1632
charptr = &options->xauth_location;
usr.bin/ssh/servconf.c
1636
intptr = &options->permit_tty;
usr.bin/ssh/servconf.c
164
options->max_authtries = -1;
usr.bin/ssh/servconf.c
1640
intptr = &options->permit_user_rc;
usr.bin/ssh/servconf.c
1644
intptr = &options->strict_modes;
usr.bin/ssh/servconf.c
1648
intptr = &options->tcp_keep_alive;
usr.bin/ssh/servconf.c
165
options->max_sessions = -1;
usr.bin/ssh/servconf.c
1652
intptr = &options->permit_empty_passwd;
usr.bin/ssh/servconf.c
1656
intptr = &options->permit_user_env;
usr.bin/ssh/servconf.c
1657
charptr = &options->permit_user_env_allowlist;
usr.bin/ssh/servconf.c
166
options->banner = NULL;
usr.bin/ssh/servconf.c
167
options->use_dns = -1;
usr.bin/ssh/servconf.c
168
options->client_alive_interval = -1;
usr.bin/ssh/servconf.c
1682
intptr = &options->compression;
usr.bin/ssh/servconf.c
169
options->client_alive_count_max = -1;
usr.bin/ssh/servconf.c
170
options->num_authkeys_files = 0;
usr.bin/ssh/servconf.c
1702
if (*activep && options->rekey_limit == -1)
usr.bin/ssh/servconf.c
1703
options->rekey_limit = val64;
usr.bin/ssh/servconf.c
1709
intptr = &options->rekey_interval;
usr.bin/ssh/servconf.c
171
options->num_accept_env = 0;
usr.bin/ssh/servconf.c
1715
intptr = &options->fwd_opts.gateway_ports;
usr.bin/ssh/servconf.c
172
options->num_setenv = 0;
usr.bin/ssh/servconf.c
1720
intptr = &options->use_dns;
usr.bin/ssh/servconf.c
1724
log_facility_ptr = &options->log_facility;
usr.bin/ssh/servconf.c
173
options->permit_tun = -1;
usr.bin/ssh/servconf.c
1735
log_level_ptr = &options->log_level;
usr.bin/ssh/servconf.c
174
options->permitted_opens = NULL;
usr.bin/ssh/servconf.c
1746
found = options->num_log_verbose == 0;
usr.bin/ssh/servconf.c
175
options->permitted_listens = NULL;
usr.bin/ssh/servconf.c
176
options->adm_forced_command = NULL;
usr.bin/ssh/servconf.c
177
options->chroot_directory = NULL;
usr.bin/ssh/servconf.c
1770
options->log_verbose = strs;
usr.bin/ssh/servconf.c
1771
options->num_log_verbose = nstrs;
usr.bin/ssh/servconf.c
1778
intptr = &options->allow_tcp_forwarding;
usr.bin/ssh/servconf.c
178
options->authorized_keys_command = NULL;
usr.bin/ssh/servconf.c
1783
intptr = &options->allow_streamlocal_forwarding;
usr.bin/ssh/servconf.c
1788
intptr = &options->allow_agent_forwarding;
usr.bin/ssh/servconf.c
179
options->authorized_keys_command_user = NULL;
usr.bin/ssh/servconf.c
1792
intptr = &options->disable_forwarding;
usr.bin/ssh/servconf.c
1796
chararrayptr = &options->allow_users;
usr.bin/ssh/servconf.c
1797
uintptr = &options->num_allow_users;
usr.bin/ssh/servconf.c
180
options->revoked_keys_files = NULL;
usr.bin/ssh/servconf.c
181
options->num_revoked_keys_files = 0;
usr.bin/ssh/servconf.c
1818
chararrayptr = &options->deny_users;
usr.bin/ssh/servconf.c
1819
uintptr = &options->num_deny_users;
usr.bin/ssh/servconf.c
182
options->sk_provider = NULL;
usr.bin/ssh/servconf.c
1823
chararrayptr = &options->allow_groups;
usr.bin/ssh/servconf.c
1824
uintptr = &options->num_allow_groups;
usr.bin/ssh/servconf.c
183
options->trusted_user_ca_keys = NULL;
usr.bin/ssh/servconf.c
184
options->authorized_principals_file = NULL;
usr.bin/ssh/servconf.c
1844
chararrayptr = &options->deny_groups;
usr.bin/ssh/servconf.c
1845
uintptr = &options->num_deny_groups;
usr.bin/ssh/servconf.c
185
options->authorized_principals_command = NULL;
usr.bin/ssh/servconf.c
1857
if (options->ciphers == NULL)
usr.bin/ssh/servconf.c
1858
options->ciphers = xstrdup(arg);
usr.bin/ssh/servconf.c
186
options->authorized_principals_command_user = NULL;
usr.bin/ssh/servconf.c
187
options->ip_qos_interactive = -1;
usr.bin/ssh/servconf.c
1870
if (options->macs == NULL)
usr.bin/ssh/servconf.c
1871
options->macs = xstrdup(arg);
usr.bin/ssh/servconf.c
188
options->ip_qos_bulk = -1;
usr.bin/ssh/servconf.c
1884
if (options->kex_algorithms == NULL)
usr.bin/ssh/servconf.c
1885
options->kex_algorithms = xstrdup(arg);
usr.bin/ssh/servconf.c
189
options->version_addendum = NULL;
usr.bin/ssh/servconf.c
1898
for (i = 0; i < options->num_subsystems; i++) {
usr.bin/ssh/servconf.c
1899
if (strcmp(arg, options->subsystem_name[i]) == 0) {
usr.bin/ssh/servconf.c
190
options->fingerprint_hash = -1;
usr.bin/ssh/servconf.c
191
options->disable_forwarding = -1;
usr.bin/ssh/servconf.c
1910
options->subsystem_name = xrecallocarray(
usr.bin/ssh/servconf.c
1911
options->subsystem_name, options->num_subsystems,
usr.bin/ssh/servconf.c
1912
options->num_subsystems + 1,
usr.bin/ssh/servconf.c
1913
sizeof(*options->subsystem_name));
usr.bin/ssh/servconf.c
1914
options->subsystem_command = xrecallocarray(
usr.bin/ssh/servconf.c
1915
options->subsystem_command, options->num_subsystems,
usr.bin/ssh/servconf.c
1916
options->num_subsystems + 1,
usr.bin/ssh/servconf.c
1917
sizeof(*options->subsystem_command));
usr.bin/ssh/servconf.c
1918
options->subsystem_args = xrecallocarray(
usr.bin/ssh/servconf.c
1919
options->subsystem_args, options->num_subsystems,
usr.bin/ssh/servconf.c
192
options->expose_userauth_info = -1;
usr.bin/ssh/servconf.c
1920
options->num_subsystems + 1,
usr.bin/ssh/servconf.c
1921
sizeof(*options->subsystem_args));
usr.bin/ssh/servconf.c
1922
options->subsystem_name[options->num_subsystems] = xstrdup(arg);
usr.bin/ssh/servconf.c
1923
options->subsystem_command[options->num_subsystems] =
usr.bin/ssh/servconf.c
1928
xasprintf(&options->subsystem_args[options->num_subsystems],
usr.bin/ssh/servconf.c
193
options->required_rsa_size = -1;
usr.bin/ssh/servconf.c
1933
options->num_subsystems++;
usr.bin/ssh/servconf.c
194
options->channel_timeouts = NULL;
usr.bin/ssh/servconf.c
195
options->num_channel_timeouts = 0;
usr.bin/ssh/servconf.c
1957
if (*activep && options->max_startups == -1) {
usr.bin/ssh/servconf.c
1958
options->max_startups_begin = value;
usr.bin/ssh/servconf.c
1959
options->max_startups_rate = value2;
usr.bin/ssh/servconf.c
196
options->unused_connection_timeout = -1;
usr.bin/ssh/servconf.c
1960
options->max_startups = value3;
usr.bin/ssh/servconf.c
197
options->sshd_session_path = NULL;
usr.bin/ssh/servconf.c
198
options->sshd_auth_path = NULL;
usr.bin/ssh/servconf.c
1981
if (*activep && options->per_source_masklen_ipv4 == -1) {
usr.bin/ssh/servconf.c
1982
options->per_source_masklen_ipv4 = value;
usr.bin/ssh/servconf.c
1984
options->per_source_masklen_ipv6 = value2;
usr.bin/ssh/servconf.c
199
options->refuse_connection = -1;
usr.bin/ssh/servconf.c
2000
if (*activep && options->per_source_max_startups == -1)
usr.bin/ssh/servconf.c
2001
options->per_source_max_startups = value;
usr.bin/ssh/servconf.c
2005
charptr = &options->per_source_penalty_exempt;
usr.bin/ssh/servconf.c
2037
options->per_source_penalty.enabled == -1)
usr.bin/ssh/servconf.c
2038
options->per_source_penalty.enabled = value2;
usr.bin/ssh/servconf.c
2041
doubleptr = &options->per_source_penalty.penalty_crash;
usr.bin/ssh/servconf.c
2043
doubleptr = &options->per_source_penalty.penalty_authfail;
usr.bin/ssh/servconf.c
2045
doubleptr = &options->per_source_penalty.penalty_invaliduser;
usr.bin/ssh/servconf.c
2047
doubleptr = &options->per_source_penalty.penalty_noauth;
usr.bin/ssh/servconf.c
2049
doubleptr = &options->per_source_penalty.penalty_grace;
usr.bin/ssh/servconf.c
2051
doubleptr = &options->per_source_penalty.penalty_refuseconnection;
usr.bin/ssh/servconf.c
2053
doubleptr = &options->per_source_penalty.penalty_max;
usr.bin/ssh/servconf.c
2055
doubleptr = &options->per_source_penalty.penalty_min;
usr.bin/ssh/servconf.c
2057
intptr = &options->per_source_penalty.max_sources4;
usr.bin/ssh/servconf.c
2062
intptr = &options->per_source_penalty.max_sources6;
usr.bin/ssh/servconf.c
2067
intptr = &options->per_source_penalty.overflow_mode;
usr.bin/ssh/servconf.c
2070
intptr = &options->per_source_penalty.overflow_mode;
usr.bin/ssh/servconf.c
2073
intptr = &options->per_source_penalty.overflow_mode6;
usr.bin/ssh/servconf.c
2076
intptr = &options->per_source_penalty.overflow_mode6;
usr.bin/ssh/servconf.c
2090
options->per_source_penalty.enabled = 1;
usr.bin/ssh/servconf.c
2095
options->per_source_penalty.enabled = 1;
usr.bin/ssh/servconf.c
2109
intptr = &options->max_authtries;
usr.bin/ssh/servconf.c
2113
intptr = &options->max_sessions;
usr.bin/ssh/servconf.c
2117
charptr = &options->banner;
usr.bin/ssh/servconf.c
2127
uintptr = &options->num_authkeys_files;
usr.bin/ssh/servconf.c
2128
chararrayptr = &options->authorized_keys_files;
usr.bin/ssh/servconf.c
2164
charptr = &options->authorized_principals_file;
usr.bin/ssh/servconf.c
2178
intptr = &options->client_alive_interval;
usr.bin/ssh/servconf.c
2182
intptr = &options->client_alive_count_max;
usr.bin/ssh/servconf.c
2195
&options->accept_env, &options->num_accept_env,
usr.bin/ssh/servconf.c
2205
found = options->num_setenv == 0;
usr.bin/ssh/servconf.c
2223
options->setenv = strs;
usr.bin/ssh/servconf.c
2224
options->num_setenv = nstrs;
usr.bin/ssh/servconf.c
2231
intptr = &options->permit_tun;
usr.bin/ssh/servconf.c
2279
parse_server_config_depth(options,
usr.bin/ssh/servconf.c
2326
parse_server_config_depth(options,
usr.bin/ssh/servconf.c
2365
uintptr = &options->num_permitted_listens;
usr.bin/ssh/servconf.c
2366
chararrayptr = &options->permitted_listens;
usr.bin/ssh/servconf.c
2368
uintptr = &options->num_permitted_opens;
usr.bin/ssh/servconf.c
2369
chararrayptr = &options->permitted_opens;
usr.bin/ssh/servconf.c
2427
if (*activep && options->adm_forced_command == NULL)
usr.bin/ssh/servconf.c
2428
options->adm_forced_command = xstrdup(str + len);
usr.bin/ssh/servconf.c
2433
charptr = &options->chroot_directory;
usr.bin/ssh/servconf.c
2444
charptr = &options->trusted_user_ca_keys;
usr.bin/ssh/servconf.c
2448
uintptr = &options->num_revoked_keys_files;
usr.bin/ssh/servconf.c
2449
chararrayptr = &options->revoked_keys_files;
usr.bin/ssh/servconf.c
2453
charptr = &options->sk_provider;
usr.bin/ssh/servconf.c
2493
if (*activep && options->ip_qos_interactive == -1) {
usr.bin/ssh/servconf.c
2494
options->ip_qos_interactive = value;
usr.bin/ssh/servconf.c
2495
options->ip_qos_bulk = value2;
usr.bin/ssh/servconf.c
2512
if (*activep && options->version_addendum == NULL) {
usr.bin/ssh/servconf.c
2514
options->version_addendum = xstrdup("");
usr.bin/ssh/servconf.c
2516
options->version_addendum = xstrdup(str + len);
usr.bin/ssh/servconf.c
2522
charptr = &options->authorized_keys_command;
usr.bin/ssh/servconf.c
2535
charptr = &options->authorized_keys_command_user;
usr.bin/ssh/servconf.c
254
ServerOptions *options, const char *path, int userprovided)
usr.bin/ssh/servconf.c
2547
charptr = &options->authorized_principals_command;
usr.bin/ssh/servconf.c
2551
charptr = &options->authorized_principals_command_user;
usr.bin/ssh/servconf.c
2555
found = options->num_auth_methods == 0;
usr.bin/ssh/servconf.c
2580
options->auth_methods = strs;
usr.bin/ssh/servconf.c
2581
options->num_auth_methods = nstrs;
usr.bin/ssh/servconf.c
259
&options->host_key_files, &options->host_key_file_userprovided,
usr.bin/ssh/servconf.c
2598
options->fwd_opts.streamlocal_bind_mask = (mode_t)value;
usr.bin/ssh/servconf.c
260
&options->num_host_key_files, apath, userprovided);
usr.bin/ssh/servconf.c
2602
intptr = &options->fwd_opts.streamlocal_bind_unlink;
usr.bin/ssh/servconf.c
2614
options->fingerprint_hash = value;
usr.bin/ssh/servconf.c
2618
intptr = &options->expose_userauth_info;
usr.bin/ssh/servconf.c
2622
charptr = &options->routing_domain;
usr.bin/ssh/servconf.c
2636
intptr = &options->required_rsa_size;
usr.bin/ssh/servconf.c
2640
found = options->num_channel_timeouts == 0;
usr.bin/ssh/servconf.c
266
ServerOptions *options, const char *path)
usr.bin/ssh/servconf.c
2663
options->channel_timeouts = strs;
usr.bin/ssh/servconf.c
2664
options->num_channel_timeouts = nstrs;
usr.bin/ssh/servconf.c
2671
intptr = &options->unused_connection_timeout;
usr.bin/ssh/servconf.c
2682
charptr = &options->sshd_session_path;
usr.bin/ssh/servconf.c
2686
charptr = &options->sshd_auth_path;
usr.bin/ssh/servconf.c
2690
intptr = &options->refuse_connection;
usr.bin/ssh/servconf.c
271
&options->host_cert_files, &options->num_host_cert_files, apath);
usr.bin/ssh/servconf.c
2725
process_server_config_line(ServerOptions *options, char *line,
usr.bin/ssh/servconf.c
2731
return process_server_config_line_depth(options, line, filename,
usr.bin/ssh/servconf.c
276
fill_default_server_options(ServerOptions *options)
usr.bin/ssh/servconf.c
2775
parse_server_match_config(ServerOptions *options,
usr.bin/ssh/servconf.c
2783
copy_set_server_options(options, &mo, 0);
usr.bin/ssh/servconf.c
280
if (options->num_host_key_files == 0) {
usr.bin/ssh/servconf.c
282
servconf_add_hostkey("[default]", 0, options,
usr.bin/ssh/servconf.c
284
servconf_add_hostkey("[default]", 0, options,
usr.bin/ssh/servconf.c
286
servconf_add_hostkey("[default]", 0, options,
usr.bin/ssh/servconf.c
290
if (options->num_ports == 0)
usr.bin/ssh/servconf.c
291
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
usr.bin/ssh/servconf.c
292
if (options->address_family == -1)
usr.bin/ssh/servconf.c
293
options->address_family = AF_UNSPEC;
usr.bin/ssh/servconf.c
294
if (options->listen_addrs == NULL)
usr.bin/ssh/servconf.c
295
add_listen_addr(options, NULL, NULL, 0);
usr.bin/ssh/servconf.c
296
if (options->pid_file == NULL)
usr.bin/ssh/servconf.c
297
options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE);
usr.bin/ssh/servconf.c
298
if (options->moduli_file == NULL)
usr.bin/ssh/servconf.c
2981
parse_server_config_depth(ServerOptions *options, const char *filename,
usr.bin/ssh/servconf.c
299
options->moduli_file = xstrdup(_PATH_DH_MODULI);
usr.bin/ssh/servconf.c
2998
if (process_server_config_line_depth(options, cp,
usr.bin/ssh/servconf.c
300
if (options->login_grace_time == -1)
usr.bin/ssh/servconf.c
301
options->login_grace_time = 120;
usr.bin/ssh/servconf.c
3010
parse_server_config(ServerOptions *options, const char *filename,
usr.bin/ssh/servconf.c
3015
parse_server_config_depth(options, filename, conf, includes,
usr.bin/ssh/servconf.c
3018
process_queued_listen_addrs(options);
usr.bin/ssh/servconf.c
302
if (options->permit_root_login == PERMIT_NOT_SET)
usr.bin/ssh/servconf.c
303
options->permit_root_login = PERMIT_NO_PASSWD;
usr.bin/ssh/servconf.c
304
if (options->ignore_rhosts == -1)
usr.bin/ssh/servconf.c
305
options->ignore_rhosts = 1;
usr.bin/ssh/servconf.c
306
if (options->ignore_user_known_hosts == -1)
usr.bin/ssh/servconf.c
307
options->ignore_user_known_hosts = 0;
usr.bin/ssh/servconf.c
308
if (options->print_motd == -1)
usr.bin/ssh/servconf.c
309
options->print_motd = 1;
usr.bin/ssh/servconf.c
310
if (options->print_lastlog == -1)
usr.bin/ssh/servconf.c
311
options->print_lastlog = 1;
usr.bin/ssh/servconf.c
312
if (options->x11_forwarding == -1)
usr.bin/ssh/servconf.c
313
options->x11_forwarding = 0;
usr.bin/ssh/servconf.c
314
if (options->x11_display_offset == -1)
usr.bin/ssh/servconf.c
315
options->x11_display_offset = 10;
usr.bin/ssh/servconf.c
316
if (options->x11_use_localhost == -1)
usr.bin/ssh/servconf.c
317
options->x11_use_localhost = 1;
usr.bin/ssh/servconf.c
318
if (options->xauth_location == NULL)
usr.bin/ssh/servconf.c
319
options->xauth_location = xstrdup(_PATH_XAUTH);
usr.bin/ssh/servconf.c
320
if (options->permit_tty == -1)
usr.bin/ssh/servconf.c
321
options->permit_tty = 1;
usr.bin/ssh/servconf.c
322
if (options->permit_user_rc == -1)
usr.bin/ssh/servconf.c
323
options->permit_user_rc = 1;
usr.bin/ssh/servconf.c
324
if (options->strict_modes == -1)
usr.bin/ssh/servconf.c
325
options->strict_modes = 1;
usr.bin/ssh/servconf.c
326
if (options->tcp_keep_alive == -1)
usr.bin/ssh/servconf.c
327
options->tcp_keep_alive = 1;
usr.bin/ssh/servconf.c
328
if (options->log_facility == SYSLOG_FACILITY_NOT_SET)
usr.bin/ssh/servconf.c
329
options->log_facility = SYSLOG_FACILITY_AUTH;
usr.bin/ssh/servconf.c
330
if (options->log_level == SYSLOG_LEVEL_NOT_SET)
usr.bin/ssh/servconf.c
331
options->log_level = SYSLOG_LEVEL_INFO;
usr.bin/ssh/servconf.c
332
if (options->hostbased_authentication == -1)
usr.bin/ssh/servconf.c
333
options->hostbased_authentication = 0;
usr.bin/ssh/servconf.c
334
if (options->hostbased_uses_name_from_packet_only == -1)
usr.bin/ssh/servconf.c
335
options->hostbased_uses_name_from_packet_only = 0;
usr.bin/ssh/servconf.c
336
if (options->pubkey_authentication == -1)
usr.bin/ssh/servconf.c
337
options->pubkey_authentication = 1;
usr.bin/ssh/servconf.c
338
if (options->pubkey_auth_options == -1)
usr.bin/ssh/servconf.c
339
options->pubkey_auth_options = 0;
usr.bin/ssh/servconf.c
340
if (options->kerberos_authentication == -1)
usr.bin/ssh/servconf.c
341
options->kerberos_authentication = 0;
usr.bin/ssh/servconf.c
342
if (options->kerberos_or_local_passwd == -1)
usr.bin/ssh/servconf.c
343
options->kerberos_or_local_passwd = 1;
usr.bin/ssh/servconf.c
344
if (options->kerberos_ticket_cleanup == -1)
usr.bin/ssh/servconf.c
345
options->kerberos_ticket_cleanup = 1;
usr.bin/ssh/servconf.c
346
if (options->kerberos_get_afs_token == -1)
usr.bin/ssh/servconf.c
347
options->kerberos_get_afs_token = 0;
usr.bin/ssh/servconf.c
348
if (options->gss_authentication == -1)
usr.bin/ssh/servconf.c
349
options->gss_authentication = 0;
usr.bin/ssh/servconf.c
350
if (options->gss_cleanup_creds == -1)
usr.bin/ssh/servconf.c
351
options->gss_cleanup_creds = 1;
usr.bin/ssh/servconf.c
352
if (options->gss_deleg_creds == -1)
usr.bin/ssh/servconf.c
353
options->gss_deleg_creds = 1;
usr.bin/ssh/servconf.c
354
if (options->gss_strict_acceptor == -1)
usr.bin/ssh/servconf.c
355
options->gss_strict_acceptor = 1;
usr.bin/ssh/servconf.c
356
if (options->password_authentication == -1)
usr.bin/ssh/servconf.c
357
options->password_authentication = 1;
usr.bin/ssh/servconf.c
358
if (options->kbd_interactive_authentication == -1)
usr.bin/ssh/servconf.c
359
options->kbd_interactive_authentication = 1;
usr.bin/ssh/servconf.c
360
if (options->permit_empty_passwd == -1)
usr.bin/ssh/servconf.c
361
options->permit_empty_passwd = 0;
usr.bin/ssh/servconf.c
362
if (options->permit_user_env == -1) {
usr.bin/ssh/servconf.c
363
options->permit_user_env = 0;
usr.bin/ssh/servconf.c
364
options->permit_user_env_allowlist = NULL;
usr.bin/ssh/servconf.c
366
if (options->compression == -1)
usr.bin/ssh/servconf.c
368
options->compression = COMP_DELAYED;
usr.bin/ssh/servconf.c
370
options->compression = COMP_NONE;
usr.bin/ssh/servconf.c
373
if (options->rekey_limit == -1)
usr.bin/ssh/servconf.c
374
options->rekey_limit = 0;
usr.bin/ssh/servconf.c
375
if (options->rekey_interval == -1)
usr.bin/ssh/servconf.c
376
options->rekey_interval = 0;
usr.bin/ssh/servconf.c
377
if (options->allow_tcp_forwarding == -1)
usr.bin/ssh/servconf.c
378
options->allow_tcp_forwarding = FORWARD_ALLOW;
usr.bin/ssh/servconf.c
379
if (options->allow_streamlocal_forwarding == -1)
usr.bin/ssh/servconf.c
380
options->allow_streamlocal_forwarding = FORWARD_ALLOW;
usr.bin/ssh/servconf.c
381
if (options->allow_agent_forwarding == -1)
usr.bin/ssh/servconf.c
382
options->allow_agent_forwarding = 1;
usr.bin/ssh/servconf.c
383
if (options->fwd_opts.gateway_ports == -1)
usr.bin/ssh/servconf.c
384
options->fwd_opts.gateway_ports = 0;
usr.bin/ssh/servconf.c
385
if (options->max_startups == -1)
usr.bin/ssh/servconf.c
386
options->max_startups = 100;
usr.bin/ssh/servconf.c
387
if (options->max_startups_rate == -1)
usr.bin/ssh/servconf.c
388
options->max_startups_rate = 30; /* 30% */
usr.bin/ssh/servconf.c
389
if (options->max_startups_begin == -1)
usr.bin/ssh/servconf.c
390
options->max_startups_begin = 10;
usr.bin/ssh/servconf.c
391
if (options->per_source_max_startups == -1)
usr.bin/ssh/servconf.c
392
options->per_source_max_startups = INT_MAX;
usr.bin/ssh/servconf.c
393
if (options->per_source_masklen_ipv4 == -1)
usr.bin/ssh/servconf.c
394
options->per_source_masklen_ipv4 = 32;
usr.bin/ssh/servconf.c
395
if (options->per_source_masklen_ipv6 == -1)
usr.bin/ssh/servconf.c
396
options->per_source_masklen_ipv6 = 128;
usr.bin/ssh/servconf.c
397
if (options->per_source_penalty.enabled == -1)
usr.bin/ssh/servconf.c
398
options->per_source_penalty.enabled = 1;
usr.bin/ssh/servconf.c
399
if (options->per_source_penalty.max_sources4 == -1)
usr.bin/ssh/servconf.c
400
options->per_source_penalty.max_sources4 = 65536;
usr.bin/ssh/servconf.c
401
if (options->per_source_penalty.max_sources6 == -1)
usr.bin/ssh/servconf.c
402
options->per_source_penalty.max_sources6 = 65536;
usr.bin/ssh/servconf.c
403
if (options->per_source_penalty.overflow_mode == -1)
usr.bin/ssh/servconf.c
404
options->per_source_penalty.overflow_mode = PER_SOURCE_PENALTY_OVERFLOW_PERMISSIVE;
usr.bin/ssh/servconf.c
405
if (options->per_source_penalty.overflow_mode6 == -1)
usr.bin/ssh/servconf.c
406
options->per_source_penalty.overflow_mode6 = options->per_source_penalty.overflow_mode;
usr.bin/ssh/servconf.c
407
if (options->per_source_penalty.penalty_crash < 0.0)
usr.bin/ssh/servconf.c
408
options->per_source_penalty.penalty_crash = 90.0;
usr.bin/ssh/servconf.c
409
if (options->per_source_penalty.penalty_grace < 0.0)
usr.bin/ssh/servconf.c
410
options->per_source_penalty.penalty_grace = 10.0;
usr.bin/ssh/servconf.c
411
if (options->per_source_penalty.penalty_authfail < 0.0)
usr.bin/ssh/servconf.c
412
options->per_source_penalty.penalty_authfail = 5.0;
usr.bin/ssh/servconf.c
413
if (options->per_source_penalty.penalty_invaliduser < 0.0)
usr.bin/ssh/servconf.c
414
options->per_source_penalty.penalty_invaliduser = 5.0;
usr.bin/ssh/servconf.c
415
if (options->per_source_penalty.penalty_noauth < 0.0)
usr.bin/ssh/servconf.c
416
options->per_source_penalty.penalty_noauth = 1.0;
usr.bin/ssh/servconf.c
417
if (options->per_source_penalty.penalty_refuseconnection < 0.0)
usr.bin/ssh/servconf.c
418
options->per_source_penalty.penalty_refuseconnection = 10.0;
usr.bin/ssh/servconf.c
419
if (options->per_source_penalty.penalty_min < 0.0)
usr.bin/ssh/servconf.c
420
options->per_source_penalty.penalty_min = 15.0;
usr.bin/ssh/servconf.c
421
if (options->per_source_penalty.penalty_max < 0.0)
usr.bin/ssh/servconf.c
422
options->per_source_penalty.penalty_max = 600.0;
usr.bin/ssh/servconf.c
423
if (options->max_authtries == -1)
usr.bin/ssh/servconf.c
424
options->max_authtries = DEFAULT_AUTH_FAIL_MAX;
usr.bin/ssh/servconf.c
425
if (options->max_sessions == -1)
usr.bin/ssh/servconf.c
426
options->max_sessions = DEFAULT_SESSIONS_MAX;
usr.bin/ssh/servconf.c
427
if (options->use_dns == -1)
usr.bin/ssh/servconf.c
428
options->use_dns = 0;
usr.bin/ssh/servconf.c
429
if (options->client_alive_interval == -1)
usr.bin/ssh/servconf.c
430
options->client_alive_interval = 0;
usr.bin/ssh/servconf.c
431
if (options->client_alive_count_max == -1)
usr.bin/ssh/servconf.c
432
options->client_alive_count_max = 3;
usr.bin/ssh/servconf.c
433
if (options->num_authkeys_files == 0) {
usr.bin/ssh/servconf.c
435
&options->authorized_keys_files,
usr.bin/ssh/servconf.c
436
&options->num_authkeys_files,
usr.bin/ssh/servconf.c
439
&options->authorized_keys_files,
usr.bin/ssh/servconf.c
440
&options->num_authkeys_files,
usr.bin/ssh/servconf.c
443
if (options->permit_tun == -1)
usr.bin/ssh/servconf.c
444
options->permit_tun = SSH_TUNMODE_NO;
usr.bin/ssh/servconf.c
445
if (options->ip_qos_interactive == -1)
usr.bin/ssh/servconf.c
446
options->ip_qos_interactive = IPTOS_DSCP_EF;
usr.bin/ssh/servconf.c
447
if (options->ip_qos_bulk == -1)
usr.bin/ssh/servconf.c
448
options->ip_qos_bulk = IPTOS_DSCP_CS0;
usr.bin/ssh/servconf.c
449
if (options->version_addendum == NULL)
usr.bin/ssh/servconf.c
450
options->version_addendum = xstrdup("");
usr.bin/ssh/servconf.c
451
if (options->fwd_opts.streamlocal_bind_mask == (mode_t)-1)
usr.bin/ssh/servconf.c
452
options->fwd_opts.streamlocal_bind_mask = 0177;
usr.bin/ssh/servconf.c
453
if (options->fwd_opts.streamlocal_bind_unlink == -1)
usr.bin/ssh/servconf.c
454
options->fwd_opts.streamlocal_bind_unlink = 0;
usr.bin/ssh/servconf.c
455
if (options->fingerprint_hash == -1)
usr.bin/ssh/servconf.c
456
options->fingerprint_hash = SSH_FP_HASH_DEFAULT;
usr.bin/ssh/servconf.c
457
if (options->disable_forwarding == -1)
usr.bin/ssh/servconf.c
458
options->disable_forwarding = 0;
usr.bin/ssh/servconf.c
459
if (options->expose_userauth_info == -1)
usr.bin/ssh/servconf.c
460
options->expose_userauth_info = 0;
usr.bin/ssh/servconf.c
461
if (options->sk_provider == NULL)
usr.bin/ssh/servconf.c
462
options->sk_provider = xstrdup("internal");
usr.bin/ssh/servconf.c
463
if (options->required_rsa_size == -1)
usr.bin/ssh/servconf.c
464
options->required_rsa_size = SSH_RSA_MINIMUM_MODULUS_SIZE;
usr.bin/ssh/servconf.c
465
if (options->unused_connection_timeout == -1)
usr.bin/ssh/servconf.c
466
options->unused_connection_timeout = 0;
usr.bin/ssh/servconf.c
467
if (options->sshd_session_path == NULL)
usr.bin/ssh/servconf.c
468
options->sshd_session_path = xstrdup(_PATH_SSHD_SESSION);
usr.bin/ssh/servconf.c
469
if (options->sshd_auth_path == NULL)
usr.bin/ssh/servconf.c
470
options->sshd_auth_path = xstrdup(_PATH_SSHD_AUTH);
usr.bin/ssh/servconf.c
471
if (options->refuse_connection == -1)
usr.bin/ssh/servconf.c
472
options->refuse_connection = 0;
usr.bin/ssh/servconf.c
474
assemble_algorithms(options);
usr.bin/ssh/servconf.c
485
if (options->nv == 1 && \
usr.bin/ssh/servconf.c
486
strcasecmp(options->v[0], none) == 0) { \
usr.bin/ssh/servconf.c
487
free(options->v[0]); \
usr.bin/ssh/servconf.c
488
free(options->v); \
usr.bin/ssh/servconf.c
489
options->v = NULL; \
usr.bin/ssh/servconf.c
490
options->nv = 0; \
usr.bin/ssh/servconf.c
493
CLEAR_ON_NONE(options->pid_file);
usr.bin/ssh/servconf.c
494
CLEAR_ON_NONE(options->xauth_location);
usr.bin/ssh/servconf.c
495
CLEAR_ON_NONE(options->banner);
usr.bin/ssh/servconf.c
496
CLEAR_ON_NONE(options->trusted_user_ca_keys);
usr.bin/ssh/servconf.c
497
CLEAR_ON_NONE(options->sk_provider);
usr.bin/ssh/servconf.c
498
CLEAR_ON_NONE(options->authorized_principals_file);
usr.bin/ssh/servconf.c
499
CLEAR_ON_NONE(options->adm_forced_command);
usr.bin/ssh/servconf.c
500
CLEAR_ON_NONE(options->chroot_directory);
usr.bin/ssh/servconf.c
501
CLEAR_ON_NONE(options->routing_domain);
usr.bin/ssh/servconf.c
502
CLEAR_ON_NONE(options->host_key_agent);
usr.bin/ssh/servconf.c
503
CLEAR_ON_NONE(options->per_source_penalty_exempt);
usr.bin/ssh/servconf.c
505
for (i = 0; i < options->num_host_key_files; i++)
usr.bin/ssh/servconf.c
506
CLEAR_ON_NONE(options->host_key_files[i]);
usr.bin/ssh/servconf.c
507
for (i = 0; i < options->num_host_cert_files; i++)
usr.bin/ssh/servconf.c
508
CLEAR_ON_NONE(options->host_cert_files[i]);
usr.bin/ssh/servconf.c
64
static void parse_server_config_depth(ServerOptions *options,
usr.bin/ssh/servconf.c
73
initialize_server_options(ServerOptions *options)
usr.bin/ssh/servconf.c
75
memset(options, 0, sizeof(*options));
usr.bin/ssh/servconf.c
76
options->num_ports = 0;
usr.bin/ssh/servconf.c
77
options->ports_from_cmdline = 0;
usr.bin/ssh/servconf.c
774
add_listen_addr(ServerOptions *options, const char *addr,
usr.bin/ssh/servconf.c
78
options->queued_listen_addrs = NULL;
usr.bin/ssh/servconf.c
780
add_one_listen_addr(options, addr, rdomain, port);
usr.bin/ssh/servconf.c
782
for (i = 0; i < options->num_ports; i++) {
usr.bin/ssh/servconf.c
783
add_one_listen_addr(options, addr, rdomain,
usr.bin/ssh/servconf.c
784
options->ports[i]);
usr.bin/ssh/servconf.c
79
options->num_queued_listens = 0;
usr.bin/ssh/servconf.c
790
add_one_listen_addr(ServerOptions *options, const char *addr,
usr.bin/ssh/servconf.c
799
for (i = 0; i < options->num_listen_addrs; i++) {
usr.bin/ssh/servconf.c
80
options->listen_addrs = NULL;
usr.bin/ssh/servconf.c
800
if (rdomain == NULL && options->listen_addrs[i].rdomain == NULL)
usr.bin/ssh/servconf.c
802
if (rdomain == NULL || options->listen_addrs[i].rdomain == NULL)
usr.bin/ssh/servconf.c
804
if (strcmp(rdomain, options->listen_addrs[i].rdomain) == 0)
usr.bin/ssh/servconf.c
807
if (i >= options->num_listen_addrs) {
usr.bin/ssh/servconf.c
81
options->num_listen_addrs = 0;
usr.bin/ssh/servconf.c
811
options->listen_addrs = xrecallocarray(options->listen_addrs,
usr.bin/ssh/servconf.c
812
options->num_listen_addrs, options->num_listen_addrs + 1,
usr.bin/ssh/servconf.c
813
sizeof(*options->listen_addrs));
usr.bin/ssh/servconf.c
814
i = options->num_listen_addrs++;
usr.bin/ssh/servconf.c
816
options->listen_addrs[i].rdomain = xstrdup(rdomain);
usr.bin/ssh/servconf.c
82
options->address_family = -1;
usr.bin/ssh/servconf.c
821
hints.ai_family = options->address_family;
usr.bin/ssh/servconf.c
83
options->routing_domain = NULL;
usr.bin/ssh/servconf.c
831
ai->ai_next = options->listen_addrs[i].addrs;
usr.bin/ssh/servconf.c
832
options->listen_addrs[i].addrs = aitop;
usr.bin/ssh/servconf.c
84
options->num_host_key_files = 0;
usr.bin/ssh/servconf.c
85
options->num_host_cert_files = 0;
usr.bin/ssh/servconf.c
86
options->host_key_agent = NULL;
usr.bin/ssh/servconf.c
869
queue_listen_addr(ServerOptions *options, const char *addr,
usr.bin/ssh/servconf.c
87
options->pid_file = NULL;
usr.bin/ssh/servconf.c
874
options->queued_listen_addrs = xrecallocarray(
usr.bin/ssh/servconf.c
875
options->queued_listen_addrs,
usr.bin/ssh/servconf.c
876
options->num_queued_listens, options->num_queued_listens + 1,
usr.bin/ssh/servconf.c
877
sizeof(*options->queued_listen_addrs));
usr.bin/ssh/servconf.c
878
qla = &options->queued_listen_addrs[options->num_queued_listens++];
usr.bin/ssh/servconf.c
88
options->login_grace_time = -1;
usr.bin/ssh/servconf.c
888
process_queued_listen_addrs(ServerOptions *options)
usr.bin/ssh/servconf.c
89
options->permit_root_login = PERMIT_NOT_SET;
usr.bin/ssh/servconf.c
893
if (options->num_ports == 0)
usr.bin/ssh/servconf.c
894
options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
usr.bin/ssh/servconf.c
895
if (options->address_family == -1)
usr.bin/ssh/servconf.c
896
options->address_family = AF_UNSPEC;
usr.bin/ssh/servconf.c
898
for (i = 0; i < options->num_queued_listens; i++) {
usr.bin/ssh/servconf.c
899
qla = &options->queued_listen_addrs[i];
usr.bin/ssh/servconf.c
90
options->ignore_rhosts = -1;
usr.bin/ssh/servconf.c
900
add_listen_addr(options, qla->addr, qla->rdomain, qla->port);
usr.bin/ssh/servconf.c
904
free(options->queued_listen_addrs);
usr.bin/ssh/servconf.c
905
options->queued_listen_addrs = NULL;
usr.bin/ssh/servconf.c
906
options->num_queued_listens = 0;
usr.bin/ssh/servconf.c
91
options->ignore_user_known_hosts = -1;
usr.bin/ssh/servconf.c
92
options->print_motd = -1;
usr.bin/ssh/servconf.c
93
options->print_lastlog = -1;
usr.bin/ssh/servconf.c
94
options->x11_forwarding = -1;
usr.bin/ssh/servconf.c
95
options->x11_display_offset = -1;
usr.bin/ssh/servconf.c
96
options->x11_use_localhost = -1;
usr.bin/ssh/servconf.c
97
options->permit_tty = -1;
usr.bin/ssh/servconf.c
98
options->permit_user_rc = -1;
usr.bin/ssh/servconf.c
99
options->xauth_location = NULL;
usr.bin/ssh/serverloop.c
114
if (options.client_alive_count_max > 0 &&
usr.bin/ssh/serverloop.c
116
options.client_alive_count_max) {
usr.bin/ssh/serverloop.c
167
if (options.rekey_interval > 0 && !ssh_packet_is_rekeying(ssh)) {
usr.bin/ssh/serverloop.c
176
if (options.unused_connection_timeout != 0) {
usr.bin/ssh/serverloop.c
181
options.unused_connection_timeout;
usr.bin/ssh/serverloop.c
195
if (options.client_alive_interval) {
usr.bin/ssh/serverloop.c
199
ptimeout_deadline_sec(&timeout, options.client_alive_interval);
usr.bin/ssh/serverloop.c
239
now >= last_client_time + options.client_alive_interval) {
usr.bin/ssh/serverloop.c
439
if ((options.allow_tcp_forwarding & FORWARD_LOCAL) != 0 &&
usr.bin/ssh/serverloop.c
441
!options.disable_forwarding) {
usr.bin/ssh/serverloop.c
484
if ((options.allow_streamlocal_forwarding & FORWARD_LOCAL) != 0 &&
usr.bin/ssh/serverloop.c
486
!options.disable_forwarding) {
usr.bin/ssh/serverloop.c
519
if ((options.permit_tun & mode) == 0) {
usr.bin/ssh/serverloop.c
773
(options.allow_tcp_forwarding & FORWARD_REMOTE) == 0 ||
usr.bin/ssh/serverloop.c
775
options.disable_forwarding ||
usr.bin/ssh/serverloop.c
78
extern ServerOptions options;
usr.bin/ssh/serverloop.c
782
&allocated_listen_port, &options.fwd_opts);
usr.bin/ssh/serverloop.c
807
if ((options.allow_streamlocal_forwarding & FORWARD_REMOTE) == 0
usr.bin/ssh/serverloop.c
809
options.disable_forwarding) {
usr.bin/ssh/serverloop.c
816
&fwd, NULL, &options.fwd_opts);
usr.bin/ssh/session.c
1091
if (!in_chroot && options.chroot_directory != NULL &&
usr.bin/ssh/session.c
1092
strcasecmp(options.chroot_directory, "none") != 0) {
usr.bin/ssh/session.c
1093
tmp = tilde_expand_filename(options.chroot_directory,
usr.bin/ssh/session.c
1103
free(options.chroot_directory);
usr.bin/ssh/session.c
1104
options.chroot_directory = NULL;
usr.bin/ssh/session.c
1113
} else if (options.chroot_directory != NULL &&
usr.bin/ssh/session.c
1114
strcasecmp(options.chroot_directory, "none") != 0) {
usr.bin/ssh/session.c
121
extern ServerOptions options;
usr.bin/ssh/session.c
1254
if (options.kerberos_get_afs_token && k_hasafs() &&
usr.bin/ssh/session.c
1365
if (id >= options.max_sessions ||
usr.bin/ssh/session.c
1368
id, options.max_sessions, sessions_nalloc);
usr.bin/ssh/session.c
1388
if (sessions_nalloc >= options.max_sessions)
usr.bin/ssh/session.c
1391
sessions_nalloc, options.max_sessions);
usr.bin/ssh/session.c
1406
sessions_first_unused, options.max_sessions,
usr.bin/ssh/session.c
1547
if (!auth_opts->permit_pty_flag || !options.permit_tty) {
usr.bin/ssh/session.c
1606
for (i = 0; i < options.num_subsystems; i++) {
usr.bin/ssh/session.c
1607
if (strcmp(s->subsys, options.subsystem_name[i]) == 0) {
usr.bin/ssh/session.c
1608
prog = options.subsystem_command[i];
usr.bin/ssh/session.c
1609
cmd = options.subsystem_args[i];
usr.bin/ssh/session.c
1621
options.subsystem_name[i]);
usr.bin/ssh/session.c
1735
for (i = 0; i < options.num_accept_env; i++) {
usr.bin/ssh/session.c
1736
if (match_pattern(name, options.accept_env[i])) {
usr.bin/ssh/session.c
1827
!options.allow_agent_forwarding ||
usr.bin/ssh/session.c
1828
options.disable_forwarding) {
usr.bin/ssh/session.c
2212
if (!options.x11_forwarding || options.disable_forwarding) {
usr.bin/ssh/session.c
2216
if (options.xauth_location == NULL ||
usr.bin/ssh/session.c
2217
(stat(options.xauth_location, &st) == -1)) {
usr.bin/ssh/session.c
2225
if (x11_create_display_inet(ssh, options.x11_display_offset,
usr.bin/ssh/session.c
2226
options.x11_use_localhost, s->single_connection,
usr.bin/ssh/session.c
223
if (!options.expose_userauth_info || info == NULL)
usr.bin/ssh/session.c
2244
if (options.x11_use_localhost) {
usr.bin/ssh/session.c
2286
if (options.kerberos_ticket_cleanup &&
usr.bin/ssh/session.c
2292
if (options.gss_cleanup_creds)
usr.bin/ssh/session.c
259
if ((options.allow_tcp_forwarding & FORWARD_LOCAL) != 0) {
usr.bin/ssh/session.c
274
if ((options.allow_tcp_forwarding & FORWARD_REMOTE) != 0) {
usr.bin/ssh/session.c
303
options.disable_forwarding) {
usr.bin/ssh/session.c
307
if ((options.allow_tcp_forwarding & FORWARD_LOCAL) == 0)
usr.bin/ssh/session.c
311
if ((options.allow_tcp_forwarding & FORWARD_REMOTE) == 0)
usr.bin/ssh/session.c
600
if (options.adm_forced_command) {
usr.bin/ssh/session.c
602
command = options.adm_forced_command;
usr.bin/ssh/session.c
645
if (options.gss_authentication) {
usr.bin/ssh/session.c
707
if (options.print_motd) {
usr.bin/ssh/session.c
850
if (options.permit_user_env) {
usr.bin/ssh/session.c
857
if (options.permit_user_env_allowlist == NULL ||
usr.bin/ssh/session.c
859
options.permit_user_env_allowlist, 0) == 1)
usr.bin/ssh/session.c
868
if (options.permit_user_env) {
usr.bin/ssh/session.c
872
options.permit_user_env_allowlist);
usr.bin/ssh/session.c
876
for (i = 0; i < options.num_setenv; i++) {
usr.bin/ssh/session.c
877
cp = xstrdup(options.setenv[i]);
usr.bin/ssh/session.c
880
fatal("Invalid config SetEnv: %s", options.setenv[i]);
usr.bin/ssh/session.c
936
if (!s->is_subsystem && options.adm_forced_command == NULL &&
usr.bin/ssh/session.c
937
auth_opts->permit_user_rc && options.permit_user_rc &&
usr.bin/ssh/session.c
966
} else if (do_xauth && options.xauth_location != NULL) {
usr.bin/ssh/session.c
971
options.xauth_location, s->auth_display);
usr.bin/ssh/session.c
974
options.xauth_location, s->auth_display,
usr.bin/ssh/session.c
977
if (xasprintf(&cmd, "%s -q -", options.xauth_location) == -1)
usr.bin/ssh/sk-api.h
89
struct sk_option **options, struct sk_enroll_response **enroll_response);
usr.bin/ssh/sk-api.h
94
uint8_t flags, const char *pin, struct sk_option **options,
usr.bin/ssh/sk-api.h
98
int sk_load_resident_keys(const char *pin, struct sk_option **options,
usr.bin/ssh/sk-usbhid.c
1004
options[i]->name);
usr.bin/ssh/sk-usbhid.c
1005
if (options[i]->required) {
usr.bin/ssh/sk-usbhid.c
1018
uint8_t flags, const char *pin, struct sk_option **options,
usr.bin/ssh/sk-usbhid.c
1035
if (check_sign_load_resident_options(options, &device) != 0)
usr.bin/ssh/sk-usbhid.c
1287
sk_load_resident_keys(const char *pin, struct sk_option **options,
usr.bin/ssh/sk-usbhid.c
1301
if (check_sign_load_resident_options(options, &device) != 0)
usr.bin/ssh/sk-usbhid.c
612
check_enroll_options(struct sk_option **options, char **devicep,
usr.bin/ssh/sk-usbhid.c
617
if (options == NULL)
usr.bin/ssh/sk-usbhid.c
619
for (i = 0; options[i] != NULL; i++) {
usr.bin/ssh/sk-usbhid.c
620
if (strcmp(options[i]->name, "device") == 0) {
usr.bin/ssh/sk-usbhid.c
621
if ((*devicep = strdup(options[i]->value)) == NULL) {
usr.bin/ssh/sk-usbhid.c
626
} else if (strcmp(options[i]->name, "user") == 0) {
usr.bin/ssh/sk-usbhid.c
627
if (strlcpy(user_id, options[i]->value, user_id_len) >=
usr.bin/ssh/sk-usbhid.c
636
options[i]->name);
usr.bin/ssh/sk-usbhid.c
637
if (options[i]->required) {
usr.bin/ssh/sk-usbhid.c
708
struct sk_option **options, struct sk_enroll_response **enroll_response)
usr.bin/ssh/sk-usbhid.c
730
if (check_enroll_options(options, &device, user_id,
usr.bin/ssh/sk-usbhid.c
83
struct sk_option **options, struct sk_enroll_response **enroll_response);
usr.bin/ssh/sk-usbhid.c
88
uint8_t flags, const char *pin, struct sk_option **options,
usr.bin/ssh/sk-usbhid.c
92
int sk_load_resident_keys(const char *pin, struct sk_option **options,
usr.bin/ssh/sk-usbhid.c
989
check_sign_load_resident_options(struct sk_option **options, char **devicep)
usr.bin/ssh/sk-usbhid.c
993
if (options == NULL)
usr.bin/ssh/sk-usbhid.c
995
for (i = 0; options[i] != NULL; i++) {
usr.bin/ssh/sk-usbhid.c
996
if (strcmp(options[i]->name, "device") == 0) {
usr.bin/ssh/sk-usbhid.c
997
if ((*devicep = strdup(options[i]->value)) == NULL) {
usr.bin/ssh/ssh-keygen.c
2007
struct sshbuf *options, *option = NULL;
usr.bin/ssh/ssh-keygen.c
2010
if ((options = sshbuf_fromb(optbuf)) == NULL)
usr.bin/ssh/ssh-keygen.c
2012
while (sshbuf_len(options) != 0) {
usr.bin/ssh/ssh-keygen.c
2015
if ((r = sshbuf_get_cstring(options, &name, NULL)) != 0 ||
usr.bin/ssh/ssh-keygen.c
2016
(r = sshbuf_froms(options, &option)) != 0)
usr.bin/ssh/ssh-keygen.c
2050
sshbuf_free(options);
usr.bin/ssh/ssh-keysign.c
176
Options options;
usr.bin/ssh/ssh-keysign.c
215
initialize_options(&options);
usr.bin/ssh/ssh-keysign.c
217
&options, 0, NULL);
usr.bin/ssh/ssh-keysign.c
218
(void)fill_default_options(&options);
usr.bin/ssh/ssh-keysign.c
219
if (options.enable_ssh_keysign != 1)
usr.bin/ssh/ssh-keysign.c
282
if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/ssh.c
1006
add_local_forward(&options, &fwd);
usr.bin/ssh/ssh.c
1017
options.compression = 1;
usr.bin/ssh/ssh.c
1023
if (options.session_type != -1 &&
usr.bin/ssh/ssh.c
1024
options.session_type != SESSION_TYPE_NONE)
usr.bin/ssh/ssh.c
1026
options.session_type = SESSION_TYPE_NONE;
usr.bin/ssh/ssh.c
1027
options.request_tty = REQUEST_TTY_NO;
usr.bin/ssh/ssh.c
1030
options.request_tty = REQUEST_TTY_NO;
usr.bin/ssh/ssh.c
1034
if (process_config_line(&options, pw,
usr.bin/ssh/ssh.c
1041
if (options.session_type != -1 &&
usr.bin/ssh/ssh.c
1042
options.session_type != SESSION_TYPE_SUBSYSTEM)
usr.bin/ssh/ssh.c
1044
options.session_type = SESSION_TYPE_SUBSYSTEM;
usr.bin/ssh/ssh.c
1047
free(options.control_path);
usr.bin/ssh/ssh.c
1048
options.control_path = xstrdup(optarg);
usr.bin/ssh/ssh.c
1051
options.bind_address = optarg;
usr.bin/ssh/ssh.c
1054
options.bind_interface = optarg;
usr.bin/ssh/ssh.c
1078
if (options.user == NULL) {
usr.bin/ssh/ssh.c
1079
options.user = tuser;
usr.bin/ssh/ssh.c
1084
if (options.port == -1 && tport != -1)
usr.bin/ssh/ssh.c
1085
options.port = tport;
usr.bin/ssh/ssh.c
1093
if (options.user == NULL) {
usr.bin/ssh/ssh.c
1094
options.user = p;
usr.bin/ssh/ssh.c
1120
if (options.user != NULL && !ssh_valid_ruser(options.user))
usr.bin/ssh/ssh.c
1125
options.host_arg = xstrdup(host);
usr.bin/ssh/ssh.c
1138
if (options.session_type == SESSION_TYPE_SUBSYSTEM) {
usr.bin/ssh/ssh.c
1163
options.log_level == SYSLOG_LEVEL_NOT_SET ?
usr.bin/ssh/ssh.c
1164
SYSLOG_LEVEL_INFO : options.log_level,
usr.bin/ssh/ssh.c
1165
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
usr.bin/ssh/ssh.c
1166
SYSLOG_FACILITY_USER : options.log_facility,
usr.bin/ssh/ssh.c
1180
process_config_files(options.host_arg, pw, 0, &want_final_pass);
usr.bin/ssh/ssh.c
1185
fill_default_options_for_canonicalization(&options);
usr.bin/ssh/ssh.c
1188
if (options.hostname != NULL) {
usr.bin/ssh/ssh.c
119
Options options;
usr.bin/ssh/ssh.c
1190
cp = percent_expand(options.hostname,
usr.bin/ssh/ssh.c
1194
free(options.hostname);
usr.bin/ssh/ssh.c
1195
options.hostname = xstrdup(host);
usr.bin/ssh/ssh.c
1206
if (options.canonicalize_hostname != SSH_CANONICALISE_NO || was_addr)
usr.bin/ssh/ssh.c
1207
addrs = resolve_canonicalize(&host, options.port);
usr.bin/ssh/ssh.c
1222
direct = option_clear_or_none(options.proxy_command) &&
usr.bin/ssh/ssh.c
1223
option_clear_or_none(options.jump_host);
usr.bin/ssh/ssh.c
1224
if (addrs == NULL && config_has_permitted_cnames(&options) && (direct ||
usr.bin/ssh/ssh.c
1225
options.canonicalize_hostname == SSH_CANONICALISE_ALWAYS)) {
usr.bin/ssh/ssh.c
1226
if ((addrs = resolve_host(host, options.port,
usr.bin/ssh/ssh.c
1239
if (options.canonicalize_hostname != 0 && !want_final_pass) {
usr.bin/ssh/ssh.c
1247
free(options.hostname);
usr.bin/ssh/ssh.c
1248
options.hostname = xstrdup(host);
usr.bin/ssh/ssh.c
1249
process_config_files(options.host_arg, pw, 1, NULL);
usr.bin/ssh/ssh.c
1255
if (addrs != NULL && options.port > 0)
usr.bin/ssh/ssh.c
1256
set_addrinfo_port(addrs, options.port);
usr.bin/ssh/ssh.c
1260
if (fill_default_options(&options) != 0)
usr.bin/ssh/ssh.c
1263
if (options.user == NULL) {
usr.bin/ssh/ssh.c
1265
options.user = xstrdup(pw->pw_name);
usr.bin/ssh/ssh.c
1271
if (options.jump_host != NULL) {
usr.bin/ssh/ssh.c
1273
const char *jumpuser = options.jump_user, *sshbin = argv0;
usr.bin/ssh/ssh.c
1274
int port = options.port, jumpport = options.jump_port;
usr.bin/ssh/ssh.c
1281
jumpuser = options.user;
usr.bin/ssh/ssh.c
1282
if (strcmp(options.jump_host, host) == 0 && port == jumpport &&
usr.bin/ssh/ssh.c
1283
strcmp(options.user, jumpuser) == 0)
usr.bin/ssh/ssh.c
1284
fatal("jumphost loop via %s", options.jump_host);
usr.bin/ssh/ssh.c
1294
if (options.proxy_command != NULL &&
usr.bin/ssh/ssh.c
1295
strcasecmp(options.proxy_command, "none") != 0)
usr.bin/ssh/ssh.c
1298
options.proxy_use_fdpass = 0;
usr.bin/ssh/ssh.c
1299
snprintf(port_s, sizeof(port_s), "%d", options.jump_port);
usr.bin/ssh/ssh.c
1300
xasprintf(&options.proxy_command,
usr.bin/ssh/ssh.c
1304
options.jump_user == NULL ? "" : " -l ",
usr.bin/ssh/ssh.c
1305
options.jump_user == NULL ? "" : options.jump_user,
usr.bin/ssh/ssh.c
1307
options.jump_port <= 0 ? "" : " -p ",
usr.bin/ssh/ssh.c
1308
options.jump_port <= 0 ? "" : port_s,
usr.bin/ssh/ssh.c
1310
options.jump_extra == NULL ? "" : " -J ",
usr.bin/ssh/ssh.c
1311
options.jump_extra == NULL ? "" : options.jump_extra,
usr.bin/ssh/ssh.c
1319
options.jump_host);
usr.bin/ssh/ssh.c
1321
options.proxy_command);
usr.bin/ssh/ssh.c
1324
if (options.port == 0)
usr.bin/ssh/ssh.c
1325
options.port = default_ssh_port();
usr.bin/ssh/ssh.c
1326
channel_set_af(ssh, options.address_family);
usr.bin/ssh/ssh.c
1327
ssh_packet_set_qos(ssh, options.ip_qos_interactive,
usr.bin/ssh/ssh.c
1328
options.ip_qos_bulk);
usr.bin/ssh/ssh.c
1331
if (options.host_key_alias != NULL)
usr.bin/ssh/ssh.c
1332
lowercase(options.host_key_alias);
usr.bin/ssh/ssh.c
1333
if (options.proxy_command != NULL &&
usr.bin/ssh/ssh.c
1334
strcmp(options.proxy_command, "-") == 0 &&
usr.bin/ssh/ssh.c
1335
options.proxy_use_fdpass)
usr.bin/ssh/ssh.c
1337
if (options.update_hostkeys == SSH_UPDATE_HOSTKEYS_ASK) {
usr.bin/ssh/ssh.c
1338
if (options.control_persist && options.control_path != NULL) {
usr.bin/ssh/ssh.c
1341
options.update_hostkeys = 0;
usr.bin/ssh/ssh.c
1343
options.remote_command != NULL ||
usr.bin/ssh/ssh.c
1344
options.request_tty == REQUEST_TTY_NO) {
usr.bin/ssh/ssh.c
1347
options.update_hostkeys = 0;
usr.bin/ssh/ssh.c
1348
} else if (options.log_level < SYSLOG_LEVEL_INFO) {
usr.bin/ssh/ssh.c
1350
options.update_hostkeys = 0;
usr.bin/ssh/ssh.c
1353
if (options.connection_attempts <= 0)
usr.bin/ssh/ssh.c
1356
if (sshbuf_len(command) != 0 && options.remote_command != NULL)
usr.bin/ssh/ssh.c
1360
if (options.fork_after_authentication && sshbuf_len(command) == 0 &&
usr.bin/ssh/ssh.c
1361
options.remote_command == NULL &&
usr.bin/ssh/ssh.c
1362
options.session_type != SESSION_TYPE_NONE)
usr.bin/ssh/ssh.c
1367
log_init(argv0, options.log_level, options.log_facility, !use_syslog);
usr.bin/ssh/ssh.c
1368
for (j = 0; j < options.num_log_verbose; j++) {
usr.bin/ssh/ssh.c
1369
if (strcasecmp(options.log_verbose[j], "none") == 0)
usr.bin/ssh/ssh.c
1371
log_verbose_add(options.log_verbose[j]);
usr.bin/ssh/ssh.c
1374
if (options.request_tty == REQUEST_TTY_YES ||
usr.bin/ssh/ssh.c
1375
options.request_tty == REQUEST_TTY_FORCE)
usr.bin/ssh/ssh.c
1379
if (sshbuf_len(command) == 0 && options.remote_command == NULL)
usr.bin/ssh/ssh.c
1380
tty_flag = options.request_tty != REQUEST_TTY_NO;
usr.bin/ssh/ssh.c
1383
if (options.request_tty == REQUEST_TTY_NO ||
usr.bin/ssh/ssh.c
1385
options.session_type == SESSION_TYPE_NONE)
usr.bin/ssh/ssh.c
1388
if ((!isatty(fileno(stdin)) || options.stdin_null) &&
usr.bin/ssh/ssh.c
1389
options.request_tty != REQUEST_TTY_FORCE) {
usr.bin/ssh/ssh.c
1403
xasprintf(&cinfo->portstr, "%d", options.port);
usr.bin/ssh/ssh.c
1406
cinfo->keyalias = xstrdup(options.host_key_alias ?
usr.bin/ssh/ssh.c
1407
options.host_key_alias : options.host_arg);
usr.bin/ssh/ssh.c
1408
cinfo->host_arg = xstrdup(options.host_arg);
usr.bin/ssh/ssh.c
1412
cinfo->jmphost = xstrdup(options.jump_host == NULL ?
usr.bin/ssh/ssh.c
1413
"" : options.jump_host);
usr.bin/ssh/ssh.c
1421
if ((p = percent_dollar_expand(options.user,
usr.bin/ssh/ssh.c
1425
user_expanded = strcmp(p, options.user) != 0;
usr.bin/ssh/ssh.c
1426
free(options.user);
usr.bin/ssh/ssh.c
1427
options.user = p;
usr.bin/ssh/ssh.c
1437
!ssh_valid_ruser(options.user))
usr.bin/ssh/ssh.c
1441
cinfo->remuser = xstrdup(options.user);
usr.bin/ssh/ssh.c
1450
if (options.remote_command != NULL) {
usr.bin/ssh/ssh.c
1451
debug3("expanding RemoteCommand: %s", options.remote_command);
usr.bin/ssh/ssh.c
1452
cp = options.remote_command;
usr.bin/ssh/ssh.c
1453
options.remote_command = default_client_percent_expand(cp,
usr.bin/ssh/ssh.c
1455
debug3("expanded RemoteCommand: %s", options.remote_command);
usr.bin/ssh/ssh.c
1457
if ((r = sshbuf_put(command, options.remote_command,
usr.bin/ssh/ssh.c
1458
strlen(options.remote_command))) != 0)
usr.bin/ssh/ssh.c
1462
if (options.control_path != NULL) {
usr.bin/ssh/ssh.c
1463
cp = tilde_expand_filename(options.control_path, getuid());
usr.bin/ssh/ssh.c
1464
free(options.control_path);
usr.bin/ssh/ssh.c
1465
options.control_path = default_client_percent_dollar_expand(cp,
usr.bin/ssh/ssh.c
1470
if (options.identity_agent != NULL) {
usr.bin/ssh/ssh.c
1471
p = tilde_expand_filename(options.identity_agent, getuid());
usr.bin/ssh/ssh.c
1474
free(options.identity_agent);
usr.bin/ssh/ssh.c
1475
options.identity_agent = cp;
usr.bin/ssh/ssh.c
1478
for (j = 0; j < options.num_revoked_host_keys; j++) {
usr.bin/ssh/ssh.c
1479
p = tilde_expand_filename(options.revoked_host_keys[j],
usr.bin/ssh/ssh.c
1483
free(options.revoked_host_keys[j]);
usr.bin/ssh/ssh.c
1484
options.revoked_host_keys[j] = cp;
usr.bin/ssh/ssh.c
1487
if (options.forward_agent_sock_path != NULL) {
usr.bin/ssh/ssh.c
1488
p = tilde_expand_filename(options.forward_agent_sock_path,
usr.bin/ssh/ssh.c
1492
free(options.forward_agent_sock_path);
usr.bin/ssh/ssh.c
1493
options.forward_agent_sock_path = cp;
usr.bin/ssh/ssh.c
1494
if (stat(options.forward_agent_sock_path, &st) != 0) {
usr.bin/ssh/ssh.c
1496
options.forward_agent_sock_path, strerror(errno));
usr.bin/ssh/ssh.c
1497
if (options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
1502
if (options.version_addendum != NULL) {
usr.bin/ssh/ssh.c
1504
options.version_addendum, cinfo);
usr.bin/ssh/ssh.c
1505
free(options.version_addendum);
usr.bin/ssh/ssh.c
1506
options.version_addendum = cp;
usr.bin/ssh/ssh.c
1509
if (options.num_system_hostfiles > 0 &&
usr.bin/ssh/ssh.c
1510
strcasecmp(options.system_hostfiles[0], "none") == 0) {
usr.bin/ssh/ssh.c
1511
if (options.num_system_hostfiles > 1)
usr.bin/ssh/ssh.c
1514
free(options.system_hostfiles[0]);
usr.bin/ssh/ssh.c
1515
options.system_hostfiles[0] = NULL;
usr.bin/ssh/ssh.c
1516
options.num_system_hostfiles = 0;
usr.bin/ssh/ssh.c
1519
if (options.num_user_hostfiles > 0 &&
usr.bin/ssh/ssh.c
1520
strcasecmp(options.user_hostfiles[0], "none") == 0) {
usr.bin/ssh/ssh.c
1521
if (options.num_user_hostfiles > 1)
usr.bin/ssh/ssh.c
1524
free(options.user_hostfiles[0]);
usr.bin/ssh/ssh.c
1525
options.user_hostfiles[0] = NULL;
usr.bin/ssh/ssh.c
1526
options.num_user_hostfiles = 0;
usr.bin/ssh/ssh.c
1528
for (j = 0; j < options.num_user_hostfiles; j++) {
usr.bin/ssh/ssh.c
1529
if (options.user_hostfiles[j] == NULL)
usr.bin/ssh/ssh.c
1531
cp = tilde_expand_filename(options.user_hostfiles[j], getuid());
usr.bin/ssh/ssh.c
1533
if (strcmp(options.user_hostfiles[j], p) != 0)
usr.bin/ssh/ssh.c
1535
"'%s'", options.user_hostfiles[j], p);
usr.bin/ssh/ssh.c
1536
free(options.user_hostfiles[j]);
usr.bin/ssh/ssh.c
1538
options.user_hostfiles[j] = p;
usr.bin/ssh/ssh.c
1541
for (j = 0; j < options.num_setenv; j++) {
usr.bin/ssh/ssh.c
1542
char *name = options.setenv[j], *value;
usr.bin/ssh/ssh.c
1558
free(options.setenv[j]);
usr.bin/ssh/ssh.c
1560
options.setenv[j] = p;
usr.bin/ssh/ssh.c
1563
for (i = 0; i < options.num_local_forwards; i++) {
usr.bin/ssh/ssh.c
1564
if (options.local_forwards[i].listen_path != NULL) {
usr.bin/ssh/ssh.c
1565
cp = options.local_forwards[i].listen_path;
usr.bin/ssh/ssh.c
1566
p = options.local_forwards[i].listen_path =
usr.bin/ssh/ssh.c
1573
if (options.local_forwards[i].connect_path != NULL) {
usr.bin/ssh/ssh.c
1574
cp = options.local_forwards[i].connect_path;
usr.bin/ssh/ssh.c
1575
p = options.local_forwards[i].connect_path =
usr.bin/ssh/ssh.c
1584
for (i = 0; i < options.num_remote_forwards; i++) {
usr.bin/ssh/ssh.c
1585
if (options.remote_forwards[i].listen_path != NULL) {
usr.bin/ssh/ssh.c
1586
cp = options.remote_forwards[i].listen_path;
usr.bin/ssh/ssh.c
1587
p = options.remote_forwards[i].listen_path =
usr.bin/ssh/ssh.c
1594
if (options.remote_forwards[i].connect_path != NULL) {
usr.bin/ssh/ssh.c
1595
cp = options.remote_forwards[i].connect_path;
usr.bin/ssh/ssh.c
1596
p = options.remote_forwards[i].connect_path =
usr.bin/ssh/ssh.c
1606
dump_client_config(&options, host);
usr.bin/ssh/ssh.c
1611
if (options.sk_provider != NULL && *options.sk_provider == '$' &&
usr.bin/ssh/ssh.c
1612
strlen(options.sk_provider) > 1) {
usr.bin/ssh/ssh.c
1613
if ((cp = getenv(options.sk_provider + 1)) == NULL) {
usr.bin/ssh/ssh.c
1615
"disabling", options.sk_provider);
usr.bin/ssh/ssh.c
1616
free(options.sk_provider);
usr.bin/ssh/ssh.c
1617
options.sk_provider = NULL;
usr.bin/ssh/ssh.c
1620
options.sk_provider, cp);
usr.bin/ssh/ssh.c
1621
free(options.sk_provider);
usr.bin/ssh/ssh.c
1622
options.sk_provider = xstrdup(cp);
usr.bin/ssh/ssh.c
1626
if (muxclient_command != 0 && options.control_path == NULL)
usr.bin/ssh/ssh.c
1628
if (options.control_path != NULL) {
usr.bin/ssh/ssh.c
1630
if ((sock = muxclient(options.control_path)) >= 0) {
usr.bin/ssh/ssh.c
1641
if (addrs == NULL && options.proxy_command == NULL) {
usr.bin/ssh/ssh.c
1642
debug2("resolving \"%s\" port %d", host, options.port);
usr.bin/ssh/ssh.c
1643
if ((addrs = resolve_host(host, options.port, 1,
usr.bin/ssh/ssh.c
1648
if (options.connection_timeout >= INT_MAX/1000)
usr.bin/ssh/ssh.c
1651
timeout_ms = options.connection_timeout * 1000;
usr.bin/ssh/ssh.c
1655
for (j = 0; j < options.num_channel_timeouts; j++) {
usr.bin/ssh/ssh.c
1657
options.channel_timeouts[j]);
usr.bin/ssh/ssh.c
1658
if (parse_pattern_interval(options.channel_timeouts[j],
usr.bin/ssh/ssh.c
1661
options.channel_timeouts[j]);
usr.bin/ssh/ssh.c
1668
if (ssh_connect(ssh, host, options.host_arg, addrs, &hostaddr,
usr.bin/ssh/ssh.c
1669
options.port, options.connection_attempts,
usr.bin/ssh/ssh.c
1670
&timeout_ms, options.tcp_keep_alive) != 0)
usr.bin/ssh/ssh.c
1674
ssh_packet_set_timeout(ssh, options.server_alive_interval,
usr.bin/ssh/ssh.c
1675
options.server_alive_count_max);
usr.bin/ssh/ssh.c
1687
if (options.hostbased_authentication) {
usr.bin/ssh/ssh.c
1716
if (options.hostbased_authentication == 1) {
usr.bin/ssh/ssh.c
1733
if (options.identity_agent &&
usr.bin/ssh/ssh.c
1734
strcmp(options.identity_agent, SSH_AUTHSOCKET_ENV_NAME) != 0) {
usr.bin/ssh/ssh.c
1735
if (strcmp(options.identity_agent, "none") == 0) {
usr.bin/ssh/ssh.c
1738
cp = options.identity_agent;
usr.bin/ssh/ssh.c
1756
if (options.forward_agent && options.forward_agent_sock_path != NULL) {
usr.bin/ssh/ssh.c
1757
cp = options.forward_agent_sock_path;
usr.bin/ssh/ssh.c
1765
options.forward_agent = 0;
usr.bin/ssh/ssh.c
1773
tilde_expand_paths(options.system_hostfiles,
usr.bin/ssh/ssh.c
1774
options.num_system_hostfiles);
usr.bin/ssh/ssh.c
1775
tilde_expand_paths(options.user_hostfiles, options.num_user_hostfiles);
usr.bin/ssh/ssh.c
1781
options.port, pw, timeout_ms, cinfo);
usr.bin/ssh/ssh.c
1795
for (i = 0; i < options.num_identity_files; i++) {
usr.bin/ssh/ssh.c
1796
free(options.identity_files[i]);
usr.bin/ssh/ssh.c
1797
options.identity_files[i] = NULL;
usr.bin/ssh/ssh.c
1798
if (options.identity_keys[i]) {
usr.bin/ssh/ssh.c
1799
sshkey_free(options.identity_keys[i]);
usr.bin/ssh/ssh.c
1800
options.identity_keys[i] = NULL;
usr.bin/ssh/ssh.c
1803
for (i = 0; i < options.num_certificate_files; i++) {
usr.bin/ssh/ssh.c
1804
free(options.certificate_files[i]);
usr.bin/ssh/ssh.c
1805
options.certificate_files[i] = NULL;
usr.bin/ssh/ssh.c
1809
(void)pkcs11_del_provider(options.pkcs11_provider);
usr.bin/ssh/ssh.c
1821
if (options.control_path != NULL && muxserver_sock != -1)
usr.bin/ssh/ssh.c
1822
unlink(options.control_path);
usr.bin/ssh/ssh.c
1853
options.stdin_null = ostdin_null_flag;
usr.bin/ssh/ssh.c
1854
options.request_tty = orequest_tty;
usr.bin/ssh/ssh.c
1856
options.fork_after_authentication = ofork_after_authentication;
usr.bin/ssh/ssh.c
1857
options.session_type = osession_type;
usr.bin/ssh/ssh.c
1860
options.control_master = SSHCTL_MASTER_NO;
usr.bin/ssh/ssh.c
1861
(void)muxclient(options.control_path);
usr.bin/ssh/ssh.c
1868
setproctitle("%s [mux]", options.control_path);
usr.bin/ssh/ssh.c
1878
options.fork_after_authentication = 0;
usr.bin/ssh/ssh.c
1892
if (options.fork_after_authentication)
usr.bin/ssh/ssh.c
1944
if (options.exit_on_forward_failure) {
usr.bin/ssh/ssh.c
1982
if (options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
1996
if (options.stdio_forward_host == NULL)
usr.bin/ssh/ssh.c
1999
debug3_f("%s:%d", options.stdio_forward_host,
usr.bin/ssh/ssh.c
2000
options.stdio_forward_port);
usr.bin/ssh/ssh.c
2005
if ((c = channel_connect_stdio_fwd(ssh, options.stdio_forward_host,
usr.bin/ssh/ssh.c
2006
options.stdio_forward_port, in, out,
usr.bin/ssh/ssh.c
2056
options.permitted_remote_opens,
usr.bin/ssh/ssh.c
2057
options.num_permitted_remote_opens);
usr.bin/ssh/ssh.c
2059
if (options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
2062
for (i = 0; i < options.num_local_forwards; i++) {
usr.bin/ssh/ssh.c
2065
(options.local_forwards[i].listen_path != NULL) ?
usr.bin/ssh/ssh.c
2066
options.local_forwards[i].listen_path :
usr.bin/ssh/ssh.c
2067
(options.local_forwards[i].listen_host == NULL) ?
usr.bin/ssh/ssh.c
2068
(options.fwd_opts.gateway_ports ? "*" : "LOCALHOST") :
usr.bin/ssh/ssh.c
2069
options.local_forwards[i].listen_host,
usr.bin/ssh/ssh.c
2070
options.local_forwards[i].listen_port,
usr.bin/ssh/ssh.c
2071
(options.local_forwards[i].connect_path != NULL) ?
usr.bin/ssh/ssh.c
2072
options.local_forwards[i].connect_path :
usr.bin/ssh/ssh.c
2073
options.local_forwards[i].connect_host,
usr.bin/ssh/ssh.c
2074
options.local_forwards[i].connect_port);
usr.bin/ssh/ssh.c
2076
&options.local_forwards[i], &options.fwd_opts);
usr.bin/ssh/ssh.c
2078
if (i > 0 && success != i && options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
2084
for (i = 0; i < options.num_remote_forwards; i++) {
usr.bin/ssh/ssh.c
2087
(options.remote_forwards[i].listen_path != NULL) ?
usr.bin/ssh/ssh.c
2088
options.remote_forwards[i].listen_path :
usr.bin/ssh/ssh.c
2089
(options.remote_forwards[i].listen_host == NULL) ?
usr.bin/ssh/ssh.c
2090
"LOCALHOST" : options.remote_forwards[i].listen_host,
usr.bin/ssh/ssh.c
2091
options.remote_forwards[i].listen_port,
usr.bin/ssh/ssh.c
2092
(options.remote_forwards[i].connect_path != NULL) ?
usr.bin/ssh/ssh.c
2093
options.remote_forwards[i].connect_path :
usr.bin/ssh/ssh.c
2094
options.remote_forwards[i].connect_host,
usr.bin/ssh/ssh.c
2095
options.remote_forwards[i].connect_port);
usr.bin/ssh/ssh.c
2096
if ((options.remote_forwards[i].handle =
usr.bin/ssh/ssh.c
2098
&options.remote_forwards[i])) >= 0) {
usr.bin/ssh/ssh.c
2101
&options.remote_forwards[i]);
usr.bin/ssh/ssh.c
2103
} else if (options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
2110
if (options.tun_open != SSH_TUNMODE_NO) {
usr.bin/ssh/ssh.c
2112
options.tun_open, options.tun_local,
usr.bin/ssh/ssh.c
2113
options.tun_remote, ssh_tun_confirm, NULL)) != NULL)
usr.bin/ssh/ssh.c
2115
else if (options.exit_on_forward_failure)
usr.bin/ssh/ssh.c
2131
if (options.forward_agent) {
usr.bin/ssh/ssh.c
2134
options.forward_agent = 0;
usr.bin/ssh/ssh.c
2152
if (display == NULL && options.forward_x11)
usr.bin/ssh/ssh.c
2154
if (options.forward_x11 && client_x11_get_proto(ssh, display,
usr.bin/ssh/ssh.c
2155
options.xauth_location, options.forward_x11_trusted,
usr.bin/ssh/ssh.c
2156
options.forward_x11_timeout, &proto, &data) == 0) {
usr.bin/ssh/ssh.c
2167
if (options.forward_agent)
usr.bin/ssh/ssh.c
2170
if ((term = lookup_env_in_list("TERM", options.setenv,
usr.bin/ssh/ssh.c
2171
options.num_setenv)) == NULL || *term == '\0')
usr.bin/ssh/ssh.c
2174
options.session_type == SESSION_TYPE_SUBSYSTEM, term,
usr.bin/ssh/ssh.c
2185
if (options.stdin_null) {
usr.bin/ssh/ssh.c
2211
if (options.session_type != SESSION_TYPE_NONE)
usr.bin/ssh/ssh.c
2225
if (!options.control_persist)
usr.bin/ssh/ssh.c
2230
if (options.local_command != NULL) {
usr.bin/ssh/ssh.c
2231
debug3("expanding LocalCommand: %s", options.local_command);
usr.bin/ssh/ssh.c
2232
cp = options.local_command;
usr.bin/ssh/ssh.c
2233
options.local_command = percent_expand(cp,
usr.bin/ssh/ssh.c
2237
debug3("expanded LocalCommand: %s", options.local_command);
usr.bin/ssh/ssh.c
2254
if (options.control_persist && muxserver_sock != -1) {
usr.bin/ssh/ssh.c
2255
ostdin_null_flag = options.stdin_null;
usr.bin/ssh/ssh.c
2256
osession_type = options.session_type;
usr.bin/ssh/ssh.c
2257
orequest_tty = options.request_tty;
usr.bin/ssh/ssh.c
2259
ofork_after_authentication = options.fork_after_authentication;
usr.bin/ssh/ssh.c
2260
options.stdin_null = 1;
usr.bin/ssh/ssh.c
2261
options.session_type = SESSION_TYPE_NONE;
usr.bin/ssh/ssh.c
2264
options.stdio_forward_host != NULL))
usr.bin/ssh/ssh.c
2266
options.fork_after_authentication = 1;
usr.bin/ssh/ssh.c
2272
if (options.control_persist && muxserver_sock == -1)
usr.bin/ssh/ssh.c
2275
if (options.session_type != SESSION_TYPE_NONE)
usr.bin/ssh/ssh.c
2279
if (options.control_master == SSHCTL_MASTER_NO &&
usr.bin/ssh/ssh.c
2291
if (options.local_command != NULL &&
usr.bin/ssh/ssh.c
2292
options.permit_local_command)
usr.bin/ssh/ssh.c
2293
ssh_local_cmd(options.local_command);
usr.bin/ssh/ssh.c
2308
if (options.fork_after_authentication) {
usr.bin/ssh/ssh.c
2309
if (options.exit_on_forward_failure &&
usr.bin/ssh/ssh.c
2310
options.num_remote_forwards > 0) {
usr.bin/ssh/ssh.c
2318
options.escape_char : SSH_ESCAPECHAR_NONE, id);
usr.bin/ssh/ssh.c
2352
if (options.pkcs11_provider != NULL &&
usr.bin/ssh/ssh.c
2353
options.num_identity_files < SSH_MAX_IDENTITY_FILES &&
usr.bin/ssh/ssh.c
2354
(pkcs11_init(!options.batch_mode) == 0) &&
usr.bin/ssh/ssh.c
2355
(nkeys = pkcs11_add_provider(options.pkcs11_provider, NULL,
usr.bin/ssh/ssh.c
2371
for (i = 0; i < options.num_identity_files; i++) {
usr.bin/ssh/ssh.c
2373
strcasecmp(options.identity_files[i], "none") == 0) {
usr.bin/ssh/ssh.c
2374
free(options.identity_files[i]);
usr.bin/ssh/ssh.c
2375
options.identity_files[i] = NULL;
usr.bin/ssh/ssh.c
2378
cp = tilde_expand_filename(options.identity_files[i], getuid());
usr.bin/ssh/ssh.c
2385
free(options.identity_files[i]);
usr.bin/ssh/ssh.c
2389
options.identity_file_userprovided[i];
usr.bin/ssh/ssh.c
2397
if (options.num_certificate_files != 0)
usr.bin/ssh/ssh.c
2418
options.identity_file_userprovided[i];
usr.bin/ssh/ssh.c
2422
if (options.num_certificate_files > SSH_MAX_CERTIFICATE_FILES)
usr.bin/ssh/ssh.c
2424
for (i = 0; i < options.num_certificate_files; i++) {
usr.bin/ssh/ssh.c
2425
cp = tilde_expand_filename(options.certificate_files[i],
usr.bin/ssh/ssh.c
2432
free(options.certificate_files[i]);
usr.bin/ssh/ssh.c
2433
options.certificate_files[i] = NULL;
usr.bin/ssh/ssh.c
2448
options.certificate_file_userprovided[i];
usr.bin/ssh/ssh.c
245
hints.ai_family = options.address_family == -1 ?
usr.bin/ssh/ssh.c
2452
options.num_identity_files = n_ids;
usr.bin/ssh/ssh.c
2453
memcpy(options.identity_files, identity_files, sizeof(identity_files));
usr.bin/ssh/ssh.c
2454
memcpy(options.identity_keys, identity_keys, sizeof(identity_keys));
usr.bin/ssh/ssh.c
2455
memcpy(options.identity_file_userprovided,
usr.bin/ssh/ssh.c
2458
options.num_certificate_files = n_certs;
usr.bin/ssh/ssh.c
2459
memcpy(options.certificate_files,
usr.bin/ssh/ssh.c
246
AF_UNSPEC : options.address_family;
usr.bin/ssh/ssh.c
2461
memcpy(options.certificates, certificates, sizeof(certificates));
usr.bin/ssh/ssh.c
2462
memcpy(options.certificate_file_userprovided,
usr.bin/ssh/ssh.c
291
hints.ai_family = options.address_family == -1 ?
usr.bin/ssh/ssh.c
292
AF_UNSPEC : options.address_family;
usr.bin/ssh/ssh.c
322
hints.ai_family = options.address_family == -1 ?
usr.bin/ssh/ssh.c
323
AF_UNSPEC : options.address_family;
usr.bin/ssh/ssh.c
368
if (*cname == '\0' || !config_has_permitted_cnames(&options) ||
usr.bin/ssh/ssh.c
371
if (options.canonicalize_hostname == SSH_CANONICALISE_NO)
usr.bin/ssh/ssh.c
378
options.canonicalize_hostname != SSH_CANONICALISE_ALWAYS)
usr.bin/ssh/ssh.c
381
for (i = 0; i < options.num_permitted_cnames; i++) {
usr.bin/ssh/ssh.c
382
rule = options.permitted_cnames + i;
usr.bin/ssh/ssh.c
434
if (options.canonicalize_hostname == SSH_CANONICALISE_NO)
usr.bin/ssh/ssh.c
441
direct = option_clear_or_none(options.proxy_command) &&
usr.bin/ssh/ssh.c
442
option_clear_or_none(options.jump_host);
usr.bin/ssh/ssh.c
444
options.canonicalize_hostname != SSH_CANONICALISE_ALWAYS)
usr.bin/ssh/ssh.c
464
if (ndots > options.canonicalize_max_dots) {
usr.bin/ssh/ssh.c
466
*hostp, options.canonicalize_max_dots);
usr.bin/ssh/ssh.c
470
for (i = 0; i < options.num_canonical_domains; i++) {
usr.bin/ssh/ssh.c
471
if (strcasecmp(options.canonical_domains[i], "none") == 0)
usr.bin/ssh/ssh.c
474
options.canonical_domains[i]);
usr.bin/ssh/ssh.c
494
if (!options.canonicalize_fallback_local)
usr.bin/ssh/ssh.c
515
options.required_rsa_size)) != 0) {
usr.bin/ssh/ssh.c
522
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
usr.bin/ssh/ssh.c
562
&options,
usr.bin/ssh/ssh.c
572
&options, SSHCONF_CHECKPERM | SSHCONF_USERCONF |
usr.bin/ssh/ssh.c
577
host, host_name, cmd, &options,
usr.bin/ssh/ssh.c
683
initialize_options(&options);
usr.bin/ssh/ssh.c
710
options.address_family = AF_INET;
usr.bin/ssh/ssh.c
713
options.address_family = AF_INET6;
usr.bin/ssh/ssh.c
716
options.stdin_null = 1;
usr.bin/ssh/ssh.c
719
options.fork_after_authentication = 1;
usr.bin/ssh/ssh.c
720
options.stdin_null = 1;
usr.bin/ssh/ssh.c
723
options.forward_x11 = 0;
usr.bin/ssh/ssh.c
726
options.forward_x11 = 1;
usr.bin/ssh/ssh.c
738
options.forward_x11 = 1;
usr.bin/ssh/ssh.c
739
options.forward_x11_trusted = 1;
usr.bin/ssh/ssh.c
742
options.fwd_opts.gateway_ports = 1;
usr.bin/ssh/ssh.c
745
if (options.stdio_forward_host != NULL)
usr.bin/ssh/ssh.c
770
if (options.tag == NULL)
usr.bin/ssh/ssh.c
771
options.tag = xstrdup(optarg);
usr.bin/ssh/ssh.c
826
options.forward_agent = 0;
usr.bin/ssh/ssh.c
829
options.forward_agent = 1;
usr.bin/ssh/ssh.c
832
options.gss_deleg_creds = 0;
usr.bin/ssh/ssh.c
835
options.gss_authentication = 1;
usr.bin/ssh/ssh.c
836
options.gss_deleg_creds = 1;
usr.bin/ssh/ssh.c
845
add_identity_file(&options, NULL, p, 1);
usr.bin/ssh/ssh.c
850
free(options.pkcs11_provider);
usr.bin/ssh/ssh.c
851
options.pkcs11_provider = xstrdup(optarg);
usr.bin/ssh/ssh.c
857
if (options.jump_host != NULL) {
usr.bin/ssh/ssh.c
862
if (options.proxy_command != NULL)
usr.bin/ssh/ssh.c
864
if (parse_jump(optarg, &options, 1, 1) == -1)
usr.bin/ssh/ssh.c
869
if (options.request_tty == REQUEST_TTY_YES)
usr.bin/ssh/ssh.c
870
options.request_tty = REQUEST_TTY_FORCE;
usr.bin/ssh/ssh.c
872
options.request_tty = REQUEST_TTY_YES;
usr.bin/ssh/ssh.c
877
options.log_level = SYSLOG_LEVEL_DEBUG1;
usr.bin/ssh/ssh.c
879
if (options.log_level < SYSLOG_LEVEL_DEBUG3) {
usr.bin/ssh/ssh.c
881
options.log_level++;
usr.bin/ssh/ssh.c
891
if (options.tun_open == -1)
usr.bin/ssh/ssh.c
892
options.tun_open = SSH_TUNMODE_DEFAULT;
usr.bin/ssh/ssh.c
893
options.tun_local = a2tun(optarg, &options.tun_remote);
usr.bin/ssh/ssh.c
894
if (options.tun_local == SSH_TUNID_ERR) {
usr.bin/ssh/ssh.c
901
if (options.stdio_forward_host != NULL)
usr.bin/ssh/ssh.c
906
options.stdio_forward_host =
usr.bin/ssh/ssh.c
909
options.stdio_forward_port = fwd.listen_port;
usr.bin/ssh/ssh.c
917
options.request_tty = REQUEST_TTY_NO;
usr.bin/ssh/ssh.c
918
options.session_type = SESSION_TYPE_NONE;
usr.bin/ssh/ssh.c
921
options.log_level = SYSLOG_LEVEL_QUIET;
usr.bin/ssh/ssh.c
927
options.escape_char = (u_char) optarg[1] & 31;
usr.bin/ssh/ssh.c
929
options.escape_char = (u_char) optarg[0];
usr.bin/ssh/ssh.c
931
options.escape_char = SSH_ESCAPECHAR_NONE;
usr.bin/ssh/ssh.c
945
free(options.ciphers);
usr.bin/ssh/ssh.c
946
options.ciphers = xstrdup(optarg);
usr.bin/ssh/ssh.c
950
free(options.macs);
usr.bin/ssh/ssh.c
951
options.macs = xstrdup(optarg);
usr.bin/ssh/ssh.c
959
if (options.control_master == SSHCTL_MASTER_YES)
usr.bin/ssh/ssh.c
960
options.control_master = SSHCTL_MASTER_ASK;
usr.bin/ssh/ssh.c
962
options.control_master = SSHCTL_MASTER_YES;
usr.bin/ssh/ssh.c
965
if (options.port == -1) {
usr.bin/ssh/ssh.c
966
options.port = a2port(optarg);
usr.bin/ssh/ssh.c
967
if (options.port <= 0) {
usr.bin/ssh/ssh.c
975
if (options.user == NULL) {
usr.bin/ssh/ssh.c
976
options.user = xstrdup(optarg);
usr.bin/ssh/ssh.c
983
add_local_forward(&options, &fwd);
usr.bin/ssh/ssh.c
995
add_remote_forward(&options, &fwd);
usr.bin/ssh/sshconnect.c
1051
options.host_key_alias == NULL ?
usr.bin/ssh/sshconnect.c
1052
hostname : options.host_key_alias,
usr.bin/ssh/sshconnect.c
1053
options.ca_sign_algorithms, &fail_reason) != 0) {
usr.bin/ssh/sshconnect.c
1061
if (options.update_hostkeys != 0) {
usr.bin/ssh/sshconnect.c
1062
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
1068
if (options.update_hostkeys != 0 &&
usr.bin/ssh/sshconnect.c
1074
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
1078
if (options.update_hostkeys != 0 && host_found->note) {
usr.bin/ssh/sshconnect.c
1079
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
1083
if (options.check_host_ip && ip_status == HOST_NEW) {
usr.bin/ssh/sshconnect.c
1089
host_key, options.hash_known_hosts))
usr.bin/ssh/sshconnect.c
1098
} else if (options.visual_host_key) {
usr.bin/ssh/sshconnect.c
1100
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/sshconnect.c
1102
options.fingerprint_hash, SSH_FP_RANDOMART);
usr.bin/ssh/sshconnect.c
1112
if (options.host_key_alias == NULL && port != 0 &&
usr.bin/ssh/sshconnect.c
112
command_string = expand_proxy_command(proxy_command, options.user,
usr.bin/ssh/sshconnect.c
1127
if (options.strict_host_key_checking ==
usr.bin/ssh/sshconnect.c
1137
} else if (options.strict_host_key_checking ==
usr.bin/ssh/sshconnect.c
1151
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/sshconnect.c
1153
options.fingerprint_hash, SSH_FP_RANDOMART);
usr.bin/ssh/sshconnect.c
1158
if (options.visual_host_key)
usr.bin/ssh/sshconnect.c
1160
if (options.verify_host_key_dns) {
usr.bin/ssh/sshconnect.c
1189
if (options.check_host_ip && ip_status == HOST_NEW) {
usr.bin/ssh/sshconnect.c
1192
if (options.hash_known_hosts) {
usr.bin/ssh/sshconnect.c
1195
host, host_key, options.hash_known_hosts) &&
usr.bin/ssh/sshconnect.c
1197
host_key, options.hash_known_hosts);
usr.bin/ssh/sshconnect.c
1202
options.hash_known_hosts);
usr.bin/ssh/sshconnect.c
1206
host_key, options.hash_known_hosts);
usr.bin/ssh/sshconnect.c
1229
if (options.strict_host_key_checking !=
usr.bin/ssh/sshconnect.c
1251
if (options.check_host_ip && host_ip_differ) {
usr.bin/ssh/sshconnect.c
1286
if (options.strict_host_key_checking !=
usr.bin/ssh/sshconnect.c
1299
if (options.password_authentication) {
usr.bin/ssh/sshconnect.c
1302
options.password_authentication = 0;
usr.bin/ssh/sshconnect.c
1305
if (options.kbd_interactive_authentication) {
usr.bin/ssh/sshconnect.c
1308
options.kbd_interactive_authentication = 0;
usr.bin/ssh/sshconnect.c
1311
if (options.forward_agent) {
usr.bin/ssh/sshconnect.c
1314
options.forward_agent = 0;
usr.bin/ssh/sshconnect.c
1317
if (options.forward_x11) {
usr.bin/ssh/sshconnect.c
1320
options.forward_x11 = 0;
usr.bin/ssh/sshconnect.c
1323
if (options.num_local_forwards > 0 ||
usr.bin/ssh/sshconnect.c
1324
options.num_remote_forwards > 0) {
usr.bin/ssh/sshconnect.c
1327
options.num_local_forwards =
usr.bin/ssh/sshconnect.c
1328
options.num_remote_forwards = 0;
usr.bin/ssh/sshconnect.c
1331
if (options.tun_open != SSH_TUNMODE_NO) {
usr.bin/ssh/sshconnect.c
1334
options.tun_open = SSH_TUNMODE_NO;
usr.bin/ssh/sshconnect.c
1337
if (options.update_hostkeys != 0) {
usr.bin/ssh/sshconnect.c
1340
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
1342
if (options.exit_on_forward_failure && cancelled_forwarding)
usr.bin/ssh/sshconnect.c
1359
if (options.check_host_ip && host_status != HOST_CHANGED &&
usr.bin/ssh/sshconnect.c
137
if (!debug_flag && options.control_path != NULL &&
usr.bin/ssh/sshconnect.c
1372
if (options.strict_host_key_checking ==
usr.bin/ssh/sshconnect.c
1378
} else if (options.strict_host_key_checking !=
usr.bin/ssh/sshconnect.c
138
options.control_persist && stdfd_devnull(0, 0, 1) == -1)
usr.bin/ssh/sshconnect.c
1388
if (!hostkey_trusted && options.update_hostkeys) {
usr.bin/ssh/sshconnect.c
1391
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
1438
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
usr.bin/ssh/sshconnect.c
1446
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL) {
usr.bin/ssh/sshconnect.c
1476
for (i = 0; i < options.num_revoked_host_keys; i++) {
usr.bin/ssh/sshconnect.c
1478
options.revoked_host_keys[i]);
usr.bin/ssh/sshconnect.c
1485
options.revoked_host_keys[i]);
usr.bin/ssh/sshconnect.c
1491
fp, options.revoked_host_keys[i]);
usr.bin/ssh/sshconnect.c
1497
if (options.verify_host_key_dns) {
usr.bin/ssh/sshconnect.c
1508
if (options.verify_host_key_dns == 1 &&
usr.bin/ssh/sshconnect.c
1525
r = check_host_key(host, cinfo, hostaddr, options.port, host_key,
usr.bin/ssh/sshconnect.c
1526
RDRW, 0, options.user_hostfiles, options.num_user_hostfiles,
usr.bin/ssh/sshconnect.c
1527
options.system_hostfiles, options.num_system_hostfiles,
usr.bin/ssh/sshconnect.c
1528
options.known_hosts_command);
usr.bin/ssh/sshconnect.c
1567
server_user = options.user ? options.user : local_user;
usr.bin/ssh/sshconnect.c
1575
options.version_addendum)) != 0)
usr.bin/ssh/sshconnect.c
1590
if (!options.kex_algorithms_set && ssh->kex != NULL &&
usr.bin/ssh/sshconnect.c
1591
ssh->kex->name != NULL && options.warn_weak_crypto &&
usr.bin/ssh/sshconnect.c
1620
options.fingerprint_hash, SSH_FP_DEFAULT);
usr.bin/ssh/sshconnect.c
1622
options.fingerprint_hash, SSH_FP_RANDOMART);
usr.bin/ssh/sshconnect.c
1631
if (options.visual_host_key)
usr.bin/ssh/sshconnect.c
1645
fp = sshkey_fingerprint(host_key, options.fingerprint_hash,
usr.bin/ssh/sshconnect.c
1674
if (!options.permit_local_command ||
usr.bin/ssh/sshconnect.c
1710
if (options.add_keys_to_agent == 0)
usr.bin/ssh/sshconnect.c
1718
if (options.add_keys_to_agent == 2 &&
usr.bin/ssh/sshconnect.c
1725
skprovider = options.sk_provider;
usr.bin/ssh/sshconnect.c
1728
options.add_keys_to_agent_lifespan,
usr.bin/ssh/sshconnect.c
1729
(options.add_keys_to_agent == 3), skprovider, NULL, 0)) == 0)
usr.bin/ssh/sshconnect.c
195
command_string = expand_proxy_command(proxy_command, options.user,
usr.bin/ssh/sshconnect.c
220
if (!debug_flag && options.control_path != NULL &&
usr.bin/ssh/sshconnect.c
221
options.control_persist && stdfd_devnull(0, 0, 1) == -1)
usr.bin/ssh/sshconnect.c
293
strcmp(ifa->ifa_name, options.bind_interface) != 0)
usr.bin/ssh/sshconnect.c
349
if (options.ip_qos_interactive != INT_MAX)
usr.bin/ssh/sshconnect.c
350
set_sock_tos(sock, options.ip_qos_interactive);
usr.bin/ssh/sshconnect.c
353
if (options.bind_address == NULL && options.bind_interface == NULL)
usr.bin/ssh/sshconnect.c
356
if (options.bind_address != NULL) {
usr.bin/ssh/sshconnect.c
362
if ((r = getaddrinfo(options.bind_address, NULL,
usr.bin/ssh/sshconnect.c
364
error("getaddrinfo: %s: %s", options.bind_address,
usr.bin/ssh/sshconnect.c
374
} else if (options.bind_interface != NULL) {
usr.bin/ssh/sshconnect.c
376
error("getifaddrs: %s: %s", options.bind_interface,
usr.bin/ssh/sshconnect.c
381
if (check_ifaddrs(options.bind_interface, ai->ai_family,
usr.bin/ssh/sshconnect.c
384
options.bind_interface);
usr.bin/ssh/sshconnect.c
458
if (options.address_family != AF_UNSPEC &&
usr.bin/ssh/sshconnect.c
459
ai->ai_family != options.address_family) {
usr.bin/ssh/sshconnect.c
525
if (options.proxy_command == NULL) {
usr.bin/ssh/sshconnect.c
528
} else if (strcmp(options.proxy_command, "-") == 0) {
usr.bin/ssh/sshconnect.c
539
} else if (options.proxy_use_fdpass) {
usr.bin/ssh/sshconnect.c
541
options.proxy_command);
usr.bin/ssh/sshconnect.c
544
options.proxy_command);
usr.bin/ssh/sshconnect.c
556
if (options.batch_mode)
usr.bin/ssh/sshconnect.c
605
if (options.proxy_command == NULL) {
usr.bin/ssh/sshconnect.c
623
if (options.host_key_alias != NULL) {
usr.bin/ssh/sshconnect.c
624
*hostfile_hostname = xstrdup(options.host_key_alias);
usr.bin/ssh/sshconnect.c
64
extern Options options;
usr.bin/ssh/sshconnect.c
686
const char *hostkeyalgs = options.hostkeyalgorithms;
usr.bin/ssh/sshconnect.c
76
const char *keyalias = options.host_key_alias ?
usr.bin/ssh/sshconnect.c
77
options.host_key_alias : host_arg;
usr.bin/ssh/sshconnect.c
844
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/sshconnect.c
86
"r", options.user,
usr.bin/ssh/sshconnect.c
943
if (options.no_host_authentication_for_localhost == 1 && local &&
usr.bin/ssh/sshconnect.c
944
options.host_key_alias == NULL) {
usr.bin/ssh/sshconnect.c
947
options.update_hostkeys = 0;
usr.bin/ssh/sshconnect.c
973
if (options.check_host_ip && (local ||
usr.bin/ssh/sshconnect.c
974
strcmp(hostname, ip) == 0 || options.proxy_command != NULL))
usr.bin/ssh/sshconnect.c
975
options.check_host_ip = 0;
usr.bin/ssh/sshconnect.c
988
if (!want_cert && options.check_host_ip) {
usr.bin/ssh/sshconnect2.c
1032
const char *host = options.host_key_alias ? options.host_key_alias :
usr.bin/ssh/sshconnect2.c
1036
if (authctxt->attempt_passwd++ >= options.number_of_password_prompts)
usr.bin/ssh/sshconnect2.c
1082
host = options.host_key_alias ? options.host_key_alias : authctxt->host;
usr.bin/ssh/sshconnect2.c
1167
options.pubkey_accepted_algos, NULL);
usr.bin/ssh/sshconnect2.c
1184
oallowed = allowed = xstrdup(options.pubkey_accepted_algos);
usr.bin/ssh/sshconnect2.c
1244
options.fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
usr.bin/ssh/sshconnect2.c
1246
notifier = notify_start(options.batch_mode,
usr.bin/ssh/sshconnect2.c
1252
alg, options.sk_provider, pin, compat)) != 0) {
usr.bin/ssh/sshconnect2.c
128
for (i = 0; i < options.num_user_hostfiles; i++)
usr.bin/ssh/sshconnect2.c
129
load_hostkeys(hostkeys, hostname, options.user_hostfiles[i], 0);
usr.bin/ssh/sshconnect2.c
130
for (i = 0; i < options.num_system_hostfiles; i++) {
usr.bin/ssh/sshconnect2.c
132
options.system_hostfiles[i], 0);
usr.bin/ssh/sshconnect2.c
1322
(options.pubkey_authentication & SSH_PUBKEY_AUTH_HBOUND) != 0) {
usr.bin/ssh/sshconnect2.c
1327
if ((fp = sshkey_fingerprint(id->key, options.fingerprint_hash,
usr.bin/ssh/sshconnect2.c
134
if (options.known_hosts_command != NULL) {
usr.bin/ssh/sshconnect2.c
135
load_hostkeys_command(hostkeys, options.known_hosts_command,
usr.bin/ssh/sshconnect2.c
145
best = first_alg(options.hostkeyalgorithms);
usr.bin/ssh/sshconnect2.c
151
ret = xstrdup(options.hostkeyalgorithms);
usr.bin/ssh/sshconnect2.c
1534
for (i = 0; i <= options.number_of_password_prompts; i++) {
usr.bin/ssh/sshconnect2.c
1550
if (options.batch_mode) {
usr.bin/ssh/sshconnect2.c
1570
options.sk_provider == NULL) {
usr.bin/ssh/sshconnect2.c
1578
options.required_rsa_size)) != 0) {
usr.bin/ssh/sshconnect2.c
159
oavail = avail = xstrdup(options.hostkeyalgorithms);
usr.bin/ssh/sshconnect2.c
1626
return key_type_allowed(key, options.pubkey_accepted_algos);
usr.bin/ssh/sshconnect2.c
1685
for (i = 0; i < options.num_identity_files; i++) {
usr.bin/ssh/sshconnect2.c
1686
key = options.identity_keys[i];
usr.bin/ssh/sshconnect2.c
1690
"certificate", options.identity_files[i]);
usr.bin/ssh/sshconnect2.c
1693
if (key && sshkey_is_sk(key) && options.sk_provider == NULL) {
usr.bin/ssh/sshconnect2.c
1696
options.identity_files[i]);
usr.bin/ssh/sshconnect2.c
1699
options.identity_keys[i] = NULL;
usr.bin/ssh/sshconnect2.c
1703
id->filename = xstrdup(options.identity_files[i]);
usr.bin/ssh/sshconnect2.c
1704
id->userprovided = options.identity_file_userprovided[i];
usr.bin/ssh/sshconnect2.c
1708
for (i = 0; i < options.num_certificate_files; i++) {
usr.bin/ssh/sshconnect2.c
1709
key = options.certificates[i];
usr.bin/ssh/sshconnect2.c
1713
"certificate", options.identity_files[i]);
usr.bin/ssh/sshconnect2.c
1716
if (key && sshkey_is_sk(key) && options.sk_provider == NULL) {
usr.bin/ssh/sshconnect2.c
1720
options.identity_files[i]);
usr.bin/ssh/sshconnect2.c
1726
id->filename = xstrdup(options.certificate_files[i]);
usr.bin/ssh/sshconnect2.c
1727
id->userprovided = options.certificate_file_userprovided[i];
usr.bin/ssh/sshconnect2.c
1734
options.required_rsa_size)) != 0) {
usr.bin/ssh/sshconnect2.c
1753
if (!found && !options.identities_only) {
usr.bin/ssh/sshconnect2.c
1786
if (!found && options.identities_only) {
usr.bin/ssh/sshconnect2.c
1913
if (authctxt->attempt_kbdint++ >= options.number_of_password_prompts)
usr.bin/ssh/sshconnect2.c
1928
(r = sshpkt_put_cstring(ssh, options.kbd_interactive_devices ?
usr.bin/ssh/sshconnect2.c
1929
options.kbd_interactive_devices : "")) != 0 ||
usr.bin/ssh/sshconnect2.c
1989
authctxt->server_user, options.host_key_alias ?
usr.bin/ssh/sshconnect2.c
1990
options.host_key_alias : authctxt->host, prompt) == -1)
usr.bin/ssh/sshconnect2.c
2144
authctxt->oktypes = xstrdup(options.hostbased_accepted_algos);
usr.bin/ssh/sshconnect2.c
2189
if ((fp = sshkey_fingerprint(private, options.fingerprint_hash,
usr.bin/ssh/sshconnect2.c
224
if (options.rekey_limit || options.rekey_interval)
usr.bin/ssh/sshconnect2.c
225
ssh_packet_set_rekey_limits(ssh, options.rekey_limit,
usr.bin/ssh/sshconnect2.c
226
options.rekey_interval);
usr.bin/ssh/sshconnect2.c
2317
authlist = options.preferred_authentications;
usr.bin/ssh/sshconnect2.c
2323
preferred = options.preferred_authentications;
usr.bin/ssh/sshconnect2.c
233
if (options.hostkeyalgorithms == NULL ||
usr.bin/ssh/sshconnect2.c
234
options.hostkeyalgorithms[0] == '-' ||
usr.bin/ssh/sshconnect2.c
235
options.hostkeyalgorithms[0] == '+')
usr.bin/ssh/sshconnect2.c
240
if ((r = kex_assemble_names(&options.hostkeyalgorithms,
usr.bin/ssh/sshconnect2.c
249
options.kex_algorithms, options.ciphers, options.macs,
usr.bin/ssh/sshconnect2.c
250
compression_alg_list(options.compression),
usr.bin/ssh/sshconnect2.c
251
hkalgs ? hkalgs : options.hostkeyalgorithms);
usr.bin/ssh/sshconnect2.c
384
&options.gss_authentication,
usr.bin/ssh/sshconnect2.c
390
&options.hostbased_authentication,
usr.bin/ssh/sshconnect2.c
395
&options.pubkey_authentication,
usr.bin/ssh/sshconnect2.c
400
&options.kbd_interactive_authentication,
usr.bin/ssh/sshconnect2.c
401
&options.batch_mode},
usr.bin/ssh/sshconnect2.c
405
&options.password_authentication,
usr.bin/ssh/sshconnect2.c
406
&options.batch_mode},
usr.bin/ssh/sshconnect2.c
422
if (options.preferred_authentications == NULL)
usr.bin/ssh/sshconnect2.c
423
options.preferred_authentications = authmethods_get();
usr.bin/ssh/sshconnect2.c
572
if (len > 0 && options.log_level >= SYSLOG_LEVEL_INFO)
usr.bin/ssh/sshconnect2.c
654
fp = sshkey_fingerprint(id->key, options.fingerprint_hash,
usr.bin/ssh/sshconnect2.c
722
fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/sshconnect2.c
73
extern Options options;
usr.bin/ssh/sshconnect2.c
824
status = ssh_gssapi_init_ctx(gssctxt, options.gss_deleg_creds,
usr.bin/ssh/sshconnect2.c
90
options.required_rsa_size)) != 0)
usr.bin/ssh/sshconnect2.c
92
if (!key_type_allowed(hostkey, options.hostkeyalgorithms)) {
usr.bin/ssh/sshconnect2.c
981
(void)ssh_gssapi_init_ctx(gssctxt, options.gss_deleg_creds,
usr.bin/ssh/sshd-auth.c
105
ServerOptions options;
usr.bin/ssh/sshd-auth.c
209
if (match_pattern_list(s, options.hostkeyalgorithms, 0) != 1) {
usr.bin/ssh/sshd-auth.c
227
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-auth.c
277
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-auth.c
324
if (ind < 0 || (u_int)ind >= options.num_host_key_files)
usr.bin/ssh/sshd-auth.c
334
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-auth.c
448
initialize_server_options(&options);
usr.bin/ssh/sshd-auth.c
455
options.address_family = AF_INET;
usr.bin/ssh/sshd-auth.c
458
options.address_family = AF_INET6;
usr.bin/ssh/sshd-auth.c
465
&options, optarg);
usr.bin/ssh/sshd-auth.c
470
options.log_level = SYSLOG_LEVEL_DEBUG1;
usr.bin/ssh/sshd-auth.c
471
} else if (options.log_level < SYSLOG_LEVEL_DEBUG3)
usr.bin/ssh/sshd-auth.c
472
options.log_level++;
usr.bin/ssh/sshd-auth.c
492
options.log_level = SYSLOG_LEVEL_QUIET;
usr.bin/ssh/sshd-auth.c
498
options.ports_from_cmdline = 1;
usr.bin/ssh/sshd-auth.c
499
if (options.num_ports >= MAX_PORTS) {
usr.bin/ssh/sshd-auth.c
503
options.ports[options.num_ports++] = a2port(optarg);
usr.bin/ssh/sshd-auth.c
504
if (options.ports[options.num_ports-1] <= 0) {
usr.bin/ssh/sshd-auth.c
510
if ((options.login_grace_time = convtime(optarg)) == -1) {
usr.bin/ssh/sshd-auth.c
520
&options, optarg, 1);
usr.bin/ssh/sshd-auth.c
542
if (process_server_config_line(&options, line,
usr.bin/ssh/sshd-auth.c
561
options.log_level == SYSLOG_LEVEL_NOT_SET ?
usr.bin/ssh/sshd-auth.c
562
SYSLOG_LEVEL_INFO : options.log_level,
usr.bin/ssh/sshd-auth.c
563
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
usr.bin/ssh/sshd-auth.c
564
SYSLOG_FACILITY_AUTH : options.log_facility, 1);
usr.bin/ssh/sshd-auth.c
611
parse_server_config(&options, "rexec", cfg, &includes, NULL, 1);
usr.bin/ssh/sshd-auth.c
613
fill_default_server_options(&options);
usr.bin/ssh/sshd-auth.c
614
options.timing_secret = timing_secret; /* XXX eliminate from unpriv */
usr.bin/ssh/sshd-auth.c
615
ssh_packet_set_qos(ssh, options.ip_qos_interactive,
usr.bin/ssh/sshd-auth.c
616
options.ip_qos_bulk);
usr.bin/ssh/sshd-auth.c
619
log_init(__progname, options.log_level, options.log_facility, 1);
usr.bin/ssh/sshd-auth.c
625
if (options.moduli_file != NULL)
usr.bin/ssh/sshd-auth.c
626
dh_set_moduli_file(options.moduli_file);
usr.bin/ssh/sshd-auth.c
629
if (options.host_key_agent) {
usr.bin/ssh/sshd-auth.c
630
if (strcmp(options.host_key_agent, SSH_AUTHSOCKET_ENV_NAME))
usr.bin/ssh/sshd-auth.c
632
options.host_key_agent, 1);
usr.bin/ssh/sshd-auth.c
637
options.host_key_agent);
usr.bin/ssh/sshd-auth.c
640
if (options.num_host_key_files != num_hostkeys) {
usr.bin/ssh/sshd-auth.c
642
options.num_host_key_files, num_hostkeys);
usr.bin/ssh/sshd-auth.c
645
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-auth.c
659
log_init(__progname, options.log_level, options.log_facility, 1);
usr.bin/ssh/sshd-auth.c
661
for (i = 0; i < options.num_log_verbose; i++)
usr.bin/ssh/sshd-auth.c
662
log_verbose_add(options.log_verbose[i]);
usr.bin/ssh/sshd-auth.c
687
channel_set_af(ssh, options.address_family);
usr.bin/ssh/sshd-auth.c
737
data, dlen, alg, options.sk_provider, NULL,
usr.bin/ssh/sshd-auth.c
742
data, dlen, alg, options.sk_provider, NULL,
usr.bin/ssh/sshd-auth.c
758
if (options.rekey_limit || options.rekey_interval)
usr.bin/ssh/sshd-auth.c
759
ssh_packet_set_rekey_limits(ssh, options.rekey_limit,
usr.bin/ssh/sshd-auth.c
760
options.rekey_interval);
usr.bin/ssh/sshd-auth.c
762
if (options.compression == COMP_NONE)
usr.bin/ssh/sshd-auth.c
766
kex_proposal_populate_entries(ssh, myproposal, options.kex_algorithms,
usr.bin/ssh/sshd-auth.c
767
options.ciphers, options.macs, compression, hkalgs);
usr.bin/ssh/sshd-auth.c
772
options.version_addendum)) != 0)
usr.bin/ssh/sshd-auth.c
782
kex_set_server_sig_algs(ssh, options.pubkey_accepted_algos);
usr.bin/ssh/sshd-session.c
1013
log_init(__progname, options.log_level,
usr.bin/ssh/sshd-session.c
1014
options.log_facility, log_stderr);
usr.bin/ssh/sshd-session.c
1015
for (i = 0; i < options.num_log_verbose; i++)
usr.bin/ssh/sshd-session.c
1016
log_verbose_add(options.log_verbose[i]);
usr.bin/ssh/sshd-session.c
1019
log_init(__progname, options.log_level, options.log_facility, log_stderr);
usr.bin/ssh/sshd-session.c
104
ServerOptions options;
usr.bin/ssh/sshd-session.c
1075
ssh_packet_set_qos(ssh, options.ip_qos_interactive,
usr.bin/ssh/sshd-session.c
1076
options.ip_qos_bulk);
usr.bin/ssh/sshd-session.c
1082
channel_set_af(ssh, options.address_family);
usr.bin/ssh/sshd-session.c
1087
if (options.tcp_keep_alive && ssh_packet_connection_is_on_socket(ssh) &&
usr.bin/ssh/sshd-session.c
1123
if (!debug_flag && options.login_grace_time > 0) {
usr.bin/ssh/sshd-session.c
1127
itv.it_value.tv_sec = options.login_grace_time;
usr.bin/ssh/sshd-session.c
1175
if (options.routing_domain != NULL)
usr.bin/ssh/sshd-session.c
1176
set_process_rdomain(ssh, options.routing_domain);
usr.bin/ssh/sshd-session.c
1185
ssh_packet_set_timeout(ssh, options.client_alive_interval,
usr.bin/ssh/sshd-session.c
1186
options.client_alive_count_max);
usr.bin/ssh/sshd-session.c
1214
data, dlen, alg, options.sk_provider, NULL,
usr.bin/ssh/sshd-session.c
1219
data, dlen, alg, options.sk_provider, NULL,
usr.bin/ssh/sshd-session.c
217
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
237
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
261
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
347
saved_argv[0] = options.sshd_auth_path;
usr.bin/ssh/sshd-session.c
348
execv(options.sshd_auth_path, saved_argv);
usr.bin/ssh/sshd-session.c
351
options.sshd_auth_path, strerror(errno));
usr.bin/ssh/sshd-session.c
401
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
449
if (ind < 0 || (u_int)ind >= options.num_host_key_files)
usr.bin/ssh/sshd-session.c
457
if (ind < 0 || (u_int)ind >= options.num_host_key_files)
usr.bin/ssh/sshd-session.c
467
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
504
for (i = nkeys = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd-session.c
509
fp = sshkey_fingerprint(key, options.fingerprint_hash,
usr.bin/ssh/sshd-session.c
760
initialize_server_options(&options);
usr.bin/ssh/sshd-session.c
767
options.address_family = AF_INET;
usr.bin/ssh/sshd-session.c
770
options.address_family = AF_INET6;
usr.bin/ssh/sshd-session.c
777
&options, optarg);
usr.bin/ssh/sshd-session.c
782
options.log_level = SYSLOG_LEVEL_DEBUG1;
usr.bin/ssh/sshd-session.c
783
} else if (options.log_level < SYSLOG_LEVEL_DEBUG3)
usr.bin/ssh/sshd-session.c
784
options.log_level++;
usr.bin/ssh/sshd-session.c
808
options.log_level = SYSLOG_LEVEL_QUIET;
usr.bin/ssh/sshd-session.c
814
options.ports_from_cmdline = 1;
usr.bin/ssh/sshd-session.c
815
if (options.num_ports >= MAX_PORTS) {
usr.bin/ssh/sshd-session.c
819
options.ports[options.num_ports++] = a2port(optarg);
usr.bin/ssh/sshd-session.c
820
if (options.ports[options.num_ports-1] <= 0) {
usr.bin/ssh/sshd-session.c
826
if ((options.login_grace_time = convtime(optarg)) == -1) {
usr.bin/ssh/sshd-session.c
836
&options, optarg, 1);
usr.bin/ssh/sshd-session.c
858
if (process_server_config_line(&options, line,
usr.bin/ssh/sshd-session.c
910
options.log_level == SYSLOG_LEVEL_NOT_SET ?
usr.bin/ssh/sshd-session.c
911
SYSLOG_LEVEL_INFO : options.log_level,
usr.bin/ssh/sshd-session.c
912
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
usr.bin/ssh/sshd-session.c
913
SYSLOG_FACILITY_AUTH : options.log_facility,
usr.bin/ssh/sshd-session.c
921
parse_server_config(&options, "rexec", cfg, &includes, NULL, 1);
usr.bin/ssh/sshd-session.c
923
fill_default_server_options(&options);
usr.bin/ssh/sshd-session.c
924
options.timing_secret = timing_secret;
usr.bin/ssh/sshd-session.c
927
log_init(__progname, options.log_level, options.log_facility,
usr.bin/ssh/sshd-session.c
947
if (options.authorized_keys_command_user == NULL &&
usr.bin/ssh/sshd-session.c
948
(options.authorized_keys_command != NULL &&
usr.bin/ssh/sshd-session.c
949
strcasecmp(options.authorized_keys_command, "none") != 0))
usr.bin/ssh/sshd-session.c
952
if (options.authorized_principals_command_user == NULL &&
usr.bin/ssh/sshd-session.c
953
(options.authorized_principals_command != NULL &&
usr.bin/ssh/sshd-session.c
954
strcasecmp(options.authorized_principals_command, "none") != 0))
usr.bin/ssh/sshd-session.c
964
if (options.num_auth_methods != 0) {
usr.bin/ssh/sshd-session.c
965
for (i = 0; i < options.num_auth_methods; i++) {
usr.bin/ssh/sshd-session.c
966
if (auth2_methods_valid(options.auth_methods[i],
usr.bin/ssh/sshd-session.c
970
if (i >= options.num_auth_methods)
usr.bin/ssh/sshd-session.c
976
if (options.moduli_file != NULL)
usr.bin/ssh/sshd-session.c
977
dh_set_moduli_file(options.moduli_file);
usr.bin/ssh/sshd-session.c
980
if (options.host_key_agent) {
usr.bin/ssh/sshd-session.c
981
if (strcmp(options.host_key_agent, SSH_AUTHSOCKET_ENV_NAME))
usr.bin/ssh/sshd-session.c
983
options.host_key_agent, 1);
usr.bin/ssh/sshd-session.c
988
options.host_key_agent);
usr.bin/ssh/sshd-session.c
991
if (options.num_host_key_files != sensitive_data.num_hostkeys) {
usr.bin/ssh/sshd-session.c
993
options.num_host_key_files, sensitive_data.num_hostkeys);
usr.bin/ssh/sshd-session.c
996
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd.c
1042
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
1177
options.log_level,
usr.bin/ssh/sshd.c
1178
options.log_facility,
usr.bin/ssh/sshd.c
1219
options.timing_secret = PEEK_U64(hash);
usr.bin/ssh/sshd.c
1250
parse_server_match_config(&options, &includes, connection_info);
usr.bin/ssh/sshd.c
1251
dump_config(&options);
usr.bin/ssh/sshd.c
1291
initialize_server_options(&options);
usr.bin/ssh/sshd.c
1299
options.address_family = AF_INET;
usr.bin/ssh/sshd.c
1302
options.address_family = AF_INET6;
usr.bin/ssh/sshd.c
1309
&options, optarg);
usr.bin/ssh/sshd.c
1314
options.log_level = SYSLOG_LEVEL_DEBUG1;
usr.bin/ssh/sshd.c
1315
} else if (options.log_level < SYSLOG_LEVEL_DEBUG3)
usr.bin/ssh/sshd.c
1316
options.log_level++;
usr.bin/ssh/sshd.c
1343
options.log_level = SYSLOG_LEVEL_QUIET;
usr.bin/ssh/sshd.c
1349
options.ports_from_cmdline = 1;
usr.bin/ssh/sshd.c
1350
if (options.num_ports >= MAX_PORTS) {
usr.bin/ssh/sshd.c
1354
options.ports[options.num_ports++] = a2port(optarg);
usr.bin/ssh/sshd.c
1355
if (options.ports[options.num_ports-1] <= 0) {
usr.bin/ssh/sshd.c
1361
if ((options.login_grace_time = convtime(optarg)) == -1) {
usr.bin/ssh/sshd.c
1371
&options, optarg, 1);
usr.bin/ssh/sshd.c
1394
if (process_server_config_line(&options, line,
usr.bin/ssh/sshd.c
1439
options.log_level == SYSLOG_LEVEL_NOT_SET ?
usr.bin/ssh/sshd.c
1440
SYSLOG_LEVEL_INFO : options.log_level,
usr.bin/ssh/sshd.c
1441
options.log_facility == SYSLOG_FACILITY_NOT_SET ?
usr.bin/ssh/sshd.c
1442
SYSLOG_FACILITY_AUTH : options.log_facility,
usr.bin/ssh/sshd.c
1471
parse_server_config(&options, config_file_name, cfg,
usr.bin/ssh/sshd.c
1475
fill_default_server_options(&options);
usr.bin/ssh/sshd.c
1478
if (options.authorized_keys_command_user == NULL &&
usr.bin/ssh/sshd.c
1479
(options.authorized_keys_command != NULL &&
usr.bin/ssh/sshd.c
1480
strcasecmp(options.authorized_keys_command, "none") != 0))
usr.bin/ssh/sshd.c
1483
if (options.authorized_principals_command_user == NULL &&
usr.bin/ssh/sshd.c
1484
(options.authorized_principals_command != NULL &&
usr.bin/ssh/sshd.c
1485
strcasecmp(options.authorized_principals_command, "none") != 0))
usr.bin/ssh/sshd.c
1495
if (options.num_auth_methods != 0) {
usr.bin/ssh/sshd.c
1496
for (i = 0; i < options.num_auth_methods; i++) {
usr.bin/ssh/sshd.c
1497
if (auth2_methods_valid(options.auth_methods[i],
usr.bin/ssh/sshd.c
1501
if (i >= options.num_auth_methods)
usr.bin/ssh/sshd.c
1516
sensitive_data.host_keys = xcalloc(options.num_host_key_files,
usr.bin/ssh/sshd.c
1518
sensitive_data.host_pubkeys = xcalloc(options.num_host_key_files,
usr.bin/ssh/sshd.c
1521
if (options.host_key_agent) {
usr.bin/ssh/sshd.c
1522
if (strcmp(options.host_key_agent, SSH_AUTHSOCKET_ENV_NAME))
usr.bin/ssh/sshd.c
1524
options.host_key_agent, 1);
usr.bin/ssh/sshd.c
1529
options.host_key_agent);
usr.bin/ssh/sshd.c
1532
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd.c
1533
int ll = options.host_key_file_userprovided[i] ?
usr.bin/ssh/sshd.c
1536
if (options.host_key_files[i] == NULL)
usr.bin/ssh/sshd.c
1538
if ((r = sshkey_load_private(options.host_key_files[i], "",
usr.bin/ssh/sshd.c
1541
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1545
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1551
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1555
if ((r = sshkey_load_public(options.host_key_files[i],
usr.bin/ssh/sshd.c
1558
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1562
"private key", options.host_key_files[i]);
usr.bin/ssh/sshd.c
1570
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1573
options.required_rsa_size)) != 0) {
usr.bin/ssh/sshd.c
1574
error_fr(r, "Host key %s", options.host_key_files[i]);
usr.bin/ssh/sshd.c
1584
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1591
options.host_key_files[i]);
usr.bin/ssh/sshd.c
1607
if ((fp = sshkey_fingerprint(pubkey, options.fingerprint_hash,
usr.bin/ssh/sshd.c
1624
sensitive_data.host_certificates = xcalloc(options.num_host_key_files,
usr.bin/ssh/sshd.c
1626
for (i = 0; i < options.num_host_key_files; i++)
usr.bin/ssh/sshd.c
1629
for (i = 0; i < options.num_host_cert_files; i++) {
usr.bin/ssh/sshd.c
1630
if (options.host_cert_files[i] == NULL)
usr.bin/ssh/sshd.c
1632
if ((r = sshkey_load_public(options.host_cert_files[i],
usr.bin/ssh/sshd.c
1635
options.host_cert_files[i]);
usr.bin/ssh/sshd.c
1640
options.host_cert_files[i]);
usr.bin/ssh/sshd.c
1645
for (j = 0; j < options.num_host_key_files; j++) {
usr.bin/ssh/sshd.c
1652
if (j >= options.num_host_key_files) {
usr.bin/ssh/sshd.c
1654
options.host_cert_files[i]);
usr.bin/ssh/sshd.c
1694
rexec_argv[0] = options.sshd_session_path;
usr.bin/ssh/sshd.c
1706
if (stat(options.sshd_auth_path, &sb) != 0 ||
usr.bin/ssh/sshd.c
1709
options.sshd_auth_path);
usr.bin/ssh/sshd.c
1721
log_init(__progname, options.log_level,
usr.bin/ssh/sshd.c
1722
options.log_facility, log_stderr);
usr.bin/ssh/sshd.c
1723
for (i = 0; i < options.num_log_verbose; i++)
usr.bin/ssh/sshd.c
1724
log_verbose_add(options.log_verbose[i]);
usr.bin/ssh/sshd.c
1740
log_init(__progname, options.log_level, options.log_facility, log_stderr);
usr.bin/ssh/sshd.c
1772
if (options.pid_file != NULL && !debug_flag) {
usr.bin/ssh/sshd.c
1773
FILE *f = fopen(options.pid_file, "w");
usr.bin/ssh/sshd.c
1777
options.pid_file, strerror(errno));
usr.bin/ssh/sshd.c
204
children = xcalloc(options.max_startups, sizeof(*children));
usr.bin/ssh/sshd.c
205
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
222
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
233
" slots full", options.max_startups);
usr.bin/ssh/sshd.c
256
if (++children_active > options.max_startups)
usr.bin/ssh/sshd.c
310
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
438
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
452
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
469
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
506
if (options.pid_file != NULL)
usr.bin/ssh/sshd.c
507
unlink(options.pid_file);
usr.bin/ssh/sshd.c
549
if (startups < options.max_startups_begin)
usr.bin/ssh/sshd.c
551
if (startups >= options.max_startups)
usr.bin/ssh/sshd.c
553
if (options.max_startups_rate == 100)
usr.bin/ssh/sshd.c
556
p = 100 - options.max_startups_rate;
usr.bin/ssh/sshd.c
557
p *= startups - options.max_startups_begin;
usr.bin/ssh/sshd.c
558
p /= options.max_startups - options.max_startups_begin;
usr.bin/ssh/sshd.c
559
p += options.max_startups_rate;
usr.bin/ssh/sshd.c
652
for (i = 0; i < options.num_host_key_files; i++) {
usr.bin/ssh/sshd.c
720
(r = sshbuf_put_u64(m, options.timing_secret)) != 0 ||
usr.bin/ssh/sshd.c
866
srclimit_init(options.max_startups,
usr.bin/ssh/sshd.c
867
options.per_source_max_startups,
usr.bin/ssh/sshd.c
868
options.per_source_masklen_ipv4,
usr.bin/ssh/sshd.c
869
options.per_source_masklen_ipv6,
usr.bin/ssh/sshd.c
870
&options.per_source_penalty,
usr.bin/ssh/sshd.c
871
options.per_source_penalty_exempt);
usr.bin/ssh/sshd.c
873
for (i = 0; i < options.num_listen_addrs; i++) {
usr.bin/ssh/sshd.c
874
listen_on_addrs(&options.listen_addrs[i]);
usr.bin/ssh/sshd.c
875
freeaddrinfo(options.listen_addrs[i].addrs);
usr.bin/ssh/sshd.c
876
free(options.listen_addrs[i].rdomain);
usr.bin/ssh/sshd.c
877
memset(&options.listen_addrs[i], 0,
usr.bin/ssh/sshd.c
878
sizeof(options.listen_addrs[i]));
usr.bin/ssh/sshd.c
88
ServerOptions options;
usr.bin/ssh/sshd.c
880
free(options.listen_addrs);
usr.bin/ssh/sshd.c
881
options.listen_addrs = NULL;
usr.bin/ssh/sshd.c
882
options.num_listen_addrs = 0;
usr.bin/ssh/sshd.c
912
startup_pollfd = xcalloc(options.max_startups, sizeof(int));
usr.bin/ssh/sshd.c
928
pfd = xcalloc(num_listen_socks + options.max_startups,
usr.bin/ssh/sshd.c
941
if (options.pid_file != NULL)
usr.bin/ssh/sshd.c
942
unlink(options.pid_file);
usr.bin/ssh/sshd.c
956
options.max_startups_begin, options.max_startups);
usr.bin/ssh/sshd.c
976
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshd.c
999
for (i = 0; i < options.max_startups; i++) {
usr.bin/ssh/sshlogin.c
123
if (!options.print_lastlog)
usr.bin/ssh/sshlogin.c
65
extern ServerOptions options;
usr.bin/stat/stat.c
159
char *statfmt, *options, *synopsis;
usr.bin/stat/stat.c
172
options = "f:FlLnqrst:x";
usr.bin/stat/stat.c
176
while ((ch = getopt(argc, argv, options)) != -1)
usr.bin/tcpbench/tcpbench.c
419
P(tcpi, options, "%hhu")
usr.bin/telnet/externs.h
101
#define my_state_is_do(opt) (options[opt]&MY_STATE_DO)
usr.bin/telnet/externs.h
102
#define my_state_is_will(opt) (options[opt]&MY_STATE_WILL)
usr.bin/telnet/externs.h
103
#define my_want_state_is_do(opt) (options[opt]&MY_WANT_STATE_DO)
usr.bin/telnet/externs.h
104
#define my_want_state_is_will(opt) (options[opt]&MY_WANT_STATE_WILL)
usr.bin/telnet/externs.h
111
#define set_my_state_do(opt) {options[opt] |= MY_STATE_DO;}
usr.bin/telnet/externs.h
112
#define set_my_state_will(opt) {options[opt] |= MY_STATE_WILL;}
usr.bin/telnet/externs.h
113
#define set_my_want_state_do(opt) {options[opt] |= MY_WANT_STATE_DO;}
usr.bin/telnet/externs.h
114
#define set_my_want_state_will(opt) {options[opt] |= MY_WANT_STATE_WILL;}
usr.bin/telnet/externs.h
116
#define set_my_state_dont(opt) {options[opt] &= ~MY_STATE_DO;}
usr.bin/telnet/externs.h
117
#define set_my_state_wont(opt) {options[opt] &= ~MY_STATE_WILL;}
usr.bin/telnet/externs.h
118
#define set_my_want_state_dont(opt) {options[opt] &= ~MY_WANT_STATE_DO;}
usr.bin/telnet/externs.h
119
#define set_my_want_state_wont(opt) {options[opt] &= ~MY_WANT_STATE_WILL;}
usr.bin/telnet/externs.h
83
options[], /* All the little options */
usr.bin/telnet/telnet.c
159
memset(options, 0, sizeof options);
usr.bin/telnet/telnet.c
75
char options[256]; /* The combined options */
usr.bin/tftp/tftp.c
110
} options[] = {
usr.bin/tftp/tftp.c
298
options:
usr.bin/tftp/tftp.c
375
goto options;
usr.bin/tftp/tftp.c
462
options[OPT_TSIZE].o_type, 0, fsize, 0);
usr.bin/tftp/tftp.c
466
options[OPT_TIMEOUT].o_type, 0, rexmtval, 0);
usr.bin/tftp/tftp.c
469
options[OPT_BLKSIZE].o_type, 0, opt_blksize, 0);
usr.bin/tftp/tftp.c
636
for (i = 0; options[i].o_type != NULL; i++) {
usr.bin/tftp/tftp.c
637
if (!strcasecmp(options[i].o_type, option)) {
usr.bin/tmux/alerts.c
116
if (options_get_number(w->options, "monitor-bell"))
usr.bin/tmux/alerts.c
120
if (options_get_number(w->options, "monitor-activity"))
usr.bin/tmux/alerts.c
124
if (options_get_number(w->options, "monitor-silence") != 0)
usr.bin/tmux/alerts.c
151
tv.tv_sec = options_get_number(w->options, "monitor-silence");
usr.bin/tmux/alerts.c
191
if (!options_get_number(w->options, "monitor-bell"))
usr.bin/tmux/alerts.c
229
if (!options_get_number(w->options, "monitor-activity"))
usr.bin/tmux/alerts.c
265
if (options_get_number(w->options, "monitor-silence") == 0)
usr.bin/tmux/alerts.c
309
visual = options_get_number(wl->session->options, option);
usr.bin/tmux/alerts.c
82
action = options_get_number(wl->session->options, name);
usr.bin/tmux/cmd-attach-session.c
126
environ_update(s->options, c->environ, s->environ);
usr.bin/tmux/cmd-attach-session.c
150
environ_update(s->options, c->environ, s->environ);
usr.bin/tmux/cmd-break-pane.c
104
options_set_parent(wp->options, w->options);
usr.bin/tmux/cmd-break-pane.c
116
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/cmd-break-pane.c
121
colour_palette_from_option(&wp->palette, wp->options);
usr.bin/tmux/cmd-break-pane.c
124
idx = -1 - options_get_number(dst_s->options, "base-index");
usr.bin/tmux/cmd-break-pane.c
85
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/cmd-display-menu.c
141
position = options_get_number(s->options, "status-position");
usr.bin/tmux/cmd-display-menu.c
301
struct options *o = target->s->curw->window->options;
usr.bin/tmux/cmd-display-menu.c
406
struct options *o = s->curw->window->options;
usr.bin/tmux/cmd-display-menu.c
450
shellcmd = options_get_string(s->options,
usr.bin/tmux/cmd-display-menu.c
456
shell = options_get_string(s->options, "default-shell");
usr.bin/tmux/cmd-display-panes.c
291
delay = options_get_number(s->options, "display-panes-time");
usr.bin/tmux/cmd-display-panes.c
65
struct options *oo = s->options;
usr.bin/tmux/cmd-join-pane.c
152
options_set_parent(src_wp->options, dst_w->options);
usr.bin/tmux/cmd-join-pane.c
159
colour_palette_from_option(&src_wp->palette, src_wp->options);
usr.bin/tmux/cmd-move-window.c
116
if (!sflag && options_get_number(src->options, "renumber-windows"))
usr.bin/tmux/cmd-new-session.c
76
struct options *oo;
usr.bin/tmux/cmd-queue.c
362
struct options *oo;
usr.bin/tmux/cmd-queue.c
378
oo = s->options;
usr.bin/tmux/cmd-rename-window.c
55
options_set_number(wl->window->options, "automatic-rename", 0);
usr.bin/tmux/cmd-resize-pane.c
124
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/cmd-resize-window.c
109
options_set_number(w->options, "window-size", WINDOW_SIZE_MANUAL);
usr.bin/tmux/cmd-select-pane.c
95
struct options *oo = wp->options;
usr.bin/tmux/cmd-send-keys.c
216
key = options_get_number(s->options, "prefix2");
usr.bin/tmux/cmd-send-keys.c
218
key = options_get_number(s->options, "prefix");
usr.bin/tmux/cmd-set-option.c
170
po = options_get_only(loop->options, name);
usr.bin/tmux/cmd-set-option.c
90
struct options *oo;
usr.bin/tmux/cmd-show-options.c
201
struct options *oo)
usr.bin/tmux/cmd-show-options.c
36
int, struct options *);
usr.bin/tmux/cmd-show-options.c
82
struct options *oo;
usr.bin/tmux/cmd-swap-pane.c
103
options_set_parent(src_wp->options, dst_w->options);
usr.bin/tmux/cmd-swap-pane.c
106
options_set_parent(dst_wp->options, src_w->options);
usr.bin/tmux/cmd-swap-pane.c
133
colour_palette_from_option(&src_wp->palette, src_wp->options);
usr.bin/tmux/cmd-swap-pane.c
134
colour_palette_from_option(&dst_wp->palette, dst_wp->options);
usr.bin/tmux/cmd-switch-client.c
146
environ_update(s->options, tc->environ, s->environ);
usr.bin/tmux/colour.c
1127
colour_palette_from_option(struct colour_palette *p, struct options *oo)
usr.bin/tmux/environ.c
185
environ_update(struct options *oo, struct environ *src, struct environ *dst)
usr.bin/tmux/format.c
1140
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/format.c
1162
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/format.c
2344
if (options_get_number(ft->wp->options, "synchronize-panes"))
usr.bin/tmux/format.c
4014
o = options_parse_get(ft->wp->options, key, &idx, 0);
usr.bin/tmux/format.c
4016
o = options_parse_get(ft->w->options, key, &idx, 0);
usr.bin/tmux/format.c
4020
o = options_parse_get(ft->s->options, key, &idx, 0);
usr.bin/tmux/format.c
4609
o = options_first(wl->window->options);
usr.bin/tmux/input.c
1443
struct options *oo;
usr.bin/tmux/input.c
1615
oo = ictx->wp->options;
usr.bin/tmux/input.c
2467
struct options *oo;
usr.bin/tmux/input.c
2505
oo = wp->options;
usr.bin/tmux/input.c
2533
struct options *oo;
usr.bin/tmux/input.c
2544
oo = wp->options;
usr.bin/tmux/input.c
2618
options_get_number(wp->options, "allow-set-title") &&
usr.bin/tmux/input.c
2699
options_get_number(wp->options, "allow-set-title") &&
usr.bin/tmux/input.c
2730
if (!options_get_number(ictx->wp->options, "allow-rename"))
usr.bin/tmux/input.c
2739
o = options_get_only(w->options, "automatic-rename");
usr.bin/tmux/input.c
2742
if (!options_get_number(w->options, "automatic-rename"))
usr.bin/tmux/input.c
2745
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/job.c
102
oo = s->options;
usr.bin/tmux/job.c
87
struct options *oo;
usr.bin/tmux/layout-set.c
213
s = options_get_string(w->options, "main-pane-height");
usr.bin/tmux/layout-set.c
228
s = options_get_string(w->options, "other-pane-height");
usr.bin/tmux/layout-set.c
311
s = options_get_string(w->options, "main-pane-height");
usr.bin/tmux/layout-set.c
326
s = options_get_string(w->options, "other-pane-height");
usr.bin/tmux/layout-set.c
409
s = options_get_string(w->options, "main-pane-width");
usr.bin/tmux/layout-set.c
424
s = options_get_string(w->options, "other-pane-width");
usr.bin/tmux/layout-set.c
507
s = options_get_string(w->options, "main-pane-width");
usr.bin/tmux/layout-set.c
522
s = options_get_string(w->options, "other-pane-width");
usr.bin/tmux/layout-set.c
587
struct options *oo = w->options;
usr.bin/tmux/layout.c
1111
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
297
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
298
scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/layout.c
299
sb_pos = options_get_number(w->options, "pane-scrollbars-position");
usr.bin/tmux/layout.c
375
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/layout.c
376
scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/layout.c
926
status = options_get_number(wp->window->options, "pane-border-status");
usr.bin/tmux/layout.c
927
scrollbars = options_get_number(wp->window->options, "pane-scrollbars");
usr.bin/tmux/menu.c
209
struct options *o;
usr.bin/tmux/menu.c
215
o = s->curw->window->options;
usr.bin/tmux/menu.c
554
struct options *o = c->session->curw->window->options;
usr.bin/tmux/mode-tree.c
736
struct options *oo = wp->window->options;
usr.bin/tmux/names.c
134
fmt = options_get_string(w->options, "automatic-rename-format");
usr.bin/tmux/names.c
63
if (!options_get_number(w->options, "automatic-rename"))
usr.bin/tmux/notify.c
61
struct options *oo;
usr.bin/tmux/notify.c
80
oo = fs.s->options;
usr.bin/tmux/notify.c
83
oo = fs.wp->options;
usr.bin/tmux/notify.c
87
oo = fs.wl->window->options;
usr.bin/tmux/options.c
1036
options_from_string_flag(struct options *oo, const char *name,
usr.bin/tmux/options.c
1080
struct options *oo, const char *name, const char *value, char **cause)
usr.bin/tmux/options.c
1098
options_from_string(struct options *oo, const struct options_table_entry *oe,
usr.bin/tmux/options.c
111
options_parent_table_entry(struct options *oo, const char *s)
usr.bin/tmux/options.c
1193
if (options_get_number(w->options, name))
usr.bin/tmux/options.c
1235
colour_palette_from_option(&wp->palette, wp->options);
usr.bin/tmux/options.c
1246
&wp->scrollbar_style, wp->options);
usr.bin/tmux/options.c
1272
struct options *oo = o->owner;
usr.bin/tmux/options.c
170
struct options *
usr.bin/tmux/options.c
171
options_create(struct options *parent)
usr.bin/tmux/options.c
173
struct options *oo;
usr.bin/tmux/options.c
182
options_free(struct options *oo)
usr.bin/tmux/options.c
191
struct options *
usr.bin/tmux/options.c
192
options_get_parent(struct options *oo)
usr.bin/tmux/options.c
198
options_set_parent(struct options *oo, struct options *parent)
usr.bin/tmux/options.c
204
options_first(struct options *oo)
usr.bin/tmux/options.c
216
options_get_only(struct options *oo, const char *name)
usr.bin/tmux/options.c
229
options_get(struct options *oo, const char *name)
usr.bin/tmux/options.c
244
options_empty(struct options *oo, const struct options_table_entry *oe)
usr.bin/tmux/options.c
258
options_default(struct options *oo, const struct options_table_entry *oe)
usr.bin/tmux/options.c
332
options_add(struct options *oo, const char *name)
usr.bin/tmux/options.c
351
struct options *oo = o->owner;
usr.bin/tmux/options.c
368
struct options *
usr.bin/tmux/options.c
51
struct options *owner;
usr.bin/tmux/options.c
649
options_parse_get(struct options *oo, const char *s, int *idx, int only)
usr.bin/tmux/options.c
65
struct options *parent;
usr.bin/tmux/options.c
68
static struct options_entry *options_add(struct options *, const char *);
usr.bin/tmux/options.c
708
options_match_get(struct options *oo, const char *s, int *idx, int only,
usr.bin/tmux/options.c
727
options_get_string(struct options *oo, const char *name)
usr.bin/tmux/options.c
740
options_get_number(struct options *oo, const char *name)
usr.bin/tmux/options.c
753
options_get_command(struct options *oo, const char *name)
usr.bin/tmux/options.c
766
options_set_string(struct options *oo, const char *name, int append,
usr.bin/tmux/options.c
806
options_set_number(struct options *oo, const char *name, long long value)
usr.bin/tmux/options.c
827
options_set_command(struct options *oo, const char *name,
usr.bin/tmux/options.c
852
const char *name, struct cmd_find_state *fs, struct options **oo,
usr.bin/tmux/options.c
887
*oo = s->options;
usr.bin/tmux/options.c
898
*oo = wp->options;
usr.bin/tmux/options.c
913
*oo = wl->window->options;
usr.bin/tmux/options.c
923
struct cmd_find_state *fs, struct options **oo, char **cause)
usr.bin/tmux/options.c
943
*oo = wp->options;
usr.bin/tmux/options.c
957
*oo = wl->window->options;
usr.bin/tmux/options.c
971
*oo = s->options;
usr.bin/tmux/options.c
977
options_string_to_style(struct options *oo, const char *name,
usr.bin/tmux/popup.c
112
struct options *o;
usr.bin/tmux/popup.c
118
o = s->curw->window->options;
usr.bin/tmux/popup.c
422
hlimit = options_get_number(s->options, "history-limit");
usr.bin/tmux/popup.c
438
shell = options_get_string(s->options, "default-shell");
usr.bin/tmux/popup.c
775
struct options *o;
usr.bin/tmux/popup.c
779
o = s->curw->window->options;
usr.bin/tmux/popup.c
781
o = c->session->curw->window->options;
usr.bin/tmux/resize.c
314
value = options_get_string(s->options, "default-size");
usr.bin/tmux/resize.c
371
type = options_get_number(w->options, "window-size");
usr.bin/tmux/resize.c
372
current = options_get_number(w->options, "aggressive-resize");
usr.bin/tmux/screen-redraw.c
124
struct options *oo = wp->window->options;
usr.bin/tmux/screen-redraw.c
468
style_apply(&gc, w->options, "pane-active-border-style", ft);
usr.bin/tmux/screen-redraw.c
470
style_apply(&gc, w->options, "pane-border-style", ft);
usr.bin/tmux/screen-redraw.c
471
fmt = options_get_string(wp->options, "pane-border-format");
usr.bin/tmux/screen-redraw.c
617
struct options *oo = s->options;
usr.bin/tmux/screen-redraw.c
619
struct options *wo = w->options;
usr.bin/tmux/screen-redraw.c
722
struct options *oo = w->options;
usr.bin/tmux/screen-redraw.c
748
struct options *oo = w->options;
usr.bin/tmux/screen-redraw.c
818
struct options *oo = w->options;
usr.bin/tmux/screen-write.c
1514
options_get_number(ctx->wp->options, "scroll-on-clear"))
usr.bin/tmux/screen-write.c
1564
options_get_number(ctx->wp->options, "scroll-on-clear"))
usr.bin/tmux/screen-write.c
2314
if (wp != NULL && !options_get_number(wp->options, "alternate-screen"))
usr.bin/tmux/screen-write.c
2338
if (wp != NULL && !options_get_number(wp->options, "alternate-screen"))
usr.bin/tmux/screen.c
176
screen_set_default_cursor(struct screen *s, struct options *oo)
usr.bin/tmux/server-client.c
1062
if ((t = options_get_number(s->options, "assume-paste-time")) == 0)
usr.bin/tmux/server-client.c
1094
if (options_get_number(w->options, "window-size") == WINDOW_SIZE_LATEST)
usr.bin/tmux/server-client.c
1109
repeat = options_get_number(s->options, "repeat-time");
usr.bin/tmux/server-client.c
1113
initial = options_get_number(s->options, "initial-repeat-time");
usr.bin/tmux/server-client.c
1184
if (KEYC_IS_MOUSE(key) && !options_get_number(s->options, "mouse"))
usr.bin/tmux/server-client.c
1217
prefix = (key_code)options_get_number(s->options, "prefix");
usr.bin/tmux/server-client.c
1218
prefix2 = (key_code)options_get_number(s->options, "prefix2");
usr.bin/tmux/server-client.c
1367
options_get_number(wp->options, "remain-on-exit") == 3) {
usr.bin/tmux/server-client.c
1368
options_set_number(wp->options, "remain-on-exit", 0);
usr.bin/tmux/server-client.c
1718
struct options *oo = c->session->options;
usr.bin/tmux/server-client.c
2059
if (options_get_number(s->options, "set-titles")) {
usr.bin/tmux/server-client.c
2093
template = options_get_string(s->options, "set-titles-string");
usr.bin/tmux/server-client.c
275
name = options_get_string(s->options, "key-table");
usr.bin/tmux/server-client.c
589
shell = options_get_string(s->options, "default-shell");
usr.bin/tmux/server-client.c
609
struct options *wo = w->options;
usr.bin/tmux/server-client.c
967
options_get_number(s->options, "focus-follows-mouse")) {
usr.bin/tmux/server-fn.c
170
cmd = options_get_string(c->session->options, "lock-command");
usr.bin/tmux/server-fn.c
230
if (options_get_number(s->options, "renumber-windows")) {
usr.bin/tmux/server-fn.c
291
dstidx = -1 - options_get_number(dst->options, "base-index");
usr.bin/tmux/server-fn.c
333
remain_on_exit = options_get_number(wp->options, "remain-on-exit");
usr.bin/tmux/server-fn.c
353
s = options_get_string(wp->options, "remain-on-exit-format");
usr.bin/tmux/server-fn.c
440
detach_on_destroy = options_get_number(s->options, "detach-on-destroy");
usr.bin/tmux/server-fn.c
487
switch (options_get_number(s->options, "destroy-unattached")) {
usr.bin/tmux/session.c
114
struct environ *env, struct options *oo, struct termios *tio)
usr.bin/tmux/session.c
128
s->options = oo;
usr.bin/tmux/session.c
191
options_free(s->options);
usr.bin/tmux/session.c
290
tv.tv_sec = options_get_number(s->options, "lock-after-time");
usr.bin/tmux/session.c
726
new_idx = options_get_number(s->options, "base-index");
usr.bin/tmux/session.c
793
limit = options_get_number(s->options, "history-limit");
usr.bin/tmux/spawn.c
152
idx = -1 - options_get_number(s->options, "base-index");
usr.bin/tmux/spawn.c
187
options_set_number(w->options, "automatic-rename", 0);
usr.bin/tmux/spawn.c
251
hlimit = options_get_number(s->options, "history-limit");
usr.bin/tmux/spawn.c
287
cmd = options_get_string(s->options, "default-command");
usr.bin/tmux/spawn.c
335
tmp = options_get_string(s->options, "default-shell");
usr.bin/tmux/status.c
1371
struct options *oo = c->session->options;
usr.bin/tmux/status.c
1410
keys = options_get_number(c->session->options, "status-keys");
usr.bin/tmux/status.c
1935
if (options_get_number(c->session->options, "status-position") == 0)
usr.bin/tmux/status.c
195
tv.tv_sec = options_get_number(s->options, "status-interval");
usr.bin/tmux/status.c
2033
if (options_get_number(c->session->options, "status-position") == 0)
usr.bin/tmux/status.c
213
if (s != NULL && options_get_number(s->options, "status"))
usr.bin/tmux/status.c
231
s->statuslines = options_get_number(s->options, "status");
usr.bin/tmux/status.c
234
else if (options_get_number(s->options, "status-position") == 0)
usr.bin/tmux/status.c
276
line = options_get_number(s->options, "message-line");
usr.bin/tmux/status.c
390
style_apply(&gc, s->options, "status-style", ft);
usr.bin/tmux/status.c
391
fg = options_get_number(s->options, "status-fg");
usr.bin/tmux/status.c
394
bg = options_get_number(s->options, "status-bg");
usr.bin/tmux/status.c
411
o = options_get(s->options, "status-format");
usr.bin/tmux/status.c
489
delay = options_get_number(c->session->options, "display-time");
usr.bin/tmux/status.c
549
sy = options_string_to_style(s->options, "message-style", NULL);
usr.bin/tmux/status.c
648
msgfmt = options_get_string(s->options, "message-format");
usr.bin/tmux/status.c
866
n = options_get_number(s->options, "prompt-cursor-colour");
usr.bin/tmux/status.c
869
n = options_get_number(s->options, "prompt-command-cursor-style");
usr.bin/tmux/status.c
871
n = options_get_number(s->options, "prompt-cursor-style");
usr.bin/tmux/status.c
880
style_apply(&gc, s->options, "message-command-style", NULL);
usr.bin/tmux/status.c
882
style_apply(&gc, s->options, "message-style", NULL);
usr.bin/tmux/status.c
898
msgfmt = options_get_string(s->options, "message-format");
usr.bin/tmux/style.c
390
style_add(struct grid_cell *gc, struct options *oo, const char *name,
usr.bin/tmux/style.c
416
style_apply(struct grid_cell *gc, struct options *oo, const char *name,
usr.bin/tmux/style.c
441
struct options *oo)
usr.bin/tmux/tmux.c
40
struct options *global_options; /* server options */
usr.bin/tmux/tmux.c
41
struct options *global_s_options; /* session options */
usr.bin/tmux/tmux.c
42
struct options *global_w_options; /* window options */
usr.bin/tmux/tmux.h
1204
struct options *options;
usr.bin/tmux/tmux.h
1344
struct options *options;
usr.bin/tmux/tmux.h
1469
struct options *options;
usr.bin/tmux/tmux.h
2315
extern struct options *global_options;
usr.bin/tmux/tmux.h
2316
extern struct options *global_s_options;
usr.bin/tmux/tmux.h
2317
extern struct options *global_w_options;
usr.bin/tmux/tmux.h
2478
struct options *options_create(struct options *);
usr.bin/tmux/tmux.h
2480
struct options *options_get_parent(struct options *);
usr.bin/tmux/tmux.h
2490
struct options *options_owner(struct options_entry *);
usr.bin/tmux/tmux.h
62
struct options;
usr.bin/tmux/tty.c
2870
struct options *oo = wp->options;
usr.bin/tmux/window-clock.c
236
colour = options_get_number(wp->window->options, "clock-mode-colour");
usr.bin/tmux/window-clock.c
237
style = options_get_number(wp->window->options, "clock-mode-style");
usr.bin/tmux/window-copy.c
1057
if (options_get_number(wp->window->options, "mode-keys") == MODEKEY_VI)
usr.bin/tmux/window-copy.c
1970
separators = options_get_string(cs->s->options, "word-separators");
usr.bin/tmux/window-copy.c
1984
separators = options_get_string(cs->s->options, "word-separators");
usr.bin/tmux/window-copy.c
2008
struct options *so = cs->s->options;
usr.bin/tmux/window-copy.c
2089
separators = options_get_string(cs->s->options, "word-separators");
usr.bin/tmux/window-copy.c
2268
struct options *so = cs->s->options;
usr.bin/tmux/window-copy.c
3386
keys = options_get_number(wp->window->options, "mode-keys");
usr.bin/tmux/window-copy.c
4140
wrapflag = options_get_number(wp->window->options, "wrap-search");
usr.bin/tmux/window-copy.c
4143
keys = options_get_number(wp->window->options, "mode-keys");
usr.bin/tmux/window-copy.c
433
data->modekeys = options_get_number(wp->window->options, "mode-keys");
usr.bin/tmux/window-copy.c
4580
keys = options_get_number(wp->window->options, "mode-keys");
usr.bin/tmux/window-copy.c
4664
struct options *oo = wp->window->options;
usr.bin/tmux/window-copy.c
4957
struct options *oo = wp->window->options;
usr.bin/tmux/window-copy.c
5076
keys = options_get_number(wp->window->options, "mode-keys");
usr.bin/tmux/window-copy.c
5756
struct options *oo = wp->window->options;
usr.bin/tmux/window-copy.c
5785
struct options *oo = wp->window->options;
usr.bin/tmux/window-copy.c
5841
if (options_get_number(w->options, "mode-keys") == MODEKEY_EMACS)
usr.bin/tmux/window-customize.c
1036
struct options *oo;
usr.bin/tmux/window-customize.c
1176
struct options *oo;
usr.bin/tmux/window-customize.c
125
static struct options *
usr.bin/tmux/window-customize.c
138
return (fs->s->options);
usr.bin/tmux/window-customize.c
142
return (fs->w->options);
usr.bin/tmux/window-customize.c
144
return (fs->wp->options);
usr.bin/tmux/window-customize.c
236
struct options *oo = options_owner(o);
usr.bin/tmux/window-customize.c
277
struct options *oo = options_owner(o);
usr.bin/tmux/window-customize.c
342
window_customize_find_user_options(struct options *oo, const char ***list,
usr.bin/tmux/window-customize.c
374
enum window_customize_scope scope0, struct options *oo0,
usr.bin/tmux/window-customize.c
375
enum window_customize_scope scope1, struct options *oo1,
usr.bin/tmux/window-customize.c
376
enum window_customize_scope scope2, struct options *oo2,
usr.bin/tmux/window-customize.c
561
WINDOW_CUSTOMIZE_SESSION, fs.s->options,
usr.bin/tmux/window-customize.c
567
WINDOW_CUSTOMIZE_WINDOW, fs.w->options,
usr.bin/tmux/window-customize.c
568
WINDOW_CUSTOMIZE_PANE, fs.wp->options,
usr.bin/tmux/window-customize.c
657
struct options *go, *wo;
usr.bin/tmux/window-customize.c
91
struct options *oo;
usr.bin/tmux/window-customize.c
987
struct options *oo = item->oo;
usr.bin/tmux/window-tree.c
424
struct options *oo = s->options;
usr.bin/tmux/window-tree.c
560
struct options *oo = s->options;
usr.bin/tmux/window.c
1034
options_free(wp->options);
usr.bin/tmux/window.c
1218
options_get_number(loop->options, "synchronize-panes")) {
usr.bin/tmux/window.c
1236
options_get_number(loop->options, "synchronize-panes"))
usr.bin/tmux/window.c
1256
if (options_get_number(wp->options, "synchronize-panes"))
usr.bin/tmux/window.c
1286
if (options_get_number(wp->options, "synchronize-panes"))
usr.bin/tmux/window.c
1384
pane_scrollbars = options_get_number(w->options, "pane-scrollbars");
usr.bin/tmux/window.c
1385
sb_pos = options_get_number(w->options, "pane-scrollbars-position");
usr.bin/tmux/window.c
1418
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
1479
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
1777
value = options_get_string(w->options, "fill-character");
usr.bin/tmux/window.c
1790
screen_set_default_cursor(wp->screen, wp->options);
usr.bin/tmux/window.c
1997
struct options *wo = w->options;
usr.bin/tmux/window.c
324
w->options = options_create(global_w_options);
usr.bin/tmux/window.c
367
options_free(w->options);
usr.bin/tmux/window.c
595
pane_status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
624
status = options_get_number(w->options, "pane-border-status");
usr.bin/tmux/window.c
802
n = options_get_number(w->options, "pane-base-index");
usr.bin/tmux/window.c
840
*i = options_get_number(w->options, "pane-base-index");
usr.bin/tmux/window.c
959
wp->options = options_create(w->options);
usr.bin/tmux/window.c
980
wp->options);
usr.bin/tmux/window.c
983
colour_palette_from_option(&wp->palette, wp->options);
usr.sbin/config/config.h
281
extern struct nvlist *options; /* options */
usr.sbin/config/main.c
243
nextopt = &options;
usr.sbin/config/main.c
414
if (options == nv) {
usr.sbin/config/main.c
415
options = nv->nv_next;
usr.sbin/config/main.c
418
nvt = options;
usr.sbin/config/main.c
771
for (nnewopts = 0, nv = options; nv != NULL; nv = nv->nv_next)
usr.sbin/config/main.c
776
for (i = 0, nv = options; nv != NULL; nv = nv->nv_next, i++) {
usr.sbin/config/main.c
91
struct nvlist *options; /* options */
usr.sbin/config/mkmakefile.c
249
for (nv = options; nv != NULL; nv = nv->nv_next) {
usr.sbin/dhcpd/bootp.c
244
memcpy(outgoing.raw->options, packet->raw->options,
usr.sbin/dhcpd/bootp.c
256
memcpy(options, subnet->group->options, sizeof(options));
usr.sbin/dhcpd/bootp.c
259
if (hp->group->options[i])
usr.sbin/dhcpd/bootp.c
260
options[i] = hp->group->options[i];
usr.sbin/dhcpd/bootp.c
266
if (!options[DHO_SUBNET_MASK]) {
usr.sbin/dhcpd/bootp.c
267
options[DHO_SUBNET_MASK] = &netmask_tree;
usr.sbin/dhcpd/bootp.c
282
0, options, 0, 0, 1, NULL, 0);
usr.sbin/dhcpd/bootp.c
70
struct tree_cache *options[256];
usr.sbin/dhcpd/confpars.c
1242
group->options[option->code] = tree_cache(tree);
usr.sbin/dhcpd/confpars.c
385
group->options[DHO_DHCP_SERVER_IDENTIFIER] = tree_cache(tree);
usr.sbin/dhcpd/confpars.c
574
if (!host->group->options[DHO_HOST_NAME] &&
usr.sbin/dhcpd/confpars.c
576
host->group->options[DHO_HOST_NAME] =
usr.sbin/dhcpd/confpars.c
578
if (!host->group->options[DHO_HOST_NAME])
usr.sbin/dhcpd/confpars.c
580
host->group->options[DHO_HOST_NAME]->len =
usr.sbin/dhcpd/confpars.c
582
host->group->options[DHO_HOST_NAME]->value =
usr.sbin/dhcpd/confpars.c
584
host->group->options[DHO_HOST_NAME]->buf_size =
usr.sbin/dhcpd/confpars.c
585
host->group->options[DHO_HOST_NAME]->len;
usr.sbin/dhcpd/confpars.c
586
host->group->options[DHO_HOST_NAME]->timeout = -1;
usr.sbin/dhcpd/confpars.c
587
host->group->options[DHO_HOST_NAME]->tree =
usr.sbin/dhcpd/dhcp.c
1006
if (user_class->group->options[i])
usr.sbin/dhcpd/dhcp.c
1007
state->options[i] =
usr.sbin/dhcpd/dhcp.c
1008
user_class->group->options[i];
usr.sbin/dhcpd/dhcp.c
1017
if (lease->host->group->options[i])
usr.sbin/dhcpd/dhcp.c
1018
state->options[i] =
usr.sbin/dhcpd/dhcp.c
1019
lease->host->group->options[i];
usr.sbin/dhcpd/dhcp.c
1025
if (packet->options[i].data &&
usr.sbin/dhcpd/dhcp.c
1026
packet->options[i].len == sizeof(u_int16_t))
usr.sbin/dhcpd/dhcp.c
1027
state->max_message_size = getUShort(packet->options[i].data);
usr.sbin/dhcpd/dhcp.c
1029
else if (state->options[i] && state->options[i]->value)
usr.sbin/dhcpd/dhcp.c
1030
state->max_message_size = getUShort(state->options[i]->value);
usr.sbin/dhcpd/dhcp.c
1034
if (packet->options[i].data) {
usr.sbin/dhcpd/dhcp.c
1035
state->prl = calloc(1, packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
1039
memcpy(state->prl, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
1040
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
1041
state->prl_len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
1048
if (!state->options[i] && lease->hostname) {
usr.sbin/dhcpd/dhcp.c
1049
state->options[i] = new_tree_cache("hostname");
usr.sbin/dhcpd/dhcp.c
1050
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1051
state->options[i]->value = (unsigned char *)lease->hostname;
usr.sbin/dhcpd/dhcp.c
1052
state->options[i]->len = strlen(lease->hostname);
usr.sbin/dhcpd/dhcp.c
1053
state->options[i]->buf_size = state->options[i]->len;
usr.sbin/dhcpd/dhcp.c
1054
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1055
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1064
state->options[i] = new_tree_cache("message-type");
usr.sbin/dhcpd/dhcp.c
1065
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1066
state->options[i]->value = &state->offer;
usr.sbin/dhcpd/dhcp.c
1067
state->options[i]->len = sizeof state->offer;
usr.sbin/dhcpd/dhcp.c
1068
state->options[i]->buf_size = sizeof state->offer;
usr.sbin/dhcpd/dhcp.c
1069
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1070
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1073
if (!state->options[i]) {
usr.sbin/dhcpd/dhcp.c
1075
state->options[i] = new_tree_cache("server-id");
usr.sbin/dhcpd/dhcp.c
1076
state->options[i]->value =
usr.sbin/dhcpd/dhcp.c
1078
state->options[i]->len =
usr.sbin/dhcpd/dhcp.c
1080
state->options[i]->buf_size = state->options[i]->len;
usr.sbin/dhcpd/dhcp.c
1081
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1082
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1088
if (!tree_evaluate(state->options[i]))
usr.sbin/dhcpd/dhcp.c
1090
if (!state->options[i]->value ||
usr.sbin/dhcpd/dhcp.c
1091
(state->options[i]->len >
usr.sbin/dhcpd/dhcp.c
1095
state->from.len = state->options[i]->len;
usr.sbin/dhcpd/dhcp.c
1096
memcpy(state->from.iabuf, state->options[i]->value,
usr.sbin/dhcpd/dhcp.c
1102
if (packet->options[i].len == 4) {
usr.sbin/dhcpd/dhcp.c
1103
if (state->options[i]->len != 4 ||
usr.sbin/dhcpd/dhcp.c
1104
memcmp(packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
1105
state->options[i]->value, 4) != 0) {
usr.sbin/dhcpd/dhcp.c
1116
state->options[i] = new_tree_cache("class-identifier");
usr.sbin/dhcpd/dhcp.c
1117
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1118
state->options[i]->value =
usr.sbin/dhcpd/dhcp.c
1120
state->options[i]->len = strlen(vendor_class->name);
usr.sbin/dhcpd/dhcp.c
1121
state->options[i]->buf_size = state->options[i]->len;
usr.sbin/dhcpd/dhcp.c
1122
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1123
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1130
state->options[i] = new_tree_cache("user-class");
usr.sbin/dhcpd/dhcp.c
1131
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1132
state->options[i]->value =
usr.sbin/dhcpd/dhcp.c
1134
state->options[i]->len = strlen(user_class->name);
usr.sbin/dhcpd/dhcp.c
1135
state->options[i]->buf_size = state->options[i]->len;
usr.sbin/dhcpd/dhcp.c
1136
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1137
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1155
state->options[i] = new_tree_cache("lease-expiry");
usr.sbin/dhcpd/dhcp.c
1156
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1157
state->options[i]->value = (unsigned char *)&state->expiry;
usr.sbin/dhcpd/dhcp.c
1158
state->options[i]->len = sizeof state->expiry;
usr.sbin/dhcpd/dhcp.c
1159
state->options[i]->buf_size = sizeof state->expiry;
usr.sbin/dhcpd/dhcp.c
1160
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1161
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1167
state->options[i] = new_tree_cache("renewal-time");
usr.sbin/dhcpd/dhcp.c
1168
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1169
state->options[i]->value =
usr.sbin/dhcpd/dhcp.c
1171
state->options[i]->len = sizeof state->renewal;
usr.sbin/dhcpd/dhcp.c
1172
state->options[i]->buf_size = sizeof state->renewal;
usr.sbin/dhcpd/dhcp.c
1173
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1174
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1182
state->options[i] = new_tree_cache("rebind-time");
usr.sbin/dhcpd/dhcp.c
1183
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1184
state->options[i]->value = (unsigned char *)&state->rebind;
usr.sbin/dhcpd/dhcp.c
1185
state->options[i]->len = sizeof state->rebind;
usr.sbin/dhcpd/dhcp.c
1186
state->options[i]->buf_size = sizeof state->rebind;
usr.sbin/dhcpd/dhcp.c
1187
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1188
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1194
if (!state->options[i]) {
usr.sbin/dhcpd/dhcp.c
1195
state->options[i] = new_tree_cache("subnet-mask");
usr.sbin/dhcpd/dhcp.c
1196
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1197
state->options[i]->value = lease->subnet->netmask.iabuf;
usr.sbin/dhcpd/dhcp.c
1198
state->options[i]->len = lease->subnet->netmask.len;
usr.sbin/dhcpd/dhcp.c
1199
state->options[i]->buf_size = lease->subnet->netmask.len;
usr.sbin/dhcpd/dhcp.c
1200
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1201
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1224
if (ulafdr && !state->options[i]) {
usr.sbin/dhcpd/dhcp.c
1225
state->options[i] = new_tree_cache("routers");
usr.sbin/dhcpd/dhcp.c
1226
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1227
state->options[i]->value = lease->ip_addr.iabuf;
usr.sbin/dhcpd/dhcp.c
1228
state->options[i]->len = lease->ip_addr.len;
usr.sbin/dhcpd/dhcp.c
1229
state->options[i]->buf_size = lease->ip_addr.len;
usr.sbin/dhcpd/dhcp.c
1230
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1231
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1239
memset(&state->options[i], 0, sizeof(state->options[i]));
usr.sbin/dhcpd/dhcp.c
1252
state->options[i] = new_tree_cache("dhcp-client-identifier");
usr.sbin/dhcpd/dhcp.c
1253
state->options[i]->flags = TC_TEMPORARY;
usr.sbin/dhcpd/dhcp.c
1254
state->options[i]->value = lease->client_identifier;
usr.sbin/dhcpd/dhcp.c
1255
state->options[i]->len = lease->client_identifier_len;
usr.sbin/dhcpd/dhcp.c
1256
state->options[i]->buf_size = lease->client_identifier_len;
usr.sbin/dhcpd/dhcp.c
1257
state->options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
1258
state->options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
1260
memset(&state->options[i], 0, sizeof(state->options[i]));
usr.sbin/dhcpd/dhcp.c
1328
if (state->options[DHO_DHCP_PARAMETER_REQUEST_LIST] &&
usr.sbin/dhcpd/dhcp.c
1329
state->options[DHO_DHCP_PARAMETER_REQUEST_LIST]->value) {
usr.sbin/dhcpd/dhcp.c
1330
prl = state->options[DHO_DHCP_PARAMETER_REQUEST_LIST]->value;
usr.sbin/dhcpd/dhcp.c
1331
prl_len = state->options[DHO_DHCP_PARAMETER_REQUEST_LIST]->len;
usr.sbin/dhcpd/dhcp.c
1342
state->options, bufs, nulltp, bootpp, prl, prl_len);
usr.sbin/dhcpd/dhcp.c
1347
if (state->options[i] &&
usr.sbin/dhcpd/dhcp.c
1348
state->options[i]->flags & TC_TEMPORARY)
usr.sbin/dhcpd/dhcp.c
1349
free_tree_cache(state->options[i]);
usr.sbin/dhcpd/dhcp.c
1476
if (packet->options[DHO_DHCP_REQUESTED_ADDRESS].len == 4) {
usr.sbin/dhcpd/dhcp.c
1480
packet->options[DHO_DHCP_REQUESTED_ADDRESS].data,
usr.sbin/dhcpd/dhcp.c
1490
if (packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len) {
usr.sbin/dhcpd/dhcp.c
1494
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].data,
usr.sbin/dhcpd/dhcp.c
1495
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len);
usr.sbin/dhcpd/dhcp.c
1502
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].data,
usr.sbin/dhcpd/dhcp.c
1503
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len);
usr.sbin/dhcpd/dhcp.c
1593
if ((ip_lease->uid_len && packet->options[i].data &&
usr.sbin/dhcpd/dhcp.c
1594
ip_lease->uid_len == packet->options[i].len &&
usr.sbin/dhcpd/dhcp.c
1595
!memcmp(packet->options[i].data, ip_lease->uid,
usr.sbin/dhcpd/dhcp.c
1655
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len &&
usr.sbin/dhcpd/dhcp.c
172
if (((packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len != 0) &&
usr.sbin/dhcpd/dhcp.c
174
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].data,
usr.sbin/dhcpd/dhcp.c
175
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len)) !=
usr.sbin/dhcpd/dhcp.c
1784
if (hp->group->options[DHO_DHCP_CLIENT_IDENTIFIER]) {
usr.sbin/dhcpd/dhcp.c
1786
hp->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->value;
usr.sbin/dhcpd/dhcp.c
1788
hp->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->len;
usr.sbin/dhcpd/dhcp.c
214
if (packet->options[DHO_DHCP_REQUESTED_ADDRESS].len == 4)
usr.sbin/dhcpd/dhcp.c
216
packet->options[DHO_DHCP_REQUESTED_ADDRESS].data, 4);
usr.sbin/dhcpd/dhcp.c
278
(packet->options[DHO_DHCP_REQUESTED_ADDRESS].len == 4 &&
usr.sbin/dhcpd/dhcp.c
355
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len &&
usr.sbin/dhcpd/dhcp.c
356
!memcmp(packet->options[DHO_DHCP_CLIENT_IDENTIFIER].data,
usr.sbin/dhcpd/dhcp.c
395
if (packet->options[DHO_DHCP_REQUESTED_ADDRESS].len) {
usr.sbin/dhcpd/dhcp.c
402
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
403
lease = find_lease_by_uid(packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
404
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
492
if (packet->options[DHO_DHCP_REQUESTED_ADDRESS].len != 4)
usr.sbin/dhcpd/dhcp.c
497
packet->options[DHO_DHCP_REQUESTED_ADDRESS].data, 4);
usr.sbin/dhcpd/dhcp.c
562
if (packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len)
usr.sbin/dhcpd/dhcp.c
564
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].data,
usr.sbin/dhcpd/dhcp.c
565
packet->options[DHO_DHCP_CLIENT_IDENTIFIER].len);
usr.sbin/dhcpd/dhcp.c
584
struct tree_cache *options[256];
usr.sbin/dhcpd/dhcp.c
588
memset(options, 0, sizeof options);
usr.sbin/dhcpd/dhcp.c
595
options[i] = &dhcpnak_tree;
usr.sbin/dhcpd/dhcp.c
596
options[i]->value = &nak;
usr.sbin/dhcpd/dhcp.c
597
options[i]->len = sizeof nak;
usr.sbin/dhcpd/dhcp.c
598
options[i]->buf_size = sizeof nak;
usr.sbin/dhcpd/dhcp.c
599
options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
600
options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
601
options[i]->flags = 0;
usr.sbin/dhcpd/dhcp.c
605
options[i] = &dhcpmsg_tree;
usr.sbin/dhcpd/dhcp.c
606
options[i]->value = (unsigned char *)dhcp_message;
usr.sbin/dhcpd/dhcp.c
607
options[i]->len = strlen(dhcp_message);
usr.sbin/dhcpd/dhcp.c
608
options[i]->buf_size = strlen(dhcp_message);
usr.sbin/dhcpd/dhcp.c
609
options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
610
options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
611
options[i]->flags = 0;
usr.sbin/dhcpd/dhcp.c
617
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
618
options[i] = &server_tree;
usr.sbin/dhcpd/dhcp.c
619
options[i]->value = packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
620
options[i]->len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
621
options[i]->buf_size = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
622
options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
623
options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
624
options[i]->flags = 0;
usr.sbin/dhcpd/dhcp.c
629
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
630
options[i] = &client_tree;
usr.sbin/dhcpd/dhcp.c
631
options[i]->value = packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
632
options[i]->len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
633
options[i]->buf_size = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
634
options[i]->timeout = -1;
usr.sbin/dhcpd/dhcp.c
635
options[i]->tree = NULL;
usr.sbin/dhcpd/dhcp.c
636
options[i]->flags = 0;
usr.sbin/dhcpd/dhcp.c
641
if (packet->options[i].data) {
usr.sbin/dhcpd/dhcp.c
642
packet->options[i].len = 0;
usr.sbin/dhcpd/dhcp.c
643
free(packet->options[i].data);
usr.sbin/dhcpd/dhcp.c
644
packet->options[i].data = NULL;
usr.sbin/dhcpd/dhcp.c
649
0, options, 0, 0, 0, NULL, 0);
usr.sbin/dhcpd/dhcp.c
726
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
727
vendor_class = find_class(0, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
728
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
733
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
734
user_class = find_class(1, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
735
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
766
if (packet->options[i].len)
usr.sbin/dhcpd/dhcp.c
771
if (packet->options[i].len && lease->client_hostname &&
usr.sbin/dhcpd/dhcp.c
772
(strlen(lease->client_hostname) == packet->options[i].len) &&
usr.sbin/dhcpd/dhcp.c
773
!memcmp(lease->client_hostname, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
774
packet->options[i].len)) {
usr.sbin/dhcpd/dhcp.c
775
} else if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
777
lease->client_hostname = malloc( packet->options[i].len + 1);
usr.sbin/dhcpd/dhcp.c
780
memcpy(lease->client_hostname, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
781
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
782
lease->client_hostname[packet->options[i].len] = 0;
usr.sbin/dhcpd/dhcp.c
790
if (packet->options[i].len && lease->client_identifier &&
usr.sbin/dhcpd/dhcp.c
791
lease->client_identifier_len == packet->options[i].len &&
usr.sbin/dhcpd/dhcp.c
792
!memcmp(lease->client_identifier, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
793
packet->options[i].len)) {
usr.sbin/dhcpd/dhcp.c
795
} else if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
797
lease->client_identifier = malloc(packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
800
lease->client_identifier_len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
801
memcpy(lease->client_identifier, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
802
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
876
if (packet->options[i].len == 4) {
usr.sbin/dhcpd/dhcp.c
877
lease_time = getULong( packet->options[i].data);
usr.sbin/dhcpd/dhcp.c
916
if (packet->options[i].len) {
usr.sbin/dhcpd/dhcp.c
917
if (packet->options[i].len <= sizeof lt.uid_buf) {
usr.sbin/dhcpd/dhcp.c
918
memcpy(lt.uid_buf, packet->options[i].data,
usr.sbin/dhcpd/dhcp.c
919
packet->options[i].len);
usr.sbin/dhcpd/dhcp.c
922
lt.uid_len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
924
lt.uid_max = lt.uid_len = packet->options[i].len;
usr.sbin/dhcpd/dhcp.c
928
memcpy(lt.uid, packet->options[i].data, lt.uid_len);
usr.sbin/dhcpd/dhcp.c
969
if (packet->options[i].len &&
usr.sbin/dhcpd/dhcp.c
970
packet->options[i].data[packet->options[i].len - 1] == '\0')
usr.sbin/dhcpd/dhcp.c
988
memcpy(state->options, lease->subnet->group->options,
usr.sbin/dhcpd/dhcp.c
989
sizeof state->options);
usr.sbin/dhcpd/dhcp.c
997
if (vendor_class->group->options[i])
usr.sbin/dhcpd/dhcp.c
998
state->options[i] =
usr.sbin/dhcpd/dhcp.c
999
vendor_class->group->options[i];
usr.sbin/dhcpd/dhcp.h
70
unsigned char options[DHCP_OPTION_LEN];
usr.sbin/dhcpd/dhcpd.h
141
struct tree_cache *options[256];
usr.sbin/dhcpd/dhcpd.h
202
struct tree_cache *options[256];
usr.sbin/dhcpd/dhcpd.h
89
struct option_data options[256];
usr.sbin/dhcpd/memory.c
105
if (hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]) {
usr.sbin/dhcpd/memory.c
107
hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]))
usr.sbin/dhcpd/memory.c
117
hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->value,
usr.sbin/dhcpd/memory.c
118
hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->len);
usr.sbin/dhcpd/memory.c
135
hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->value,
usr.sbin/dhcpd/memory.c
136
hd->group->options[DHO_DHCP_CLIENT_IDENTIFIER]->len,
usr.sbin/dhcpd/options.c
103
if (packet->options[DHO_DHCP_OPTION_OVERLOAD].data[0] & 2)
usr.sbin/dhcpd/options.c
175
if (!packet->options[code].data) {
usr.sbin/dhcpd/options.c
186
packet->options[code].len = len;
usr.sbin/dhcpd/options.c
187
packet->options[code].data = t;
usr.sbin/dhcpd/options.c
194
t = calloc(1, len + packet->options[code].len + 1);
usr.sbin/dhcpd/options.c
198
memcpy(t, packet->options[code].data,
usr.sbin/dhcpd/options.c
199
packet->options[code].len);
usr.sbin/dhcpd/options.c
200
memcpy(t + packet->options[code].len,
usr.sbin/dhcpd/options.c
202
packet->options[code].len += len;
usr.sbin/dhcpd/options.c
203
t[packet->options[code].len] = 0;
usr.sbin/dhcpd/options.c
204
free(packet->options[code].data);
usr.sbin/dhcpd/options.c
205
packet->options[code].data = t;
usr.sbin/dhcpd/options.c
274
int mms, struct tree_cache **options,
usr.sbin/dhcpd/options.c
292
inpacket->options[DHO_DHCP_MAX_MESSAGE_SIZE].data &&
usr.sbin/dhcpd/options.c
293
(inpacket->options[DHO_DHCP_MAX_MESSAGE_SIZE].len >=
usr.sbin/dhcpd/options.c
296
inpacket->options[DHO_DHCP_MAX_MESSAGE_SIZE].data);
usr.sbin/dhcpd/options.c
308
if (main_buffer_size > sizeof(outpacket->options))
usr.sbin/dhcpd/options.c
309
main_buffer_size = sizeof(outpacket->options);
usr.sbin/dhcpd/options.c
315
memset(outpacket->options, DHO_PAD, sizeof(outpacket->options));
usr.sbin/dhcpd/options.c
330
inpacket->options[DHO_DHCP_PARAMETER_REQUEST_LIST].data)
usr.sbin/dhcpd/options.c
332
inpacket->options[DHO_DHCP_PARAMETER_REQUEST_LIST].data,
usr.sbin/dhcpd/options.c
333
inpacket->options[DHO_DHCP_PARAMETER_REQUEST_LIST].len);
usr.sbin/dhcpd/options.c
344
option_size = store_options(buffer, main_buffer_size, options,
usr.sbin/dhcpd/options.c
350
memcpy(&outpacket->options[0], buffer, main_buffer_size);
usr.sbin/dhcpd/options.c
399
struct tree_cache **options, unsigned char *priority_list, int overload,
usr.sbin/dhcpd/options.c
430
if (!options[code] || !tree_evaluate(options[code]))
usr.sbin/dhcpd/options.c
448
length = options[code]->len;
usr.sbin/dhcpd/options.c
456
options[code]->value + ix);
usr.sbin/dhcpd/options.c
551
tp.options[DHO_DHCP_MESSAGE_TYPE].data)
usr.sbin/dhcpd/options.c
552
tp.packet_type = tp.options[DHO_DHCP_MESSAGE_TYPE].data[0];
usr.sbin/dhcpd/options.c
561
free(tp.options[i].data);
usr.sbin/dhcpd/options.c
78
memset(packet->options, 0, sizeof(packet->options));
usr.sbin/dhcpd/options.c
81
if (memcmp(packet->raw->options, DHCP_OPTIONS_COOKIE, 4)) {
usr.sbin/dhcpd/options.c
90
parse_option_buffer(packet, &packet->raw->options[4],
usr.sbin/dhcpd/options.c
98
packet->options[DHO_DHCP_OPTION_OVERLOAD].data) {
usr.sbin/dhcpd/options.c
99
if (packet->options[DHO_DHCP_OPTION_OVERLOAD].data[0] & 1)
usr.sbin/dhcpd/tables.c
707
dhcp_universe.options[i] = &dhcp_options[i];
usr.sbin/dhcpd/tree.h
99
struct option *options[256];
usr.sbin/dhcrelay/dhcp.h
74
unsigned char options[DHCP_OPTION_LEN];
usr.sbin/dhcrelay/dhcrelay.c
607
p = (uint8_t *)&dp->options;
usr.sbin/dhcrelay/dhcrelay.c
727
p = (uint8_t *)&dp->options;
usr.sbin/lpd/parse.y
194
if (listen_opts.options & LO_FAMILY) {
usr.sbin/lpd/parse.y
198
listen_opts.options |= LO_FAMILY;
usr.sbin/lpd/parse.y
202
if (listen_opts.options & LO_PORT) {
usr.sbin/lpd/parse.y
206
listen_opts.options |= LO_PORT;
usr.sbin/lpd/parse.y
96
uint32_t options;
usr.sbin/lpr/lpd/lpd.c
125
int options, maxfd;
usr.sbin/lpr/lpd/lpd.c
146
options = 0;
usr.sbin/lpr/lpd/lpd.c
172
options |= SO_DEBUG;
usr.sbin/lpr/lpd/lpd.c
273
finet = socksetup(PF_UNSPEC, options, port);
usr.sbin/lpr/lpd/lpd.c
686
socksetup(int af, int options, const char *port)
usr.sbin/lpr/lpd/lpd.c
737
if (options & SO_DEBUG)
usr.sbin/makefs/makefs.c
219
set_option(const option_t *options, const char *option, char *buf, size_t len)
usr.sbin/makefs/makefs.c
232
retval = set_option_var(options, var, val, buf, len);
usr.sbin/makefs/makefs.c
238
set_option_var(const option_t *options, const char *var, const char *val,
usr.sbin/makefs/makefs.c
246
*(type *)options[i].value = 1; \
usr.sbin/makefs/makefs.c
249
*(type *)options[i].value = (type)strsuftoll(options[i].name, val, \
usr.sbin/makefs/makefs.c
250
options[i].minimum, options[i].maximum); break
usr.sbin/makefs/makefs.c
252
for (i = 0; options[i].name != NULL; i++) {
usr.sbin/makefs/makefs.c
253
if (strcmp(options[i].name, var) != 0)
usr.sbin/makefs/makefs.c
255
switch (options[i].type) {
usr.sbin/makefs/makefs.c
257
*(int *)options[i].value = 1;
usr.sbin/makefs/makefs.c
260
strlcpy((void *)options[i].value, val, (size_t)
usr.sbin/makefs/makefs.c
261
options[i].maximum);
usr.sbin/makefs/makefs.c
265
*(char **)options[i].value = s;
usr.sbin/makefs/makefs.c
281
warnx("Unknown type %d in option %s", options[i].type,
usr.sbin/nsd/axfr.c
193
if (nsd->options->tls_auth_xfr_only && !q->tls_auth) {
usr.sbin/nsd/axfr.c
211
zone_opt = zone_options_find(nsd->options, q->qname);
usr.sbin/nsd/dbcreate.c
243
namedb_write_zonefiles(struct nsd* nsd, struct nsd_options* options)
usr.sbin/nsd/dbcreate.c
246
RBTREE_FOR(zo, struct zone_options*, options->zone_options) {
usr.sbin/nsd/difffile.c
2044
struct zone_options* zo = zone_options_find(nsd->options,
usr.sbin/nsd/difffile.c
2050
namedb_check_zonefiles(nsd, nsd->options, taskudb, last_task);
usr.sbin/nsd/difffile.c
2058
struct zone_options* zo = zone_options_find(nsd->options,
usr.sbin/nsd/difffile.c
2063
namedb_write_zonefiles(nsd, nsd->options);
usr.sbin/nsd/difffile.c
2082
z = find_or_create_zone(nsd->db, zdname, nsd->options, zname, pname);
usr.sbin/nsd/difffile.c
2120
zone_options_delete(nsd->options, zopt);
usr.sbin/nsd/difffile.c
2131
key_options_add_modify(nsd->options, &key);
usr.sbin/nsd/difffile.c
2141
key_options_remove(nsd->options, name);
usr.sbin/nsd/difffile.c
2164
pattern_options_add_modify(nsd->options, pat);
usr.sbin/nsd/difffile.c
2173
pattern_options_remove(nsd->options, name);
usr.sbin/nsd/difffile.c
2181
nsd->options->rrl_ratelimit = task->oldserial;
usr.sbin/nsd/difffile.c
2182
nsd->options->rrl_whitelist_ratelimit = task->newserial;
usr.sbin/nsd/difffile.c
2183
nsd->options->rrl_slip = task->yesno;
usr.sbin/nsd/difffile.c
2184
rrl_set_limit(nsd->options->rrl_ratelimit, nsd->options->rrl_whitelist_ratelimit,
usr.sbin/nsd/difffile.c
2185
nsd->options->rrl_slip);
usr.sbin/nsd/difffile.c
2232
switch(apply_ixfr_for_zone(nsd, zone, df, nsd->options, udb,
usr.sbin/nsd/dnstap/dnstap_collector.c
290
if (nsd->options->dnstap_socket_path &&
usr.sbin/nsd/dnstap/dnstap_collector.c
291
nsd->options->dnstap_socket_path[0] == '/' &&
usr.sbin/nsd/dnstap/dnstap_collector.c
292
strncmp(nsd->options->dnstap_socket_path,
usr.sbin/nsd/dnstap/dnstap_collector.c
294
nsd->options->dnstap_socket_path += l;
usr.sbin/nsd/dnstap/dnstap_collector.c
297
dt_col->dt_env = dt_create(nsd->options->dnstap_socket_path,
usr.sbin/nsd/dnstap/dnstap_collector.c
298
nsd->options->dnstap_ip, num_workers, nsd->options->dnstap_tls,
usr.sbin/nsd/dnstap/dnstap_collector.c
299
nsd->options->dnstap_tls_server_name,
usr.sbin/nsd/dnstap/dnstap_collector.c
300
nsd->options->dnstap_tls_cert_bundle,
usr.sbin/nsd/dnstap/dnstap_collector.c
301
nsd->options->dnstap_tls_client_key_file,
usr.sbin/nsd/dnstap/dnstap_collector.c
302
nsd->options->dnstap_tls_client_cert_file);
usr.sbin/nsd/dnstap/dnstap_collector.c
307
dt_apply_cfg(dt_col->dt_env, nsd->options);
usr.sbin/nsd/dnstap/dnstap_collector.c
332
nsd_options_destroy(nsd->options);
usr.sbin/nsd/dnstap/dnstap_collector.c
553
if(!nsd->options->dnstap_log_auth_query_messages) return;
usr.sbin/nsd/dnstap/dnstap_collector.c
585
if(!nsd->options->dnstap_log_auth_response_messages) return;
usr.sbin/nsd/ixfr.c
2600
zone_options_t options;
usr.sbin/nsd/ixfr.c
2604
memset(&options, 0, sizeof(options));
usr.sbin/nsd/ixfr.c
2607
options.origin.octets = dname_name(origin);
usr.sbin/nsd/ixfr.c
2608
options.origin.length = origin->name_size;
usr.sbin/nsd/ixfr.c
2609
options.no_includes = true;
usr.sbin/nsd/ixfr.c
2610
options.pretty_ttls = false;
usr.sbin/nsd/ixfr.c
2611
options.default_ttl = DEFAULT_TTL;
usr.sbin/nsd/ixfr.c
2612
options.default_class = CLASS_IN;
usr.sbin/nsd/ixfr.c
2613
options.log.callback = &ixfr_data_log;
usr.sbin/nsd/ixfr.c
2614
options.accept.callback = &ixfr_data_accept;
usr.sbin/nsd/ixfr.c
2616
if(zone_parse(&parser, &options, &buffers, ixfrfile, &state) != 0) {
usr.sbin/nsd/metrics.c
308
metrics->xfrd->nsd->options->metrics_path,
usr.sbin/nsd/metrics.c
600
xfrd->nsd->options->zonelist_off);
usr.sbin/nsd/metrics.c
605
xfrd->nsd->options->region));
usr.sbin/nsd/namedb.h
405
void namedb_write_zonefiles(struct nsd* nsd, struct nsd_options* options);
usr.sbin/nsd/nsd-checkconf.c
1002
options = nsd_options_create(region_create(xalloc, free));
usr.sbin/nsd/nsd-checkconf.c
1003
tsig_init(options->region);
usr.sbin/nsd/nsd-checkconf.c
1004
if (!parse_options_file(options, configfile, NULL, NULL, NULL) ||
usr.sbin/nsd/nsd-checkconf.c
1005
!additional_checks(options, configfile)) {
usr.sbin/nsd/nsd-checkconf.c
1009
config_print_zone(options, conf_key, key_sec,
usr.sbin/nsd/nsd-checkconf.c
1016
(int)options->patterns->count,
usr.sbin/nsd/nsd-checkconf.c
1017
(int)nsd_options_num_zones(options),
usr.sbin/nsd/nsd-checkconf.c
1018
(int)options->keys->count,
usr.sbin/nsd/nsd-checkconf.c
1019
(int)options->tls_auths->count);
usr.sbin/nsd/nsd-checkconf.c
1020
config_test_print_server(options);
usr.sbin/nsd/nsd-checkconf.c
948
nsd_options_type *options;
usr.sbin/nsd/nsd-checkzone.c
181
nsd.options = nsd_options_create(region_create_custom(xalloc, free,
usr.sbin/nsd/nsd-checkzone.c
185
verbosity = nsd.options->verbosity;
usr.sbin/nsd/nsd-checkzone.c
189
region_destroy(nsd.options->region);
usr.sbin/nsd/nsd-checkzone.c
57
nsd->db = namedb_open(nsd->options);
usr.sbin/nsd/nsd-checkzone.c
58
dname = dname_parse(nsd->options->region, name);
usr.sbin/nsd/nsd-checkzone.c
63
zo = zone_options_create(nsd->options->region);
usr.sbin/nsd/nsd-checkzone.c
89
region_destroy(nsd->options->region);
usr.sbin/nsd/nsd-checkzone.c
98
region_destroy(nsd->options->region);
usr.sbin/nsd/nsd-mem.c
314
nsd.options = nsd_options_create(region_create_custom(xalloc, free,
usr.sbin/nsd/nsd-mem.c
317
tsig_init(nsd.options->region);
usr.sbin/nsd/nsd-mem.c
318
if(!parse_options_file(nsd.options, configfile, NULL, NULL, NULL)) {
usr.sbin/nsd/nsd-mem.c
321
if(!parse_zone_list_file(nsd.options)) {
usr.sbin/nsd/nsd-mem.c
323
nsd.options->zonelistfile);
usr.sbin/nsd/nsd-mem.c
326
verbosity = nsd.options->verbosity;
usr.sbin/nsd/nsd-mem.c
329
if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot;
usr.sbin/nsd/nsd-mem.c
335
if(nsd.options->zonesdir && nsd.options->zonesdir[0]) {
usr.sbin/nsd/nsd-mem.c
336
if(chdir(nsd.options->zonesdir)) {
usr.sbin/nsd/nsd-mem.c
338
nsd.options->zonesdir, strerror(errno));
usr.sbin/nsd/nsd-mem.c
341
nsd.options->zonesdir));
usr.sbin/nsd/nsd-mem.c
355
check_mem(nsd.options);
usr.sbin/nsd/nsd.c
1064
if(!parse_options_file(nsd.options, configfile, NULL, NULL, NULL)) {
usr.sbin/nsd/nsd.c
1067
if(!parse_zone_list_file(nsd.options)) {
usr.sbin/nsd/nsd.c
1069
nsd.options->zonelistfile);
usr.sbin/nsd/nsd.c
1071
if(nsd.options->do_ip4 && !nsd.options->do_ip6) {
usr.sbin/nsd/nsd.c
1075
if(nsd.options->do_ip6 && !nsd.options->do_ip4) {
usr.sbin/nsd/nsd.c
1080
verbosity = nsd.options->verbosity;
usr.sbin/nsd/nsd.c
1085
if(nsd.options->debug_mode) nsd.debug=1;
usr.sbin/nsd/nsd.c
1088
if(nsd.options->pidfile)
usr.sbin/nsd/nsd.c
1089
nsd.pidfile = nsd.options->pidfile;
usr.sbin/nsd/nsd.c
1095
if(nsd.options->identity)
usr.sbin/nsd/nsd.c
1096
nsd.identity = nsd.options->identity;
usr.sbin/nsd/nsd.c
1098
if(nsd.options->version) {
usr.sbin/nsd/nsd.c
1099
nsd.version = nsd.options->version;
usr.sbin/nsd/nsd.c
1101
if (nsd.options->logfile && !nsd.log_filename) {
usr.sbin/nsd/nsd.c
1102
nsd.log_filename = nsd.options->logfile;
usr.sbin/nsd/nsd.c
1105
nsd.child_count = nsd.options->server_count;
usr.sbin/nsd/nsd.c
1112
if (nsd.options->xdp_interface) {
usr.sbin/nsd/nsd.c
1113
int res = ethtool_channels_get(nsd.options->xdp_interface);
usr.sbin/nsd/nsd.c
1135
if(nsd.options->reuseport && nsd.child_count > 1) {
usr.sbin/nsd/nsd.c
1140
nsd.maximum_tcp_count = nsd.options->tcp_count;
usr.sbin/nsd/nsd.c
1142
nsd.tcp_timeout = nsd.options->tcp_timeout;
usr.sbin/nsd/nsd.c
1143
nsd.tcp_query_count = nsd.options->tcp_query_count;
usr.sbin/nsd/nsd.c
1144
nsd.tcp_mss = nsd.options->tcp_mss;
usr.sbin/nsd/nsd.c
1145
nsd.outgoing_tcp_mss = nsd.options->outgoing_tcp_mss;
usr.sbin/nsd/nsd.c
1146
nsd.ipv4_edns_size = nsd.options->ipv4_edns_size;
usr.sbin/nsd/nsd.c
1147
nsd.ipv6_edns_size = nsd.options->ipv6_edns_size;
usr.sbin/nsd/nsd.c
1155
if(nsd.options->port != 0) {
usr.sbin/nsd/nsd.c
1156
udp_port = nsd.options->port;
usr.sbin/nsd/nsd.c
1157
tcp_port = nsd.options->port;
usr.sbin/nsd/nsd.c
1163
if(nsd.options->verify_port != 0) {
usr.sbin/nsd/nsd.c
1164
verify_port = nsd.options->verify_port;
usr.sbin/nsd/nsd.c
1170
nsd.st_period = nsd.options->statistics;
usr.sbin/nsd/nsd.c
1174
if(nsd.chrootdir == 0) nsd.chrootdir = nsd.options->chroot;
usr.sbin/nsd/nsd.c
1181
if(nsd.options->username) nsd.username = nsd.options->username;
usr.sbin/nsd/nsd.c
1184
if(nsd.options->zonesdir && nsd.options->zonesdir[0]) {
usr.sbin/nsd/nsd.c
1185
if(chdir(nsd.options->zonesdir)) {
usr.sbin/nsd/nsd.c
1187
nsd.options->zonesdir, strerror(errno));
usr.sbin/nsd/nsd.c
1190
nsd.options->zonesdir));
usr.sbin/nsd/nsd.c
1194
edns_init_data(&nsd.edns_ipv4, nsd.options->ipv4_edns_size);
usr.sbin/nsd/nsd.c
1197
edns_init_data(&nsd.edns_ipv6, nsd.options->ipv6_edns_size);
usr.sbin/nsd/nsd.c
1199
if (nsd.options->ipv6_edns_size < IPV6_MIN_MTU)
usr.sbin/nsd/nsd.c
1200
edns_init_data(&nsd.edns_ipv6, nsd.options->ipv6_edns_size);
usr.sbin/nsd/nsd.c
1206
reconfig_cookies(&nsd, nsd.options);
usr.sbin/nsd/nsd.c
1208
if (nsd.nsid_len == 0 && nsd.options->nsid) {
usr.sbin/nsd/nsd.c
1209
if (strlen(nsd.options->nsid) % 2 != 0) {
usr.sbin/nsd/nsd.c
1212
nsd.nsid = xalloc(strlen(nsd.options->nsid) / 2);
usr.sbin/nsd/nsd.c
1213
nsd.nsid_len = strlen(nsd.options->nsid) / 2;
usr.sbin/nsd/nsd.c
1214
if (hex_pton(nsd.options->nsid, nsd.nsid, nsd.nsid_len) == -1) {
usr.sbin/nsd/nsd.c
1215
error("hex string cannot be parsed '%s' in NSID.", nsd.options->nsid);
usr.sbin/nsd/nsd.c
1224
nsd.use_cpu_affinity = (nsd.options->cpu_affinity != NULL);
usr.sbin/nsd/nsd.c
1227
struct cpu_option* opt = nsd.options->cpu_affinity;
usr.sbin/nsd/nsd.c
1247
= nsd.options->service_cpu_affinity;
usr.sbin/nsd/nsd.c
1292
= nsd.options->service_cpu_affinity;
usr.sbin/nsd/nsd.c
1325
resolve_interface_names(nsd.options);
usr.sbin/nsd/nsd.c
1327
nsd.options->ip_addresses, NULL, udp_port, tcp_port, &hints);
usr.sbin/nsd/nsd.c
1329
if(nsd.options->verify_enable) {
usr.sbin/nsd/nsd.c
1331
nsd.options->verify_ip_addresses, "localhost", verify_port, verify_port, &hints);
usr.sbin/nsd/nsd.c
1371
key_options_tsig_add(nsd.options);
usr.sbin/nsd/nsd.c
1374
append_trailing_slash(&nsd.options->xfrdir, nsd.options->region);
usr.sbin/nsd/nsd.c
1379
append_trailing_slash(&nsd.options->zonesdir, nsd.options->region);
usr.sbin/nsd/nsd.c
1383
if (strncmp(nsd.options->zonesdir, nsd.chrootdir, strlen(nsd.chrootdir)) != 0) {
usr.sbin/nsd/nsd.c
1385
nsd.options->zonesdir, nsd.chrootdir);
usr.sbin/nsd/nsd.c
1389
} else if (!file_inside_chroot(nsd.options->xfrdfile, nsd.chrootdir)) {
usr.sbin/nsd/nsd.c
1391
nsd.options->xfrdfile, nsd.chrootdir);
usr.sbin/nsd/nsd.c
1392
} else if (!file_inside_chroot(nsd.options->zonelistfile, nsd.chrootdir)) {
usr.sbin/nsd/nsd.c
1394
nsd.options->zonelistfile, nsd.chrootdir);
usr.sbin/nsd/nsd.c
1395
} else if (!file_inside_chroot(nsd.options->xfrdir, nsd.chrootdir)) {
usr.sbin/nsd/nsd.c
1397
nsd.options->xfrdir, nsd.chrootdir);
usr.sbin/nsd/nsd.c
1403
if(nsd.options->log_only_syslog)
usr.sbin/nsd/nsd.c
1453
nsd.xdp.xdp_server.interface_name = nsd.options->xdp_interface;
usr.sbin/nsd/nsd.c
1454
nsd.xdp.xdp_server.bpf_prog_filename = nsd.options->xdp_program_path;
usr.sbin/nsd/nsd.c
1455
nsd.xdp.xdp_server.bpf_prog_should_load = nsd.options->xdp_program_load;
usr.sbin/nsd/nsd.c
1456
nsd.xdp.xdp_server.bpf_bpffs_path = nsd.options->xdp_bpffs_path;
usr.sbin/nsd/nsd.c
1457
nsd.xdp.xdp_server.force_copy = nsd.options->xdp_force_copy;
usr.sbin/nsd/nsd.c
1460
if (!nsd.options->xdp_interface)
usr.sbin/nsd/nsd.c
1500
if(nsd.options->control_enable || (nsd.options->tls_service_key && nsd.options->tls_service_key[0])) {
usr.sbin/nsd/nsd.c
1504
if(nsd.options->control_enable) {
usr.sbin/nsd/nsd.c
1506
if(!(nsd.rc = daemon_remote_create(nsd.options)))
usr.sbin/nsd/nsd.c
1510
if(nsd.options->metrics_enable) {
usr.sbin/nsd/nsd.c
1511
if(!(nsd.metrics = daemon_metrics_create(nsd.options)))
usr.sbin/nsd/nsd.c
1516
if(nsd.options->tls_service_key && nsd.options->tls_service_key[0]
usr.sbin/nsd/nsd.c
1517
&& nsd.options->tls_service_pem && nsd.options->tls_service_pem[0]) {
usr.sbin/nsd/nsd.c
1520
nsd.options->tls_service_ocsp)))
usr.sbin/nsd/nsd.c
1523
if(nsd.options->tls_auth_port) {
usr.sbin/nsd/nsd.c
1525
(char*)nsd.options->tls_cert_bundle,
usr.sbin/nsd/nsd.c
1526
nsd.options->tls_service_ocsp)))
usr.sbin/nsd/nsd.c
1592
nsd.options->zonesdir += l;
usr.sbin/nsd/nsd.c
1599
if (nsd.options->xfrdfile[0] == '/')
usr.sbin/nsd/nsd.c
1600
nsd.options->xfrdfile += l;
usr.sbin/nsd/nsd.c
1601
if (nsd.options->zonelistfile[0] == '/')
usr.sbin/nsd/nsd.c
1602
nsd.options->zonelistfile += l;
usr.sbin/nsd/nsd.c
1603
if (nsd.options->xfrdir[0] == '/')
usr.sbin/nsd/nsd.c
1604
nsd.options->xfrdir += l;
usr.sbin/nsd/nsd.c
1623
if(nsd.options->zonesdir && nsd.options->zonesdir[0]) {
usr.sbin/nsd/nsd.c
1624
if(chdir(nsd.options->zonesdir)) {
usr.sbin/nsd/nsd.c
1626
nsd.options->zonesdir, strerror(errno));
usr.sbin/nsd/nsd.c
1629
nsd.options->zonesdir));
usr.sbin/nsd/nsd.c
1646
if (nsd.options->xdp_interface) {
usr.sbin/nsd/nsd.c
1651
nsd.options->xdp_interface = NULL;
usr.sbin/nsd/nsd.c
1660
if (nsd.options->xdp_interface) {
usr.sbin/nsd/nsd.c
1669
nsd.options->xdp_interface = NULL;
usr.sbin/nsd/nsd.c
1706
if (nsd.options->xdp_interface) {
usr.sbin/nsd/nsd.c
1719
options_zonestatnames_create(nsd.options);
usr.sbin/nsd/nsd.c
1731
zone_list_close(nsd.options);
usr.sbin/nsd/nsd.c
1733
if(nsd.options->dnstap_enable) {
usr.sbin/nsd/nsd.c
916
nsd.options = nsd_options_create(region_create_custom(xalloc, free,
usr.sbin/nsd/nsd.c
939
nsd.options->region, sizeof(*ip));
usr.sbin/nsd/nsd.c
941
nsd.options->region, optarg);
usr.sbin/nsd/nsd.c
942
ip->next = nsd.options->ip_addresses;
usr.sbin/nsd/nsd.c
943
nsd.options->ip_addresses = ip;
usr.sbin/nsd/nsd.h
407
struct nsd_options* options;
usr.sbin/nsd/options.c
1032
member_zone->options.node = *RBTREE_NULL;
usr.sbin/nsd/options.c
1033
member_zone->options.name = 0;
usr.sbin/nsd/options.c
1034
member_zone->options.pattern = 0;
usr.sbin/nsd/options.c
1035
member_zone->options.part_of_config = 0;
usr.sbin/nsd/options.c
1036
member_zone->options.is_catalog_member_zone = 1;
usr.sbin/nsd/options.c
3103
resolve_interface_names(struct nsd_options* options)
usr.sbin/nsd/options.c
3111
resolve_interface_names_for_ref(&options->ip_addresses,
usr.sbin/nsd/options.c
3112
addrs, options->region);
usr.sbin/nsd/options.c
3113
resolve_interface_names_for_ref(&options->control_interface,
usr.sbin/nsd/options.c
3114
addrs, options->region);
usr.sbin/nsd/options.c
3116
resolve_interface_names_for_ref(&options->metrics_interface,
usr.sbin/nsd/options.c
3117
addrs, options->region);
usr.sbin/nsd/options.c
3122
(void)options;
usr.sbin/nsd/options.c
3127
sockaddr_uses_proxy_protocol_port(struct nsd_options* options,
usr.sbin/nsd/options.c
3150
p = options->proxy_protocol_port;
usr.sbin/nsd/options.c
480
? &(cmz = catalog_member_zone_create(opt->region))->options
usr.sbin/nsd/options.h
390
struct zone_options options;
usr.sbin/nsd/options.h
666
void resolve_interface_names(struct nsd_options* options);
usr.sbin/nsd/options.h
669
int sockaddr_uses_proxy_protocol_port(struct nsd_options* options,
usr.sbin/nsd/query.c
1468
if (nsd->options->confine_to_zone &&
usr.sbin/nsd/query.c
1638
if(nsd->options->drop_updates && q->opcode == OPCODE_UPDATE)
usr.sbin/nsd/query.c
1791
if(q->qtype == TYPE_ANY && nsd->options->refuse_any && !q->tcp) {
usr.sbin/nsd/query.c
460
zone_opt = zone_options_find(nsd->options, query->qname);
usr.sbin/nsd/query.c
593
if(!nsd->options->hide_identity) {
usr.sbin/nsd/query.c
612
if(!nsd->options->hide_version) {
usr.sbin/nsd/remote.c
1185
xfrd->nsd->options->zone_options) {
usr.sbin/nsd/remote.c
1264
(int)xfrd->nsd->options->rrl_ratelimit))
usr.sbin/nsd/remote.c
1288
if(xfrd->nsd->options->zonestatnames->count != xfrd->zonestat_safe)
usr.sbin/nsd/remote.c
1291
xfrd->nsd->options->zonestatnames->count);
usr.sbin/nsd/remote.c
1316
if(!rbtree_search(xfrd->nsd->options->patterns, arg2)) {
usr.sbin/nsd/remote.c
1329
if( (zopt=zone_options_find(xfrd->nsd->options, dname)) ) {
usr.sbin/nsd/remote.c
1366
zone_list_del(xfrd->nsd->options, zopt);
usr.sbin/nsd/remote.c
1374
zopt = zone_list_add_or_cat(xfrd->nsd->options, arg, arg2,
usr.sbin/nsd/remote.c
1384
getzonestatid(xfrd->nsd->options, zopt));
usr.sbin/nsd/remote.c
1419
if(!rbtree_search(xfrd->nsd->options->patterns, arg2)) {
usr.sbin/nsd/remote.c
1432
if( zone_options_find(xfrd->nsd->options, dname) ) {
usr.sbin/nsd/remote.c
1442
zopt = zone_list_add_or_cat(xfrd->nsd->options, arg, arg2,
usr.sbin/nsd/remote.c
1452
getzonestatid(xfrd->nsd->options, zopt));
usr.sbin/nsd/remote.c
1484
zopt = zone_options_find(xfrd->nsd->options, dname);
usr.sbin/nsd/remote.c
1529
zone_list_del(xfrd->nsd->options, zopt);
usr.sbin/nsd/remote.c
1615
key_options_remove(xfrd->nsd->options, kname);
usr.sbin/nsd/remote.c
1623
key_options_add_modify(xfrd->nsd->options, k);
usr.sbin/nsd/remote.c
1632
struct nsd_options* oldopt = xfrd->nsd->options;
usr.sbin/nsd/remote.c
1677
zopt = zone_options_find(xfrd->nsd->options, dname);
usr.sbin/nsd/remote.c
1700
zone_options_delete(xfrd->nsd->options, zopt);
usr.sbin/nsd/remote.c
1712
xfrd->nsd->options->region);
usr.sbin/nsd/remote.c
1716
zopt->name = region_strdup(xfrd->nsd->options->region,
usr.sbin/nsd/remote.c
1718
zopt->pattern = pattern_options_find(xfrd->nsd->options, pname);
usr.sbin/nsd/remote.c
1721
if(!nsd_options_insert_zone(xfrd->nsd->options, zopt)) {
usr.sbin/nsd/remote.c
1729
getzonestatid(xfrd->nsd->options, zopt));
usr.sbin/nsd/remote.c
1751
pattern_options_remove(xfrd->nsd->options, name);
usr.sbin/nsd/remote.c
1759
pattern_options_add_modify(xfrd->nsd->options, p);
usr.sbin/nsd/remote.c
1839
nz->options->name));
usr.sbin/nsd/remote.c
1847
nz->options->name));
usr.sbin/nsd/remote.c
1854
nz->options->name));
usr.sbin/nsd/remote.c
1898
struct pattern_options* oldp = nz->options->pattern;
usr.sbin/nsd/remote.c
1927
nz->notify_current = nz->options->pattern->notify;
usr.sbin/nsd/remote.c
1946
struct nsd_options* oldopt = xfrd->nsd->options;
usr.sbin/nsd/remote.c
2067
if(xfrd->nsd->options->rrl_ratelimit != newopt->rrl_ratelimit)
usr.sbin/nsd/remote.c
2069
if(xfrd->nsd->options->rrl_whitelist_ratelimit != newopt->rrl_whitelist_ratelimit)
usr.sbin/nsd/remote.c
2071
if(xfrd->nsd->options->rrl_slip != newopt->rrl_slip)
usr.sbin/nsd/remote.c
2101
struct nsd_options* oldopt = xfrd->nsd->options;
usr.sbin/nsd/remote.c
2158
const char* cfgfile = xfrd->nsd->options->configfile;
usr.sbin/nsd/remote.c
2179
xfrd->nsd->options)) {
usr.sbin/nsd/remote.c
2211
const char *file = xfrd->nsd->options->configfile;
usr.sbin/nsd/remote.c
2213
struct nsd_options* options;
usr.sbin/nsd/remote.c
2218
xfrd->nsd->options->configfile, xfrd->nsd->chrootdir,
usr.sbin/nsd/remote.c
2224
options = nsd_options_create(region);
usr.sbin/nsd/remote.c
2227
options, file, print_cfg_err, NULL, xfrd->nsd->options))
usr.sbin/nsd/remote.c
2232
repat_keys(xfrd, options);
usr.sbin/nsd/remote.c
2233
repat_patterns(xfrd, options); /* adds/deletes zones too */
usr.sbin/nsd/remote.c
2234
repat_options(xfrd, options);
usr.sbin/nsd/remote.c
2256
RBTREE_FOR(key, struct key_options*, xfrd->nsd->options->keys) {
usr.sbin/nsd/remote.c
2262
struct key_options* key_opts = key_options_find(xfrd->nsd->options, arg);
usr.sbin/nsd/remote.c
2276
struct region* region = xfrd->nsd->options->region;
usr.sbin/nsd/remote.c
2289
key_opt = key_options_find(xfrd->nsd->options, arg);
usr.sbin/nsd/remote.c
2332
region_type* region = xfrd->nsd->options->region;
usr.sbin/nsd/remote.c
2348
if(key_options_find(xfrd->nsd->options, arg)) {
usr.sbin/nsd/remote.c
2406
region_type* region = xfrd->nsd->options->region;
usr.sbin/nsd/remote.c
2426
key_opt = key_options_find(xfrd->nsd->options, arg2);
usr.sbin/nsd/remote.c
2472
key_opt = key_options_find(xfrd->nsd->options, arg);
usr.sbin/nsd/remote.c
2477
RBTREE_FOR(zone, struct zone_options*, xfrd->nsd->options->zone_options)
usr.sbin/nsd/remote.c
2507
if(!nsd->options->cookie_secret_file)
usr.sbin/nsd/remote.c
2530
if(!nsd->options->cookie_secret_file) {
usr.sbin/nsd/remote.c
2534
else if((f = fopen(nsd->options->cookie_secret_file, "w")) == NULL ) {
usr.sbin/nsd/remote.c
2537
, nsd->options->cookie_secret_file
usr.sbin/nsd/remote.c
2554
, nsd->options->cookie_secret_file);
usr.sbin/nsd/remote.c
2655
, nsd->options->cookie_secret_file);
usr.sbin/nsd/remote.c
3115
RBTREE_FOR(n, struct zonestatname*, xfrd->nsd->options->zonestatnames){
usr.sbin/nsd/remote.c
3139
if(n->id+1 < xfrd->nsd->options->zonestatnames->count)
usr.sbin/nsd/remote.c
3140
resize_zonestat(xfrd, xfrd->nsd->options->zonestatnames->count);
usr.sbin/nsd/remote.c
3208
xfrd->nsd->options->zonelist_off))
usr.sbin/nsd/remote.c
3211
xfrd->nsd->options->region)))
usr.sbin/nsd/remote.c
3361
if (xfrd->nsd->options->control_enable) {
usr.sbin/nsd/remote.c
3429
if (listen(s, nsd.options->tcp_listen_queue) == -1) {
usr.sbin/nsd/remote.c
870
*zo = zone_options_find(xfrd->nsd->options, dname);
usr.sbin/nsd/server.c
1296
int rcv = nsd->options->receive_buffer_size;
usr.sbin/nsd/server.c
1297
int snd = nsd->options->send_buffer_size;
usr.sbin/nsd/server.c
1344
if(nsd->options->ip_freebind)
usr.sbin/nsd/server.c
1346
if(nsd->options->ip_transparent)
usr.sbin/nsd/server.c
1410
if(nsd->options->ip_freebind)
usr.sbin/nsd/server.c
1412
if(nsd->options->ip_transparent)
usr.sbin/nsd/server.c
1431
if(listen(sock->s, nsd->options->tcp_listen_queue) == -1) {
usr.sbin/nsd/server.c
1535
rrl_mmap_init(nsd->child_count, nsd->options->rrl_size,
usr.sbin/nsd/server.c
1536
nsd->options->rrl_ratelimit,
usr.sbin/nsd/server.c
1537
nsd->options->rrl_whitelist_ratelimit,
usr.sbin/nsd/server.c
1538
nsd->options->rrl_slip,
usr.sbin/nsd/server.c
1539
nsd->options->rrl_ipv4_prefix_length,
usr.sbin/nsd/server.c
1540
nsd->options->rrl_ipv6_prefix_length);
usr.sbin/nsd/server.c
1544
if ((nsd->db = namedb_open(nsd->options)) == NULL) {
usr.sbin/nsd/server.c
1561
namedb_check_zonefiles(nsd, nsd->options, NULL, NULL);
usr.sbin/nsd/server.c
1665
nsd_options_destroy(nsd->options);
usr.sbin/nsd/server.c
1680
nsd->options->xfrdir, (int)getpid(), (unsigned)getpid());
usr.sbin/nsd/server.c
1694
nsd->options->xfrdir, (int)getpid(), (unsigned)getpid());
usr.sbin/nsd/server.c
2267
key = nsd->options->tls_service_key;
usr.sbin/nsd/server.c
2268
pem = nsd->options->tls_service_pem;
usr.sbin/nsd/server.c
2585
if(nsd->options->verify_enable) {
usr.sbin/nsd/server.c
2915
if(reload_pid == -1 && nsd->options->dnstap_enable) {
usr.sbin/nsd/server.c
3338
if(nsd->options->proxy_protocol_port &&
usr.sbin/nsd/server.c
3339
sockaddr_uses_proxy_protocol_port(nsd->options,
usr.sbin/nsd/server.c
3363
if(nsd->options->proxy_protocol_port &&
usr.sbin/nsd/server.c
3364
sockaddr_uses_proxy_protocol_port(nsd->options,
usr.sbin/nsd/server.c
3371
nsd->options->tls_port &&
usr.sbin/nsd/server.c
3372
using_tls_port((struct sockaddr *)&sock->addr.ai_addr, nsd->options->tls_port))
usr.sbin/nsd/server.c
3384
nsd->options->tls_auth_port &&
usr.sbin/nsd/server.c
3385
using_tls_port((struct sockaddr *)&sock->addr.ai_addr, nsd->options->tls_auth_port))
usr.sbin/nsd/server.c
3457
nsd->verifier_limit = nsd->options->verifier_count;
usr.sbin/nsd/server.c
3719
if (nsd->options->xdp_interface) {
usr.sbin/nsd/server.c
5553
reject = data->nsd->options->tcp_reject_overflow;
usr.sbin/nsd/server.c
562
zone->zonestatid = getzonestatid(nsd->options, zone->opts);
usr.sbin/nsd/server.c
570
size_t num = (nsd->options->zonestatnames->count==0?1:
usr.sbin/nsd/server.c
571
nsd->options->zonestatnames->count);
usr.sbin/nsd/server.c
5715
if (!data->nsd->options->tcp_reject_overflow &&
usr.sbin/nsd/server.c
580
nsd->options->xfrdir, (int)getpid(), (unsigned)getpid());
usr.sbin/nsd/server.c
583
nsd->options->xfrdir, (int)getpid(), (unsigned)getpid());
usr.sbin/nsd/server.c
740
nsd->options->xfrdir, (int)getpid(), (unsigned)getpid());
usr.sbin/nsd/simdzone/include/zone.h
491
zone_options_t options;
usr.sbin/nsd/simdzone/include/zone.h
554
const zone_options_t *options,
usr.sbin/nsd/simdzone/include/zone.h
580
const zone_options_t *options,
usr.sbin/nsd/simdzone/include/zone.h
639
(((parser)->options.log.mask & ZONE_ERROR) ? \
usr.sbin/nsd/simdzone/include/zone.h
654
(((parser)->options.mask & ZONE_WARNING) ? \
usr.sbin/nsd/simdzone/include/zone.h
669
(((parser)->options.mask & ZONE_INFO) ? \
usr.sbin/nsd/simdzone/src/bench.c
216
zone_options_t options;
usr.sbin/nsd/simdzone/src/bench.c
217
memset(&options, 0, sizeof(options));
usr.sbin/nsd/simdzone/src/bench.c
218
options.pretty_ttls = true;
usr.sbin/nsd/simdzone/src/bench.c
219
options.origin.octets = root;
usr.sbin/nsd/simdzone/src/bench.c
220
options.origin.length = 1;
usr.sbin/nsd/simdzone/src/bench.c
221
options.accept.callback = &bench_accept;
usr.sbin/nsd/simdzone/src/bench.c
222
options.default_ttl = 3600;
usr.sbin/nsd/simdzone/src/bench.c
223
options.default_class = 1;
usr.sbin/nsd/simdzone/src/bench.c
229
if (zone_open(&parser, &options, &buffers, argv[argc-1], NULL) < 0)
usr.sbin/nsd/simdzone/src/generic/format.h
171
if (!scan_ttl(token->data, token->length, parser->options.pretty_ttls, &parser->file->last_ttl))
usr.sbin/nsd/simdzone/src/generic/format.h
193
if (!scan_ttl(token->data, token->length, parser->options.pretty_ttls, &parser->file->last_ttl))
usr.sbin/nsd/simdzone/src/generic/format.h
250
if (parser->options.no_includes)
usr.sbin/nsd/simdzone/src/generic/format.h
298
if (depth > parser->options.include_limit) {
usr.sbin/nsd/simdzone/src/generic/format.h
306
if (parser->options.include.callback) {
usr.sbin/nsd/simdzone/src/generic/format.h
307
code = parser->options.include.callback(
usr.sbin/nsd/simdzone/src/generic/format.h
353
if (!scan_ttl(token->data, token->length, parser->options.pretty_ttls, &parser->file->dollar_ttl))
usr.sbin/nsd/simdzone/src/generic/parser.h
212
if (code == ZONE_SEMANTIC_ERROR && parser->options.secondary)
usr.sbin/nsd/simdzone/src/generic/svcb.h
945
if (parser->options.secondary)
usr.sbin/nsd/simdzone/src/generic/ttl.h
106
if (!scan_ttl(token->data, token->length, parser->options.pretty_ttls, &ttl))
usr.sbin/nsd/simdzone/src/generic/types.h
216
int32_t code = parser->options.accept.callback(
usr.sbin/nsd/simdzone/src/zone.c
191
parser->options.origin.octets,
usr.sbin/nsd/simdzone/src/zone.c
192
parser->options.origin.length);
usr.sbin/nsd/simdzone/src/zone.c
193
file->origin.length = parser->options.origin.length;
usr.sbin/nsd/simdzone/src/zone.c
194
file->last_class = parser->options.default_class;
usr.sbin/nsd/simdzone/src/zone.c
195
file->dollar_ttl = parser->options.default_ttl;
usr.sbin/nsd/simdzone/src/zone.c
196
file->last_ttl = parser->options.default_ttl;
usr.sbin/nsd/simdzone/src/zone.c
346
const zone_options_t *options,
usr.sbin/nsd/simdzone/src/zone.c
350
if (!options->accept.callback)
usr.sbin/nsd/simdzone/src/zone.c
352
if (!options->default_ttl)
usr.sbin/nsd/simdzone/src/zone.c
354
if (!options->secondary && options->default_ttl > INT32_MAX)
usr.sbin/nsd/simdzone/src/zone.c
356
if (!options->origin.octets || !options->origin.length)
usr.sbin/nsd/simdzone/src/zone.c
359
const uint8_t *root = &options->origin.octets[options->origin.length - 1];
usr.sbin/nsd/simdzone/src/zone.c
362
const uint8_t *label = &options->origin.octets[0];
usr.sbin/nsd/simdzone/src/zone.c
374
parser->options = *options;
usr.sbin/nsd/simdzone/src/zone.c
386
if (!parser->options.no_includes && !parser->options.include_limit)
usr.sbin/nsd/simdzone/src/zone.c
387
parser->options.include_limit = 10; // arbitrary, default in NSD
usr.sbin/nsd/simdzone/src/zone.c
394
const zone_options_t *options,
usr.sbin/nsd/simdzone/src/zone.c
401
if ((code = initialize_parser(parser, options, buffers, user_data)) < 0)
usr.sbin/nsd/simdzone/src/zone.c
422
const zone_options_t *options,
usr.sbin/nsd/simdzone/src/zone.c
429
if ((code = zone_open(parser, options, buffers, path, user_data)) < 0)
usr.sbin/nsd/simdzone/src/zone.c
438
const zone_options_t *options,
usr.sbin/nsd/simdzone/src/zone.c
446
if ((code = initialize_parser(parser, options, buffers, user_data)) < 0)
usr.sbin/nsd/simdzone/src/zone.c
500
if (!(priority & ~parser->options.log.mask))
usr.sbin/nsd/simdzone/src/zone.c
507
if (parser->options.log.callback)
usr.sbin/nsd/simdzone/src/zone.c
508
callback = parser->options.log.callback;
usr.sbin/nsd/util.c
1182
void reconfig_cookies(struct nsd* nsd, struct nsd_options* options)
usr.sbin/nsd/util.c
1191
nsd->do_answer_cookie = options->answer_cookie;
usr.sbin/nsd/util.c
1194
if(options->cookie_secret) {
usr.sbin/nsd/util.c
1198
hex_pton(options->cookie_secret,
usr.sbin/nsd/util.c
1204
if(options->cookie_staging_secret) {
usr.sbin/nsd/util.c
1208
hex_pton(options->cookie_staging_secret,
usr.sbin/nsd/util.c
1221
if(!(fn = nsd->options->cookie_secret_file))
usr.sbin/nsd/util.c
1239
&& nsd->options->cookie_secret_file_is_default
usr.sbin/nsd/util.h
444
void reconfig_cookies(struct nsd* nsd, struct nsd_options* options);
usr.sbin/nsd/verify.c
439
} else if (nsd->options->verifier != NULL) {
usr.sbin/nsd/verify.c
440
command = nsd->options->verifier;
usr.sbin/nsd/verify.c
452
timeout = nsd->options->verifier_timeout;
usr.sbin/nsd/verify.c
460
fdin = nsd->options->verifier_feed_zone ? -2 : -1;
usr.sbin/nsd/verify.c
49
verify = nsd->options->verify_zones;
usr.sbin/nsd/xfrd-catalog-zones.c
1000
to_add->group_name = cmz->options.pattern->pname;
usr.sbin/nsd/xfrd-catalog-zones.c
1013
if(!(cmz = as_catalog_member_zone(zone_options_find(xfrd->nsd->options,
usr.sbin/nsd/xfrd-catalog-zones.c
1023
to_delete->group_name = cmz->options.pattern->pname;
usr.sbin/nsd/xfrd-catalog-zones.c
1132
(const dname_type*)xw->producer_zone->options->node.key;
usr.sbin/nsd/xfrd-catalog-zones.c
1141
, xw->producer_zone->options->pattern->pname
usr.sbin/nsd/xfrd-catalog-zones.c
1158
(const dname_type*)xw->producer_zone->options->node.key;
usr.sbin/nsd/xfrd-catalog-zones.c
1221
region_recycle( xfrd->nsd->options->region
usr.sbin/nsd/xfrd-catalog-zones.c
200
consumer_zone->options = zone;
usr.sbin/nsd/xfrd-catalog-zones.c
241
" deleted", consumer_zone->options->name);
usr.sbin/nsd/xfrd-catalog-zones.c
249
cmz->options.name, consumer_zone->options->name);
usr.sbin/nsd/xfrd-catalog-zones.c
258
&& consumer_zone->options && consumer_zone->options->node.key) {
usr.sbin/nsd/xfrd-catalog-zones.c
261
(const dname_type*)consumer_zone->options->node.key);
usr.sbin/nsd/xfrd-catalog-zones.c
282
consumer_zone->options->name, message);
usr.sbin/nsd/xfrd-catalog-zones.c
350
const dname_type* dname = consumer_member_zone->options.node.key;
usr.sbin/nsd/xfrd-catalog-zones.c
357
if(zone_is_slave(&consumer_member_zone->options)) {
usr.sbin/nsd/xfrd-catalog-zones.c
363
if(zone_is_catalog_consumer(&consumer_member_zone->options)) {
usr.sbin/nsd/xfrd-catalog-zones.c
370
region_recycle( xfrd->nsd->options->region,
usr.sbin/nsd/xfrd-catalog-zones.c
375
zone_options_delete(xfrd->nsd->options,&consumer_member_zone->options);
usr.sbin/nsd/xfrd-catalog-zones.c
390
"for checking", consumer_zone->options->name));
usr.sbin/nsd/xfrd-catalog-zones.c
393
xfrd->nsd->db, name, consumer_zone->options), NULL, NULL);
usr.sbin/nsd/xfrd-catalog-zones.c
401
consumer_zone->options->node.key,
usr.sbin/nsd/xfrd-catalog-zones.c
402
consumer_zone->options),
usr.sbin/nsd/xfrd-catalog-zones.c
410
xfrd->nsd->db, name, consumer_zone->options),
usr.sbin/nsd/xfrd-catalog-zones.c
480
cursor_cmz(cursor)->options.name));
usr.sbin/nsd/xfrd-catalog-zones.c
515
xfrd->nsd->db = namedb_open(xfrd->nsd->options);
usr.sbin/nsd/xfrd-catalog-zones.c
529
consumer_zone->options);
usr.sbin/nsd/xfrd-catalog-zones.c
544
consumer_zone->options->name);
usr.sbin/nsd/xfrd-catalog-zones.c
55
if (!consumer_zone->options->pattern
usr.sbin/nsd/xfrd-catalog-zones.c
559
consumer_zone->options->name);
usr.sbin/nsd/xfrd-catalog-zones.c
56
|| !consumer_zone->options->pattern->catalog_member_pattern)
usr.sbin/nsd/xfrd-catalog-zones.c
58
return pattern_options_find(xfrd->nsd->options,
usr.sbin/nsd/xfrd-catalog-zones.c
59
consumer_zone->options->pattern->catalog_member_pattern);
usr.sbin/nsd/xfrd-catalog-zones.c
640
xfrd->nsd->options, group_value)))
usr.sbin/nsd/xfrd-catalog-zones.c
67
if(xfrd->nsd->options->zonestatnames->count != xfrd->zonestat_safe)
usr.sbin/nsd/xfrd-catalog-zones.c
70
xfrd->nsd->options->zonestatnames->count);
usr.sbin/nsd/xfrd-catalog-zones.c
735
cursor_cmz(cursor)->options.pattern->pname,
usr.sbin/nsd/xfrd-catalog-zones.c
738
if (cursor_cmz(cursor)->options.pattern ==
usr.sbin/nsd/xfrd-catalog-zones.c
745
zopt = &cursor_cmz(cursor)->options;
usr.sbin/nsd/xfrd-catalog-zones.c
773
getzonestatid( xfrd->nsd->options
usr.sbin/nsd/xfrd-catalog-zones.c
799
zopt = zone_options_find(xfrd->nsd->options,
usr.sbin/nsd/xfrd-catalog-zones.c
827
to_add= catalog_member_zone_create(xfrd->nsd->options->region);
usr.sbin/nsd/xfrd-catalog-zones.c
828
to_add->options.name = region_strdup(
usr.sbin/nsd/xfrd-catalog-zones.c
829
xfrd->nsd->options->region, member_domain_str);
usr.sbin/nsd/xfrd-catalog-zones.c
830
to_add->options.pattern = pattern;
usr.sbin/nsd/xfrd-catalog-zones.c
831
if (!nsd_options_insert_zone(xfrd->nsd->options,
usr.sbin/nsd/xfrd-catalog-zones.c
832
&to_add->options)) {
usr.sbin/nsd/xfrd-catalog-zones.c
836
zone_options_delete(xfrd->nsd->options,
usr.sbin/nsd/xfrd-catalog-zones.c
837
&to_add->options);
usr.sbin/nsd/xfrd-catalog-zones.c
840
to_add->member_id = dname_copy( xfrd->nsd->options->region
usr.sbin/nsd/xfrd-catalog-zones.c
856
getzonestatid(xfrd->nsd->options, &to_add->options));
usr.sbin/nsd/xfrd-catalog-zones.c
861
if(zone_is_catalog_consumer(&to_add->options)) {
usr.sbin/nsd/xfrd-catalog-zones.c
862
xfrd_init_catalog_consumer_zone(xfrd,&to_add->options);
usr.sbin/nsd/xfrd-catalog-zones.c
867
&to_add->options);
usr.sbin/nsd/xfrd-catalog-zones.c
869
if(zone_is_slave(&to_add->options)) {
usr.sbin/nsd/xfrd-catalog-zones.c
870
xfrd_init_slave_zone(xfrd, &to_add->options);
usr.sbin/nsd/xfrd-catalog-zones.c
914
if(!cmz || !cmz->options.pattern->catalog_producer_zone)
usr.sbin/nsd/xfrd-catalog-zones.c
918
producer_name = dname_parse(xfrd->nsd->options->region,
usr.sbin/nsd/xfrd-catalog-zones.c
919
cmz->options.pattern->catalog_producer_zone);
usr.sbin/nsd/xfrd-catalog-zones.c
920
producer_zopt = zone_options_find(xfrd->nsd->options, producer_name);
usr.sbin/nsd/xfrd-catalog-zones.c
922
region_recycle( xfrd->nsd->options->region, (void *)producer_name
usr.sbin/nsd/xfrd-catalog-zones.c
926
"zone '%s'", producer_name_str, cmz->options.name);
usr.sbin/nsd/xfrd-catalog-zones.c
932
cmz->options.name, producer_zopt->name);
usr.sbin/nsd/xfrd-catalog-zones.c
946
producer_zone->options = producer_zopt;
usr.sbin/nsd/xfrd-catalog-zones.c
986
cmz->member_id = dname_copy(xfrd->nsd->options->region,
usr.sbin/nsd/xfrd-catalog-zones.c
999
to_add->member_zone_name = (dname_type*)cmz->options.node.key;
usr.sbin/nsd/xfrd-catalog-zones.h
22
struct zone_options* options;
usr.sbin/nsd/xfrd-catalog-zones.h
42
struct zone_options* options;
usr.sbin/nsd/xfrd-disk.c
145
const char* statefile = xfrd->nsd->options->xfrdfile;
usr.sbin/nsd/xfrd-disk.c
457
const char* statefile = xfrd->nsd->options->xfrdfile;
usr.sbin/nsd/xfrd-disk.c
529
nsd->options->xfrdir, (int)nsd->pid);
usr.sbin/nsd/xfrd-notify.c
100
not->apex_str = options->name;
usr.sbin/nsd/xfrd-notify.c
102
not->options = options;
usr.sbin/nsd/xfrd-notify.c
238
zone->options->pattern->notify_retry) {
usr.sbin/nsd/xfrd-notify.c
303
zone->options->pattern->outgoing_interface);
usr.sbin/nsd/xfrd-notify.c
476
zone->notify_current = zone->options->pattern->notify;
usr.sbin/nsd/xfrd-notify.c
496
if(!zone->options->pattern->notify) {
usr.sbin/nsd/xfrd-notify.c
513
zone->notify_current = zone->options->pattern->notify;
usr.sbin/nsd/xfrd-notify.c
94
struct zone_options* options)
usr.sbin/nsd/xfrd-notify.c
99
not->apex = options->node.key;
usr.sbin/nsd/xfrd-notify.h
57
struct zone_options* options;
usr.sbin/nsd/xfrd-notify.h
81
struct zone_options* options);
usr.sbin/nsd/xfrd.c
215
if(nsd->options->zonefiles_write)
usr.sbin/nsd/xfrd.c
228
xfrd->tcp_set = xfrd_tcp_set_create(xfrd->region, nsd->options->tls_cert_bundle, nsd->options->xfrd_tcp_max, nsd->options->xfrd_tcp_pipeline);
usr.sbin/nsd/xfrd.c
237
if(nsd->options->xfrdfile != NULL && nsd->options->xfrdfile[0]!=0)
usr.sbin/nsd/xfrd.c
2676
if(xfrd->nsd->options->xfrd_reload_timeout == -1)
usr.sbin/nsd/xfrd.c
2684
xfrd->nsd->options->xfrd_reload_timeout;
usr.sbin/nsd/xfrd.c
2693
if(tv.tv_sec > xfrd->nsd->options->xfrd_reload_timeout)
usr.sbin/nsd/xfrd.c
2694
tv.tv_sec = xfrd->nsd->options->xfrd_reload_timeout;
usr.sbin/nsd/xfrd.c
2715
xfrd->nsd->options->xfrd_reload_timeout;
usr.sbin/nsd/xfrd.c
300
if(xfrd->nsd->options->reload_config) {
usr.sbin/nsd/xfrd.c
303
if(xfrd->nsd->options->zonefiles_check) {
usr.sbin/nsd/xfrd.c
3039
if(xfrd->nsd->options->zonefiles_write == 0)
usr.sbin/nsd/xfrd.c
3058
if(xfrd->nsd->options->zonefiles_write == 0)
usr.sbin/nsd/xfrd.c
3060
tv.tv_sec = xfrd->nsd->options->zonefiles_write;
usr.sbin/nsd/xfrd.c
377
zone_list_close(nsd.options);
usr.sbin/nsd/xfrd.c
378
if(xfrd->nsd->options->xfrdfile != NULL && xfrd->nsd->options->xfrdfile[0]!=0)
usr.sbin/nsd/xfrd.c
388
if(xfrd->nsd->options->zonefiles_write) {
usr.sbin/nsd/xfrd.c
498
nsd_options_destroy(nsd.options);
usr.sbin/nsd/xfrd.c
595
RBTREE_FOR(zone_opt, struct zone_options*, xfrd->nsd->options->zone_options)
usr.sbin/nsd/xfrd.c
644
consumer_zone->options->name);
usr.sbin/nsd/xfrd.c
664
consumer_zone->options->name,
usr.sbin/nsd/xfrd.c
672
xfr->msg_new_serial, consumer_zone->options->name));
usr.sbin/nsd/xfrd.c
680
xfrd->nsd->options, NULL, xfr->xfrfilenumber)) {
usr.sbin/nsd/xfrd.c
691
xfr->msg_new_serial, consumer_zone->options->name));
usr.sbin/nsd/xfrd.c
791
producer_zone->options->name,
usr.sbin/nsd/xfrd.c
794
producer_zone->options->name,
usr.sbin/nsd/xfrd.c
801
"serial %u", producer_zone->options->name,
usr.sbin/nsd/xfrd.c
826
, consumer_zone->options);
usr.sbin/nsd/zonec.c
121
int priority = parser->options.secondary ? ZONE_WARNING : ZONE_ERROR;
usr.sbin/nsd/zonec.c
226
priority = parser->options.secondary ? ZONE_WARNING : ZONE_ERROR;
usr.sbin/nsd/zonec.c
281
if (!parser->options.secondary) {
usr.sbin/nsd/zonec.c
430
zone_options_t options;
usr.sbin/nsd/zonec.c
450
memset(&options, 0, sizeof(options));
usr.sbin/nsd/zonec.c
451
options.origin.octets = dname_name(origin);
usr.sbin/nsd/zonec.c
452
options.origin.length = origin->name_size;
usr.sbin/nsd/zonec.c
453
options.default_ttl = DEFAULT_TTL;
usr.sbin/nsd/zonec.c
454
options.default_class = CLASS_IN;
usr.sbin/nsd/zonec.c
455
options.secondary = zone_is_slave(zone->opts) != 0;
usr.sbin/nsd/zonec.c
456
options.pretty_ttls = true; /* non-standard, for backwards compatibility */
usr.sbin/nsd/zonec.c
457
options.log.callback = &zonec_log;
usr.sbin/nsd/zonec.c
458
options.accept.callback = &zonec_accept;
usr.sbin/nsd/zonec.c
459
options.include.callback = &zonec_include;
usr.sbin/nsd/zonec.c
462
if (zone_parse(&parser, &options, &buffers, zonefile, &state) != 0) {
usr.sbin/ntpd/config.c
140
save_opts = _res.options;
usr.sbin/ntpd/config.c
141
_res.options |= RES_USE_CD;
usr.sbin/ntpd/config.c
143
_res.options = save_opts;
usr.sbin/ntpd/ntp_dns.c
223
old_options = _res.options;
usr.sbin/ntpd/ntp_dns.c
226
_res.options |= RES_USE_CD;
usr.sbin/ntpd/ntp_dns.c
232
_res.options = old_options;
usr.sbin/ospf6ctl/ospf6ctl.c
1070
printf(" Options %s\n", print_ospf_options(nbr->options));
usr.sbin/ospf6ctl/ospf6ctl.c
811
prefix->prefixlen, print_prefix_opt(prefix->options));
usr.sbin/ospf6ctl/ospf6ctl.c
849
print_prefix_opt(prefix->options));
usr.sbin/ospf6ctl/ospf6ctl.c
959
print_prefix_opt(prefix->options),
usr.sbin/ospf6d/hello.c
184
nbr->options = opts;
usr.sbin/ospf6d/neighbor.c
694
nctl.options = nbr->options;
usr.sbin/ospf6d/ospf6.h
218
u_int8_t options;
usr.sbin/ospf6d/ospf6d.h
466
u_int32_t options;
usr.sbin/ospf6d/ospfe.c
1063
u_int32_t options;
usr.sbin/ospf6d/ospfe.c
1103
lsa_prefix.options = 0;
usr.sbin/ospf6d/ospfe.c
1117
options = area_ospf_options(iface->area);
usr.sbin/ospf6d/ospfe.c
1118
LSA_24_SETLO(lsa_link.opts, options);
usr.sbin/ospf6d/ospfe.h
83
u_int32_t options;
usr.sbin/ospf6d/rde.c
1381
(new->prefix->options & OSPF_PREFIX_NU) == 0 &&
usr.sbin/ospf6d/rde.c
1382
(new->prefix->options & OSPF_PREFIX_LA) == 0) {
usr.sbin/ospf6d/rde.c
1385
old->prefix->options |= new->prefix->options;
usr.sbin/ospf6d/rde.c
1565
lsa_prefix->options |= OSPF_PREFIX_LA;
usr.sbin/ospf6d/rde.h
87
u_int8_t options;
usr.sbin/ospf6d/rde_lsdb.c
993
p->options = lp->options;
usr.sbin/ospf6d/rde_spf.c
275
if (!(prefix->options & OSPF_PREFIX_NU)) {
usr.sbin/ospf6d/rde_spf.c
313
if (prefix->options & OSPF_PREFIX_NU)
usr.sbin/ospf6d/rde_spf.c
388
if (prefix->options & OSPF_PREFIX_NU)
usr.sbin/ospfctl/output.c
260
printf(" Options %s\n", print_ospf_options(nbr->options));
usr.sbin/ospfd/database.c
217
if ((nbr->capa_options & nbr->options) != nbr->options) {
usr.sbin/ospfd/database.c
221
nbr->capa_options, nbr->options);
usr.sbin/ospfd/hello.c
206
nbr->options = hello.opts;
usr.sbin/ospfd/neighbor.c
694
nctl.options = nbr->options | nbr->capa_options;
usr.sbin/ospfd/ospfd.h
509
u_int8_t options;
usr.sbin/ospfd/ospfe.h
87
u_int8_t options;
usr.sbin/ripd/message.c
280
if (oeconf->options & OPT_SPLIT_HORIZON)
usr.sbin/ripd/message.c
282
else if (oeconf->options & OPT_SPLIT_POISONED)
usr.sbin/ripd/parse.y
172
conf->options &= ~(OPT_SPLIT_HORIZON |
usr.sbin/ripd/parse.y
177
conf->options |= OPT_SPLIT_HORIZON;
usr.sbin/ripd/parse.y
179
conf->options |= OPT_SPLIT_POISONED;
usr.sbin/ripd/parse.y
189
conf->options |= OPT_TRIGGERED_UPDATES;
usr.sbin/ripd/parse.y
191
conf->options &= ~OPT_TRIGGERED_UPDATES;
usr.sbin/ripd/parse.y
782
conf->options = OPT_SPLIT_POISONED;
usr.sbin/ripd/printconf.c
48
if (conf->options & OPT_SPLIT_HORIZON)
usr.sbin/ripd/printconf.c
50
else if (conf->options & OPT_SPLIT_POISONED)
usr.sbin/ripd/printconf.c
55
if (conf->options & OPT_TRIGGERED_UPDATES)
usr.sbin/ripd/ripd.h
233
int options;
usr.sbin/smtpd/parse.y
139
uint32_t options;
usr.sbin/smtpd/parse.y
2143
if (listen_opts.options & LO_FILTER) {
usr.sbin/smtpd/parse.y
2154
listen_opts.options |= LO_FILTER;
usr.sbin/smtpd/parse.y
2160
if (listen_opts.options & LO_FILTER) {
usr.sbin/smtpd/parse.y
2169
listen_opts.options |= LO_FILTER;
usr.sbin/smtpd/parse.y
2185
if (listen_opts.options & LO_NODSN) {
usr.sbin/smtpd/parse.y
2189
listen_opts.options |= LO_NODSN;
usr.sbin/smtpd/parse.y
2193
if (listen_opts.options & LO_TAG) {
usr.sbin/smtpd/parse.y
2197
listen_opts.options |= LO_TAG;
usr.sbin/smtpd/parse.y
2209
if (listen_opts.options & LO_FAMILY) {
usr.sbin/smtpd/parse.y
2213
listen_opts.options |= LO_FAMILY;
usr.sbin/smtpd/parse.y
2217
if (listen_opts.options & LO_FAMILY) {
usr.sbin/smtpd/parse.y
2221
listen_opts.options |= LO_FAMILY;
usr.sbin/smtpd/parse.y
2227
if (listen_opts.options & LO_PORT) {
usr.sbin/smtpd/parse.y
2231
listen_opts.options |= LO_PORT;
usr.sbin/smtpd/parse.y
2245
if (listen_opts.options & LO_PORT) {
usr.sbin/smtpd/parse.y
2249
listen_opts.options |= LO_PORT;
usr.sbin/smtpd/parse.y
2261
if (listen_opts.options & LO_PORT) {
usr.sbin/smtpd/parse.y
2265
listen_opts.options |= LO_PORT;
usr.sbin/smtpd/parse.y
2275
if (listen_opts.options & LO_PORT) {
usr.sbin/smtpd/parse.y
2279
listen_opts.options |= LO_PORT;
usr.sbin/smtpd/parse.y
2290
if (listen_opts.options & LO_FILTER) {
usr.sbin/smtpd/parse.y
2300
listen_opts.options |= LO_FILTER;
usr.sbin/smtpd/parse.y
2306
if (listen_opts.options & LO_FILTER) {
usr.sbin/smtpd/parse.y
2315
listen_opts.options |= LO_FILTER;
usr.sbin/smtpd/parse.y
2326
if (listen_opts.options & LO_SSL) {
usr.sbin/smtpd/parse.y
2330
listen_opts.options |= LO_SSL;
usr.sbin/smtpd/parse.y
2334
if (listen_opts.options & LO_SSL) {
usr.sbin/smtpd/parse.y
2338
listen_opts.options |= LO_SSL;
usr.sbin/smtpd/parse.y
2342
if (listen_opts.options & LO_SSL) {
usr.sbin/smtpd/parse.y
2346
listen_opts.options |= LO_SSL;
usr.sbin/smtpd/parse.y
2350
if (listen_opts.options & LO_SSL) {
usr.sbin/smtpd/parse.y
2354
listen_opts.options |= LO_SSL;
usr.sbin/smtpd/parse.y
2358
if (listen_opts.options & LO_SSL) {
usr.sbin/smtpd/parse.y
2362
listen_opts.options |= LO_SSL;
usr.sbin/smtpd/parse.y
2387
if (listen_opts.options & LO_CA) {
usr.sbin/smtpd/parse.y
2391
listen_opts.options |= LO_CA;
usr.sbin/smtpd/parse.y
2395
if (listen_opts.options & LO_AUTH) {
usr.sbin/smtpd/parse.y
2399
listen_opts.options |= LO_AUTH;
usr.sbin/smtpd/parse.y
2403
if (listen_opts.options & LO_AUTH) {
usr.sbin/smtpd/parse.y
2407
listen_opts.options |= LO_AUTH;
usr.sbin/smtpd/parse.y
2411
if (listen_opts.options & LO_AUTH) {
usr.sbin/smtpd/parse.y
2415
listen_opts.options |= LO_AUTH;
usr.sbin/smtpd/parse.y
2420
if (listen_opts.options & LO_AUTH) {
usr.sbin/smtpd/parse.y
2424
listen_opts.options |= LO_AUTH;
usr.sbin/smtpd/parse.y
2429
if (listen_opts.options & LO_TAG) {
usr.sbin/smtpd/parse.y
2433
listen_opts.options |= LO_TAG;
usr.sbin/smtpd/parse.y
2443
if (listen_opts.options & LO_HOSTNAME) {
usr.sbin/smtpd/parse.y
2447
listen_opts.options |= LO_HOSTNAME;
usr.sbin/smtpd/parse.y
2454
if (listen_opts.options & LO_HOSTNAMES) {
usr.sbin/smtpd/parse.y
2458
listen_opts.options |= LO_HOSTNAMES;
usr.sbin/smtpd/parse.y
2473
if (listen_opts.options & LO_RECEIVEDAUTH) {
usr.sbin/smtpd/parse.y
2477
listen_opts.options |= LO_RECEIVEDAUTH;
usr.sbin/smtpd/parse.y
2481
if (listen_opts.options & LO_NODSN) {
usr.sbin/smtpd/parse.y
2485
listen_opts.options |= LO_NODSN;
usr.sbin/smtpd/parse.y
2489
if (listen_opts.options & LO_PROXY) {
usr.sbin/smtpd/parse.y
2493
listen_opts.options |= LO_PROXY;
usr.sbin/smtpd/parse.y
2499
if (listen_opts.options & LO_SENDERS) {
usr.sbin/smtpd/parse.y
2503
listen_opts.options |= LO_SENDERS;
usr.sbin/smtpd/parse.y
2515
if (listen_opts.options & LO_SENDERS) {
usr.sbin/smtpd/parse.y
2519
listen_opts.options |= LO_SENDERS|LO_MASQUERADE;
usr.sbin/smtpd/parse.y
3340
if (lo->options & LO_FILTER) {
usr.sbin/smtpd/parse.y
3392
if (lo->options & LO_MASQUERADE)
usr.sbin/smtpd/parse.y
3676
if (lo->options & LO_MASKSOURCE) {
usr.sbin/smtpd/parse.y
3680
lo->options |= LO_MASKSOURCE;
usr.sbin/tcpdump/print-ospf.c
102
ospf_print_bits(const struct bits *bp, u_char options)
usr.sbin/tcpdump/print-ospf.c
107
if (options & bp->bit) {
usr.sbin/tcpdump/print-ospf6.c
106
ospf6_print_bits(const struct bits *bp, u_char options)
usr.sbin/tcpdump/print-ospf6.c
111
if (options & bp->bit) {
usr.sbin/tftpd/tftpd.c
1046
if (options != NULL && options[OPT_TSIZE].o_request) {
usr.sbin/tftpd/tftpd.c
1048
options[OPT_TSIZE].o_reply = stbuf.st_size;
usr.sbin/tftpd/tftpd.c
1051
options[OPT_TSIZE].o_reply =
usr.sbin/tftpd/tftpd.c
1052
strtonum(options[OPT_TSIZE].o_request,
usr.sbin/tftpd/tftpd.c
135
struct opt_client *options;
usr.sbin/tftpd/tftpd.c
1511
struct opt_client *options = client->options;
usr.sbin/tftpd/tftpd.c
1522
if (options[i].o_request == NULL)
usr.sbin/tftpd/tftpd.c
1526
options[i].o_reply);
usr.sbin/tftpd/tftpd.c
657
free(client->options);
usr.sbin/tftpd/tftpd.c
785
struct opt_client *options)
usr.sbin/tftpd/tftpd.c
812
options[i].o_request = ++cp;
usr.sbin/tftpd/tftpd.c
828
struct opt_client *options;
usr.sbin/tftpd/tftpd.c
879
client->options = options = calloc(NOPT, sizeof(*client->options));
usr.sbin/tftpd/tftpd.c
880
if (options == NULL) {
usr.sbin/tftpd/tftpd.c
885
if (parse_options(client, cp, size, options)) {
usr.sbin/tftpd/tftpd.c
886
if (options[OPT_TIMEOUT].o_request != NULL) {
usr.sbin/tftpd/tftpd.c
887
to = strtonum(options[OPT_TIMEOUT].o_request,
usr.sbin/tftpd/tftpd.c
893
options[OPT_TIMEOUT].o_reply = client->tv.tv_sec = to;
usr.sbin/tftpd/tftpd.c
896
if (options[OPT_BLKSIZE].o_request) {
usr.sbin/tftpd/tftpd.c
898
options[OPT_BLKSIZE].o_request,
usr.sbin/tftpd/tftpd.c
905
options[OPT_BLKSIZE].o_reply = client->segment_size;
usr.sbin/tftpd/tftpd.c
908
free(options);
usr.sbin/tftpd/tftpd.c
909
client->options = NULL;
usr.sbin/tftpd/tftpd.c
942
if (client->options) {
usr.sbin/tftpd/tftpd.c
946
free(client->options);
usr.sbin/tftpd/tftpd.c
947
client->options = NULL;
usr.sbin/tftpd/tftpd.c
973
struct opt_client *options = client->options;
usr.sbin/tftpd/tftpd.c
989
if (options != NULL && options[OPT_TSIZE].o_request)
usr.sbin/tftpd/tftpd.c
990
options[OPT_TSIZE].o_reply = 512;
usr.sbin/tokeninit/tokeninit.c
128
tt->name, (tt->options & TOKEN_HEXINIT) ? "h" : "");
usr.sbin/tokeninit/tokeninit.c
96
if (tt->options & TOKEN_HEXINIT)
usr.sbin/vmd/dhcp.c
183
memcpy(&resp.options, DHCP_OPTIONS_COOKIE, DHCP_OPTIONS_COOKIE_LEN);
usr.sbin/vmd/dhcp.c
201
resp.options[o++] = DHO_DHCP_MESSAGE_TYPE;
usr.sbin/vmd/dhcp.c
202
resp.options[o++] = sizeof(dhcptype);
usr.sbin/vmd/dhcp.c
203
memcpy(&resp.options[o], &dhcptype, sizeof(dhcptype));
usr.sbin/vmd/dhcp.c
207
resp.options[o++] = DHO_DHCP_LEASE_TIME;
usr.sbin/vmd/dhcp.c
208
resp.options[o++] = sizeof(ltime);
usr.sbin/vmd/dhcp.c
210
memcpy(&resp.options[o], <ime, sizeof(ltime));
usr.sbin/vmd/dhcp.c
213
resp.options[o++] = DHO_DHCP_SERVER_IDENTIFIER;
usr.sbin/vmd/dhcp.c
214
resp.options[o++] = sizeof(server_addr);
usr.sbin/vmd/dhcp.c
215
memcpy(&resp.options[o], &server_addr, sizeof(server_addr));
usr.sbin/vmd/dhcp.c
219
resp.options[o++] = DHO_SUBNET_MASK;
usr.sbin/vmd/dhcp.c
220
resp.options[o++] = sizeof(mask);
usr.sbin/vmd/dhcp.c
222
memcpy(&resp.options[o], &mask, sizeof(mask));
usr.sbin/vmd/dhcp.c
225
resp.options[o++] = DHO_ROUTERS;
usr.sbin/vmd/dhcp.c
226
resp.options[o++] = sizeof(server_addr);
usr.sbin/vmd/dhcp.c
227
memcpy(&resp.options[o], &server_addr, sizeof(server_addr));
usr.sbin/vmd/dhcp.c
230
resp.options[o++] = DHO_DOMAIN_NAME_SERVERS;
usr.sbin/vmd/dhcp.c
231
resp.options[o++] = sizeof(server_addr);
usr.sbin/vmd/dhcp.c
232
memcpy(&resp.options[o], &server_addr, sizeof(server_addr));
usr.sbin/vmd/dhcp.c
238
if (o + 2 + len + 1 > sizeof(resp.options)) {
usr.sbin/vmd/dhcp.c
242
resp.options[o++] = DHO_HOST_NAME;
usr.sbin/vmd/dhcp.c
243
resp.options[o++] = len;
usr.sbin/vmd/dhcp.c
244
memcpy(&resp.options[o], hostname, len);
usr.sbin/vmd/dhcp.c
248
resp.options[o++] = DHO_END;
usr.sbin/vmd/dhcp.c
37
#define OPTIONS_OFFSET offsetof(struct dhcp_packet, options)
usr.sbin/vmd/dhcp.h
77
unsigned char options[DHCP_OPTION_LEN];
usr.sbin/ypserv/mkalias/mkalias.c
93
if ((_res.options & RES_INIT) == 0)
usr.sbin/ypserv/ypserv/ypserv_db.c
376
if ((_res.options & RES_INIT) == 0)