bin/ksh/misc.c
102
ns = alloc(n + 1, ap);
bin/ksh/misc.c
103
ns[0] = '\0';
bin/ksh/misc.c
104
return strncat(ns, s, n);
bin/ksh/misc.c
98
char *ns;
bin/ps/ps.c
476
char *newopts, *ns, *cp;
bin/ps/ps.c
479
if ((newopts = ns = malloc(2 + len + 1)) == NULL)
bin/ps/ps.c
485
*ns++ = '-'; /* add option flag */
bin/ps/ps.c
507
memmove(ns, s, (size_t)(cp - s)); /* copy up to trailing number */
bin/ps/ps.c
508
ns += cp - s;
bin/ps/ps.c
517
*ns++ = 'p';
bin/ps/ps.c
519
(void)strlcpy(ns, cp, newopts + len + 3 - ns);
games/cribbage/support.c
237
int nc, ns;
games/cribbage/support.c
249
ns = 0;
games/cribbage/support.c
259
sums[ns] +=
games/cribbage/support.c
262
sums[ns] += adjust(cb, d[k]);
games/cribbage/support.c
264
sums[ns] -= adjust(cb, d[k]);
games/cribbage/support.c
266
++ns;
include/resolv.h
222
typedef res_sendhookact (*res_send_qhook)(struct sockaddr_in * const *ns,
include/resolv.h
229
typedef res_sendhookact (*res_send_rhook)(const struct sockaddr_in *ns,
lib/libc/asr/asr_debug.c
174
int i, an, ns, ar, n;
lib/libc/asr/asr_debug.c
197
ns = an + h.ancount;
lib/libc/asr/asr_debug.c
198
ar = ns + h.nscount;
lib/libc/asr/asr_debug.c
204
if (i == ns)
lib/libc/asr/asr_debug.c
97
print_dname(rr->rr.ns.nsname, buf, max);
lib/libc/asr/asr_private.h
79
} ns;
lib/libc/asr/asr_utils.c
313
unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname));
lib/libcrypto/x509/x509_purp.c
391
ASN1_BIT_STRING *ns;
lib/libcrypto/x509/x509_purp.c
504
if ((ns = X509_get_ext_d2i(x, NID_netscape_cert_type, &i, NULL))) {
lib/libcrypto/x509/x509_purp.c
505
if (ns->length > 0)
lib/libcrypto/x509/x509_purp.c
506
x->ex_nscert = ns->data[0];
lib/libcrypto/x509/x509_purp.c
510
ASN1_BIT_STRING_free(ns);
lib/libexpat/lib/xmltok_ns.c
42
return &ns(internal_utf8_encoding).enc;
lib/libexpat/lib/xmltok_ns.c
48
return &ns(internal_little2_encoding).enc;
lib/libexpat/lib/xmltok_ns.c
50
return &ns(internal_big2_encoding).enc;
lib/libexpat/lib/xmltok_ns.c
53
return (*(const char *)&n ? &ns(internal_little2_encoding).enc
lib/libexpat/lib/xmltok_ns.c
54
: &ns(internal_big2_encoding).enc);
lib/libexpat/lib/xmltok_ns.c
59
&ns(latin1_encoding).enc, &ns(ascii_encoding).enc,
lib/libexpat/lib/xmltok_ns.c
60
&ns(utf8_encoding).enc, &ns(big2_encoding).enc,
lib/libexpat/lib/xmltok_ns.c
61
&ns(big2_encoding).enc, &ns(little2_encoding).enc,
lib/libexpat/lib/xmltok_ns.c
62
&ns(utf8_encoding).enc /* NO_ENC */
lib/libexpat/tests/benchmark/benchmark.c
131
if (ns)
lib/libexpat/tests/benchmark/benchmark.c
78
int j = 0, ns = 0;
lib/libexpat/tests/benchmark/benchmark.c
85
ns = 1;
lib/libutil/ohash.c
100
incr = ((h->t[j].hv % (ns - 2)) & ~1) + 1;
lib/libutil/ohash.c
103
if (i >= ns)
lib/libutil/ohash.c
104
i -= ns;
lib/libutil/ohash.c
112
h->size = ns;
lib/libutil/ohash.c
73
size_t ns;
lib/libutil/ohash.c
79
ns = UINT_MAX;
lib/libutil/ohash.c
81
ns = h->size << 1U;
lib/libutil/ohash.c
83
ns = h->size >> 1U;
lib/libutil/ohash.c
85
ns = h->size;
lib/libutil/ohash.c
86
if (ns < MINSIZE)
lib/libutil/ohash.c
87
ns = MINSIZE;
lib/libutil/ohash.c
90
STAT_HASH_SIZE += ns - h->size;
lib/libutil/ohash.c
93
n = (h->info.calloc)(ns, sizeof(struct _ohash_record), h->info.data);
lib/libutil/ohash.c
99
i = h->t[j].hv % ns;
regress/lib/libc/asr/bin/common.c
607
unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname));
regress/lib/libc/asr/bin/common.h
107
} ns;
regress/lib/libc/asr/bin/res_mkquery.c
135
int i, an, ns, ar, n;
regress/lib/libc/asr/bin/res_mkquery.c
155
ns = an + h.ancount;
regress/lib/libc/asr/bin/res_mkquery.c
156
ar = ns + h.nscount;
regress/lib/libc/asr/bin/res_mkquery.c
162
if (i == ns)
regress/lib/libc/asr/bin/res_mkquery.c
230
print_dname(rr->rr.ns.nsname, buf, max);
regress/lib/libc/asr/bin/res_query.c
171
int i, an, ns, ar, n;
regress/lib/libc/asr/bin/res_query.c
191
ns = an + h.ancount;
regress/lib/libc/asr/bin/res_query.c
192
ar = ns + h.nscount;
regress/lib/libc/asr/bin/res_query.c
198
if (i == ns)
regress/lib/libc/asr/bin/res_query.c
266
print_dname(rr->rr.ns.nsname, buf, max);
sbin/fdisk/disk.c
48
uint64_t ns, bs, sz, spc;
sbin/fdisk/disk.c
94
ns = disk.dk_bootprt.prt_ns + DL_BLKSPERSEC(&dl) - 1;
sbin/fdisk/disk.c
96
disk.dk_bootprt.prt_ns = DL_BLKTOSEC(&dl, ns);
sbin/fdisk/gpt.c
1024
uint64_t bs, nextbs, ns;
sbin/fdisk/gpt.c
1032
ns = gh.gh_lba_end - bs + 1;
sbin/fdisk/gpt.c
1036
ns = nextbs - bs;
sbin/fdisk/gpt.c
1040
ns = getuint64("Partition size", ns, 1, ns);
sbin/fdisk/gpt.c
1042
gp[pn].gp_lba_end = bs + ns - 1;
sbin/fdisk/gpt.c
945
uint64_t bs, bigbs, nextbs, ns;
sbin/fdisk/gpt.c
953
ns = gh.gh_lba_end - bs + 1;
sbin/fdisk/gpt.c
957
ns = 0;
sbin/fdisk/gpt.c
960
if (bs < nextbs && ns < nextbs - bs) {
sbin/fdisk/gpt.c
961
ns = nextbs - bs;
sbin/fdisk/gpt.c
967
if (bs < nextbs && ns < nextbs - bs) {
sbin/fdisk/gpt.c
968
ns = nextbs - bs;
sbin/fdisk/gpt.c
974
if (ns == 0)
sbin/fdisk/gpt.c
980
*end = bs + ns - 1;
sbin/fdisk/mbr.c
169
uint64_t bs, ns;
sbin/fdisk/mbr.c
174
&flag, &pn, &id, &bs, &ns) != 5)
sbin/fdisk/mbr.c
180
mbr->mbr_prt[pn].prt_ns = ns;
sbin/fdisk/mbr.c
220
uint64_t bs, ns;
sbin/fdisk/mbr.c
230
ns = mbr->mbr_prt[i].prt_ns;
sbin/fdisk/mbr.c
232
if ((bs == 0 && ns == 0 && id == 0) ||
sbin/fdisk/mbr.c
233
(bs < DL_GETDSIZE(&dl) && ns > 0 && ns <= DL_GETDSIZE(&dl)))
sbin/unwind/libunbound/iterator/iter_delegpt.c
109
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
117
ns = (struct delegpt_ns*)regional_alloc(region,
sbin/unwind/libunbound/iterator/iter_delegpt.c
119
if(!ns)
sbin/unwind/libunbound/iterator/iter_delegpt.c
121
ns->next = dp->nslist;
sbin/unwind/libunbound/iterator/iter_delegpt.c
122
ns->namelen = len;
sbin/unwind/libunbound/iterator/iter_delegpt.c
123
dp->nslist = ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
124
ns->name = regional_alloc_init(region, name, ns->namelen);
sbin/unwind/libunbound/iterator/iter_delegpt.c
125
ns->cache_lookup_count = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
126
ns->resolved = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
127
ns->got4 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
128
ns->got6 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
129
ns->lame = lame;
sbin/unwind/libunbound/iterator/iter_delegpt.c
130
ns->done_pside4 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
131
ns->done_pside6 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
132
ns->port = port;
sbin/unwind/libunbound/iterator/iter_delegpt.c
134
ns->tls_auth_name = regional_strdup(region, tls_auth_name);
sbin/unwind/libunbound/iterator/iter_delegpt.c
135
if(!ns->tls_auth_name)
sbin/unwind/libunbound/iterator/iter_delegpt.c
138
ns->tls_auth_name = NULL;
sbin/unwind/libunbound/iterator/iter_delegpt.c
140
return ns->name != 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
178
struct delegpt_ns* ns = delegpt_find_ns(dp, name, namelen);
sbin/unwind/libunbound/iterator/iter_delegpt.c
180
if(!ns) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
186
ns->got6 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
187
else ns->got4 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
188
if(ns->got4 && ns->got6)
sbin/unwind/libunbound/iterator/iter_delegpt.c
189
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
192
ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
193
else ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
195
log_assert(ns->port>0);
sbin/unwind/libunbound/iterator/iter_delegpt.c
197
ns->tls_auth_name, ns->port, additions);
sbin/unwind/libunbound/iterator/iter_delegpt.c
250
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
253
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
255
if(!ns->resolved)
sbin/unwind/libunbound/iterator/iter_delegpt.c
282
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
300
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
301
dname_str(ns->name, buf);
sbin/unwind/libunbound/iterator/iter_delegpt.c
303
(ns->resolved?"*":""),
sbin/unwind/libunbound/iterator/iter_delegpt.c
304
(ns->got4?" A":""), (ns->got6?" AAAA":""),
sbin/unwind/libunbound/iterator/iter_delegpt.c
305
(dp->bogus?" BOGUS":""), (ns->lame?" PARENTSIDE":""),
sbin/unwind/libunbound/iterator/iter_delegpt.c
306
(ns->done_pside4?" PSIDE_A":""),
sbin/unwind/libunbound/iterator/iter_delegpt.c
307
(ns->done_pside6?" PSIDE_AAAA":""));
sbin/unwind/libunbound/iterator/iter_delegpt.c
388
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
390
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
391
if(ns->resolved) continue;
sbin/unwind/libunbound/iterator/iter_delegpt.c
393
if(ns->lame) nlame++;
sbin/unwind/libunbound/iterator/iter_delegpt.c
547
void delegpt_mark_neg(struct delegpt_ns* ns, uint16_t qtype)
sbin/unwind/libunbound/iterator/iter_delegpt.c
549
if(ns) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
551
ns->got4 = 2;
sbin/unwind/libunbound/iterator/iter_delegpt.c
553
ns->got6 = 2;
sbin/unwind/libunbound/iterator/iter_delegpt.c
554
if(ns->got4 && ns->got6)
sbin/unwind/libunbound/iterator/iter_delegpt.c
555
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
566
struct delegpt_ns* ns = delegpt_find_ns(dp, msg->key.qname,
sbin/unwind/libunbound/iterator/iter_delegpt.c
568
delegpt_mark_neg(ns, msg->key.qtype);
sbin/unwind/libunbound/iterator/iter_delegpt.c
574
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
575
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
577
if(ns->got4)
sbin/unwind/libunbound/iterator/iter_delegpt.c
578
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
584
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
585
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
587
if(ns->got6)
sbin/unwind/libunbound/iterator/iter_delegpt.c
588
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
645
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
653
ns = (struct delegpt_ns*)malloc(sizeof(struct delegpt_ns));
sbin/unwind/libunbound/iterator/iter_delegpt.c
654
if(!ns)
sbin/unwind/libunbound/iterator/iter_delegpt.c
656
ns->namelen = len;
sbin/unwind/libunbound/iterator/iter_delegpt.c
657
ns->name = memdup(name, ns->namelen);
sbin/unwind/libunbound/iterator/iter_delegpt.c
658
if(!ns->name) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
659
free(ns);
sbin/unwind/libunbound/iterator/iter_delegpt.c
662
ns->next = dp->nslist;
sbin/unwind/libunbound/iterator/iter_delegpt.c
663
dp->nslist = ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
664
ns->cache_lookup_count = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
665
ns->resolved = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
666
ns->got4 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
667
ns->got6 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
668
ns->lame = (uint8_t)lame;
sbin/unwind/libunbound/iterator/iter_delegpt.c
669
ns->done_pside4 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
67
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
670
ns->done_pside6 = 0;
sbin/unwind/libunbound/iterator/iter_delegpt.c
671
ns->port = port;
sbin/unwind/libunbound/iterator/iter_delegpt.c
673
ns->tls_auth_name = strdup(tls_auth_name);
sbin/unwind/libunbound/iterator/iter_delegpt.c
674
if(!ns->tls_auth_name) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
675
free(ns->name);
sbin/unwind/libunbound/iterator/iter_delegpt.c
676
free(ns);
sbin/unwind/libunbound/iterator/iter_delegpt.c
680
ns->tls_auth_name = NULL;
sbin/unwind/libunbound/iterator/iter_delegpt.c
734
struct delegpt_ns* ns = delegpt_find_ns(dp, name, namelen);
sbin/unwind/libunbound/iterator/iter_delegpt.c
736
if(!ns) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
742
ns->got6 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
743
else ns->got4 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
744
if(ns->got4 && ns->got6)
sbin/unwind/libunbound/iterator/iter_delegpt.c
745
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
748
ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
749
else ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iter_delegpt.c
751
log_assert(ns->port>0);
sbin/unwind/libunbound/iterator/iter_delegpt.c
753
ns->tls_auth_name, ns->port);
sbin/unwind/libunbound/iterator/iter_delegpt.c
758
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_delegpt.c
763
for(ns=dp->nslist; ns; ns=ns->next)
sbin/unwind/libunbound/iterator/iter_delegpt.c
764
s += sizeof(*ns)+ns->namelen;
sbin/unwind/libunbound/iterator/iter_delegpt.c
77
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
78
if(!delegpt_add_ns(copy, region, ns->name, ns->lame,
sbin/unwind/libunbound/iterator/iter_delegpt.c
79
ns->tls_auth_name, ns->port))
sbin/unwind/libunbound/iterator/iter_delegpt.c
81
copy->nslist->cache_lookup_count = ns->cache_lookup_count;
sbin/unwind/libunbound/iterator/iter_delegpt.c
82
copy->nslist->resolved = ns->resolved;
sbin/unwind/libunbound/iterator/iter_delegpt.c
83
copy->nslist->got4 = ns->got4;
sbin/unwind/libunbound/iterator/iter_delegpt.c
84
copy->nslist->got6 = ns->got6;
sbin/unwind/libunbound/iterator/iter_delegpt.c
85
copy->nslist->done_pside4 = ns->done_pside4;
sbin/unwind/libunbound/iterator/iter_delegpt.c
86
copy->nslist->done_pside6 = ns->done_pside6;
sbin/unwind/libunbound/iterator/iter_delegpt.h
380
void delegpt_mark_neg(struct delegpt_ns* ns, uint16_t qtype);
sbin/unwind/libunbound/iterator/iter_utils.c
1292
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_utils.c
1294
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_utils.c
1295
if(ns->cache_lookup_count > ITERATOR_NAME_CACHELOOKUP_MAX_PSIDE)
sbin/unwind/libunbound/iterator/iter_utils.c
1297
ns->cache_lookup_count++;
sbin/unwind/libunbound/iterator/iter_utils.c
1299
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/iterator/iter_utils.c
1300
ns->namelen, LDNS_RR_TYPE_A, qinfo->qclass,
sbin/unwind/libunbound/iterator/iter_utils.c
1304
ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iter_utils.c
1311
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/iterator/iter_utils.c
1312
ns->namelen, LDNS_RR_TYPE_AAAA, qinfo->qclass,
sbin/unwind/libunbound/iterator/iter_utils.c
1316
ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iter_utils.c
1356
iter_scrub_ds(struct dns_msg* msg, struct ub_packed_rrset_key* ns, uint8_t* z)
sbin/unwind/libunbound/iterator/iter_utils.c
1367
(!ns || !dname_subdomain_c(ns->rk.dname, s->rk.dname)
sbin/unwind/libunbound/iterator/iter_utils.c
780
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_utils.c
781
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_utils.c
782
if(ns->resolved)
sbin/unwind/libunbound/iterator/iter_utils.c
785
if(causes_cycle(qstate, ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iter_utils.c
787
causes_cycle(qstate, ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iter_utils.c
792
ns->name, LDNS_RR_TYPE_A,
sbin/unwind/libunbound/iterator/iter_utils.c
794
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iter_utils.c
802
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_utils.c
803
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_utils.c
804
if(ns->done_pside4 && ns->done_pside6)
sbin/unwind/libunbound/iterator/iter_utils.c
807
if(causes_cycle(qstate, ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iter_utils.c
810
"to dependency cycle", ns->name,
sbin/unwind/libunbound/iterator/iter_utils.c
812
ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iter_utils.c
814
if(causes_cycle(qstate, ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iter_utils.c
817
"to dependency cycle", ns->name,
sbin/unwind/libunbound/iterator/iter_utils.c
819
ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iter_utils.c
829
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iter_utils.c
869
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iter_utils.c
870
if(ns->resolved) /* skip failed targets */
sbin/unwind/libunbound/iterator/iter_utils.c
872
if(!dname_subdomain_c(ns->name, dp->name))
sbin/unwind/libunbound/iterator/iter_utils.h
356
void iter_scrub_ds(struct dns_msg* msg, struct ub_packed_rrset_key* ns,
sbin/unwind/libunbound/iterator/iterator.c
2000
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iterator.c
2045
for(ns = iq->dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iterator.c
2046
if(ns->resolved)
sbin/unwind/libunbound/iterator/iterator.c
2058
((ns->lame && !ns->done_pside6) ||
sbin/unwind/libunbound/iterator/iterator.c
2059
(!ns->lame && !ns->got6))) {
sbin/unwind/libunbound/iterator/iterator.c
2062
ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iterator.c
2080
((ns->lame && !ns->done_pside4) ||
sbin/unwind/libunbound/iterator/iterator.c
2081
(!ns->lame && !ns->got4)))) {
sbin/unwind/libunbound/iterator/iterator.c
2082
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iterator.c
2089
((ns->lame && !ns->done_pside4) ||
sbin/unwind/libunbound/iterator/iterator.c
2090
(!ns->lame && !ns->got4))) {
sbin/unwind/libunbound/iterator/iterator.c
2092
ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iterator.c
2105
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iterator.c
2111
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iterator.c
2140
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iterator.c
2173
for(ns = dp->nslist; ns; ns=ns->next) {
sbin/unwind/libunbound/iterator/iterator.c
2175
ns->name, ns->lame, ns->tls_auth_name,
sbin/unwind/libunbound/iterator/iterator.c
2176
ns->port);
sbin/unwind/libunbound/iterator/iterator.c
2261
for(ns = iq->dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/iterator/iterator.c
2264
if( ((ie->supports_ipv6 && !ns->done_pside6) ||
sbin/unwind/libunbound/iterator/iterator.c
2265
((ie->supports_ipv4 || ie->nat64.use_nat64) && !ns->done_pside4)) &&
sbin/unwind/libunbound/iterator/iterator.c
2266
!can_have_last_resort(qstate->env, ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iterator.c
2270
ns->name, LDNS_RR_TYPE_NS, iq->qchase.qclass);
sbin/unwind/libunbound/iterator/iterator.c
2271
if(ie->supports_ipv6) ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iterator.c
2272
if(ie->supports_ipv4 || ie->nat64.use_nat64) ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iterator.c
2276
if(ie->supports_ipv6 && !ns->done_pside6) {
sbin/unwind/libunbound/iterator/iterator.c
2279
ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iterator.c
2281
errinf_dname(qstate, "could not generate nameserver AAAA lookup for", ns->name);
sbin/unwind/libunbound/iterator/iterator.c
2285
ns->done_pside6 = 1;
sbin/unwind/libunbound/iterator/iterator.c
2297
if((ie->supports_ipv4 || ie->nat64.use_nat64) && !ns->done_pside4) {
sbin/unwind/libunbound/iterator/iterator.c
2300
ns->name, ns->namelen,
sbin/unwind/libunbound/iterator/iterator.c
2302
errinf_dname(qstate, "could not generate nameserver A lookup for", ns->name);
sbin/unwind/libunbound/iterator/iterator.c
2306
ns->done_pside4 = 1;
sbin/unwind/libunbound/iterator/iterator.c
2474
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iterator.c
2504
for(ns=iq->dp->nslist; ns; ns=ns->next) {
sbin/unwind/libunbound/iterator/iterator.c
2505
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iterator.c
2545
struct delegpt_ns* ns;
sbin/unwind/libunbound/iterator/iterator.c
2550
for(ns=iq->dp->nslist; ns; ns=ns->next) {
sbin/unwind/libunbound/iterator/iterator.c
2551
ns->resolved = 1;
sbin/unwind/libunbound/iterator/iterator.c
3224
struct ub_packed_rrset_key* ns = find_NS(
sbin/unwind/libunbound/iterator/iterator.c
3228
if(!ns) ns = find_NS(iq->response->rep, 0,
sbin/unwind/libunbound/iterator/iterator.c
3230
if(!ns || !dname_strict_subdomain_c(ns->rk.dname, iq->dp->name)
sbin/unwind/libunbound/iterator/iterator.c
3231
|| !dname_subdomain_c(iq->qchase.qname, ns->rk.dname)){
sbin/unwind/libunbound/iterator/iterator.c
3235
iter_scrub_ds(iq->response, ns, iq->dp->name);
sbin/unwind/libunbound/services/cache/dns.c
311
struct delegpt_ns* ns;
sbin/unwind/libunbound/services/cache/dns.c
314
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/services/cache/dns.c
315
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/services/cache/dns.c
316
ns->namelen, LDNS_RR_TYPE_A, qclass, 0, now, 0);
sbin/unwind/libunbound/services/cache/dns.c
328
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/dns.c
335
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/services/cache/dns.c
336
ns->namelen, LDNS_RR_TYPE_AAAA, qclass, 0, now, 0);
sbin/unwind/libunbound/services/cache/dns.c
348
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/dns.c
355
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/dns.c
371
struct delegpt_ns* ns;
sbin/unwind/libunbound/services/cache/dns.c
375
for(ns = dp->nslist; ns; ns = ns->next) {
sbin/unwind/libunbound/services/cache/dns.c
376
if(ns->cache_lookup_count > ITERATOR_NAME_CACHELOOKUP_MAX)
sbin/unwind/libunbound/services/cache/dns.c
378
ns->cache_lookup_count++;
sbin/unwind/libunbound/services/cache/dns.c
379
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/services/cache/dns.c
380
ns->namelen, LDNS_RR_TYPE_A, qclass, flags, now, 0);
sbin/unwind/libunbound/services/cache/dns.c
382
if(!delegpt_add_rrset_A(dp, region, akey, ns->lame,
sbin/unwind/libunbound/services/cache/dns.c
388
ns->name, LDNS_RR_TYPE_A, qclass);
sbin/unwind/libunbound/services/cache/dns.c
393
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/dns.c
400
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
sbin/unwind/libunbound/services/cache/dns.c
401
ns->namelen, LDNS_RR_TYPE_AAAA, qclass, flags, now, 0);
sbin/unwind/libunbound/services/cache/dns.c
403
if(!delegpt_add_rrset_AAAA(dp, region, akey, ns->lame,
sbin/unwind/libunbound/services/cache/dns.c
409
ns->name, LDNS_RR_TYPE_AAAA, qclass);
sbin/unwind/libunbound/services/cache/dns.c
414
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/dns.c
421
neg = msg_cache_lookup(env, ns->name, ns->namelen,
sbin/unwind/libunbound/services/cache/rrset.c
129
need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns)
sbin/unwind/libunbound/services/cache/rrset.c
163
if(ns) {
sbin/unwind/libunbound/util/data/msgreply.c
101
size_t ns, size_t ar, size_t total, enum sec_status sec,
sbin/unwind/libunbound/util/data/msgreply.c
122
rep->ns_numrrsets = ns;
sbin/unwind/libunbound/util/data/msgreply.h
272
size_t ns, size_t ar, size_t total, enum sec_status sec,
sys/arch/arm64/dev/rpipwm.c
124
ns_to_cycles(uint64_t clk_freq, uint32_t ns)
sys/arch/arm64/dev/rpipwm.c
126
return ns * clk_freq / 1000000000ULL;
sys/dev/acpi/acpidebug.c
312
struct aml_scope ns;
sys/dev/acpi/acpidebug.c
314
memset(&ns, 0, sizeof(ns));
sys/dev/acpi/acpidebug.c
315
ns.pos = node->value->v_method.start;
sys/dev/acpi/acpidebug.c
316
ns.end = node->value->v_method.end;
sys/dev/acpi/acpidebug.c
317
ns.node = node;
sys/dev/acpi/acpidebug.c
318
while (ns.pos < ns.end)
sys/dev/acpi/acpidebug.c
319
aml_disasm(&ns, 0, db_disprint, 0);
sys/dev/fdt/amlpwm.c
132
ns_to_cycles(uint64_t clk_freq, uint32_t clk_div, uint32_t ns)
sys/dev/fdt/amlpwm.c
134
return ns * clk_freq / (clk_div * 1000000000ULL);
sys/dev/fdt/gfrtc.c
79
uint64_t ns;
sys/dev/fdt/gfrtc.c
81
ns = TIMEVAL_TO_NSEC(tv);
sys/dev/fdt/gfrtc.c
83
bus_space_write_4(sc->sc_iot, sc->sc_ioh, TIME_HIGH, ns >> 32);
sys/dev/fdt/gfrtc.c
84
bus_space_write_4(sc->sc_iot, sc->sc_ioh, TIME_LOW, ns);
sys/dev/ic/nvme.c
1733
struct nvm_identify_namespace *ns;
sys/dev/ic/nvme.c
1757
ns = my->sc->sc_namespaces[my->nsid].ident;
sys/dev/ic/nvme.c
1758
f = &ns->lbaf[NVME_ID_NS_FLBAS(ns->flbas)];
sys/dev/ic/nvme.c
837
struct nvm_identify_namespace *ns;
sys/dev/ic/nvme.c
839
ns = sc->sc_namespaces[link->target].ident;
sys/dev/ic/nvme.c
864
struct nvm_identify_namespace *ns;
sys/dev/ic/nvme.c
869
ns = sc->sc_namespaces[link->target].ident;
sys/dev/ic/nvme.c
877
addr = nvme_scsi_size(ns) - 1;
sys/dev/ic/nvme.c
878
f = &ns->lbaf[NVME_ID_NS_FLBAS(ns->flbas)];
sys/dev/ic/nvme.c
897
struct nvm_identify_namespace *ns;
sys/dev/ic/nvme.c
901
ns = sc->sc_namespaces[link->target].ident;
sys/dev/ic/nvme.c
909
addr = nvme_scsi_size(ns) - 1;
sys/dev/ic/nvme.c
913
f = &ns->lbaf[NVME_ID_NS_FLBAS(ns->flbas)];
sys/dev/ic/nvme.c
938
nvme_scsi_size(const struct nvm_identify_namespace *ns)
sys/dev/ic/nvme.c
942
ncap = lemtoh64(&ns->ncap); /* Max allowed allocation. */
sys/dev/ic/nvme.c
943
nsze = lemtoh64(&ns->nsze);
sys/dev/ic/nvme.c
945
if ((ns->nsfeat & NVME_ID_NS_NSFEAT_THIN_PROV) && ncap < nsze)
sys/dev/ic/tcic2.c
1320
tcic_ns2wscnt(int ns)
sys/dev/ic/tcic2.c
1322
if (ns < 14) {
sys/dev/ic/tcic2.c
1325
return (2*(ns-14))/70; /* XXX assumes 14.31818 MHz clock. */
sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c
972
uint64_t ns = atomic64_read(&mgr->time_spend[hw_ip]);
sys/dev/pci/drm/amd/amdgpu/amdgpu_ctx.c
974
usage[hw_ip] = ns_to_ktime(ns);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
395
struct ns2501_priv *ns = dvo->dev_priv;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
423
if (!ns->quiet) {
sys/dev/pci/drm/i915/display/dvo_ns2501.c
440
struct ns2501_priv *ns = dvo->dev_priv;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
458
if (!ns->quiet) {
sys/dev/pci/drm/i915/display/dvo_ns2501.c
476
struct ns2501_priv *ns;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
479
ns = kzalloc(sizeof(*ns), GFP_KERNEL);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
480
if (ns == NULL)
sys/dev/pci/drm/i915/display/dvo_ns2501.c
484
dvo->dev_priv = ns;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
485
ns->quiet = true;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
504
ns->quiet = false;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
511
kfree(ns);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
554
struct ns2501_priv *ns = dvo->dev_priv;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
611
ns->conf = conf;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
658
struct ns2501_priv *ns = dvo->dev_priv;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
663
ns2501_writeb(dvo, NS2501_REGC0, ns->conf->sync | 0x08);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
665
ns2501_writeb(dvo, NS2501_REG41, ns->conf->syncb);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
671
ns->conf->conf | NS2501_8_BPAS);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
672
if (!(ns->conf->conf & NS2501_8_BPAS))
sys/dev/pci/drm/i915/display/dvo_ns2501.c
673
ns2501_writeb(dvo, NS2501_REG8, ns->conf->conf);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
679
ns2501_writeb(dvo, NS2501_REGC0, ns->conf->sync);
sys/dev/pci/drm/i915/display/dvo_ns2501.c
694
struct ns2501_priv *ns = dvo->dev_priv;
sys/dev/pci/drm/i915/display/dvo_ns2501.c
696
if (ns) {
sys/dev/pci/drm/i915/display/dvo_ns2501.c
697
kfree(ns);
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.c
216
u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns)
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.c
218
return mul_u64_u32_div(ns, gt->clock_frequency, NSEC_PER_SEC);
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.c
221
u64 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u64 ns)
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.c
232
val = div_u64_roundup(intel_gt_ns_to_clock_interval(gt, ns), 16);
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.h
24
u64 intel_gt_ns_to_clock_interval(const struct intel_gt *gt, u64 ns);
sys/dev/pci/drm/i915/gt/intel_gt_clock_utils.h
25
u64 intel_gt_ns_to_pm_interval(const struct intel_gt *gt, u64 ns);
sys/dev/pci/drm/i915/selftests/i915_request.c
1954
u64 ns = intel_gt_clock_interval_to_ns(engine->gt, cycles);
sys/dev/pci/drm/i915/selftests/i915_request.c
1956
return DIV_ROUND_CLOSEST(ns, 1 << TF_BIAS);
sys/dev/pci/drm/include/linux/ktime.h
112
ktime_add_ns(ktime_t k, int64_t ns)
sys/dev/pci/drm/include/linux/ktime.h
114
return k + ns;
sys/dev/pci/drm/include/linux/ktime.h
118
ktime_sub_ns(ktime_t k, int64_t ns)
sys/dev/pci/drm/include/linux/ktime.h
120
return k - ns;
sys/dev/pci/drm/include/linux/ktime.h
148
ns_to_ktime(uint64_t ns)
sys/dev/pci/drm/include/linux/ktime.h
150
return ns;
sys/dev/pci/drm/include/linux/ktime.h
160
ktime_divns(ktime_t a, int64_t ns)
sys/dev/pci/drm/include/linux/ktime.h
162
return a / ns;
sys/dev/pci/drm/include/linux/ktime.h
166
ktime_set(time_t s, long ns)
sys/dev/pci/drm/include/linux/ktime.h
170
ts.tv_nsec = ns;
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
631
#define KFD_EVENT_FMT_PAGEFAULT_START(ns, pid, addr, node, rw)\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
632
"%lld -%d @%lx(%x) %c\n", (ns), (pid), (addr), (node), (rw)
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
634
#define KFD_EVENT_FMT_PAGEFAULT_END(ns, pid, addr, node, migrate_update)\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
635
"%lld -%d @%lx(%x) %c\n", (ns), (pid), (addr), (node), (migrate_update)
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
637
#define KFD_EVENT_FMT_MIGRATE_START(ns, pid, start, size, from, to, prefetch_loc,\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
639
"%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", (ns), (pid), (start), (size),\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
642
#define KFD_EVENT_FMT_MIGRATE_END(ns, pid, start, size, from, to, migrate_trigger, error_code) \
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
643
"%lld -%d @%lx(%lx) %x->%x %d %d\n", (ns), (pid), (start), (size),\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
646
#define KFD_EVENT_FMT_QUEUE_EVICTION(ns, pid, node, evict_trigger)\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
647
"%lld -%d %x %d\n", (ns), (pid), (node), (evict_trigger)
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
649
#define KFD_EVENT_FMT_QUEUE_RESTORE(ns, pid, node, rescheduled)\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
650
"%lld -%d %x %c\n", (ns), (pid), (node), (rescheduled)
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
652
#define KFD_EVENT_FMT_UNMAP_FROM_GPU(ns, pid, addr, size, node, unmap_trigger)\
sys/dev/pci/drm/include/uapi/linux/kfd_ioctl.h
653
"%lld -%d @%lx(%lx) %x %d\n", (ns), (pid), (addr), (size),\
sys/dev/sbus/stp4020.c
533
stp4020_calc_speed(int bus_speed, int ns, int *length, int *delay)
sys/dev/sbus/stp4020.c
537
if (ns < STP4020_MEM_SPEED_MIN)
sys/dev/sbus/stp4020.c
538
ns = STP4020_MEM_SPEED_MIN;
sys/dev/sbus/stp4020.c
539
else if (ns > STP4020_MEM_SPEED_MAX)
sys/dev/sbus/stp4020.c
540
ns = STP4020_MEM_SPEED_MAX;
sys/dev/sbus/stp4020.c
541
result = ns * (bus_speed / 1000);
sys/dev/sbus/stp4020.c
549
*delay = ns <= STP4020_MEM_SPEED_MIN ? 1 : 2;
sys/dev/usb/dwc2/dwc2var.h
135
#define NS_TO_US(ns) DIV_ROUND_UP(ns, 1000L)
sys/kern/kern_acct.c
265
encode_comp_t(u_long s, u_long ns)
sys/kern/kern_acct.c
272
s += ns / (1000000000 / AHZ); /* Maximize precision. */
sys/lib/libsa/stand.h
124
#define btochs(b,c,h,s,nh,ns) \
sys/lib/libsa/stand.h
125
c = (b) / ((nh) * (ns)); \
sys/lib/libsa/stand.h
126
h = ((b) % ((nh) * (ns))) / (ns); \
sys/lib/libsa/stand.h
127
s = ((b) % ((nh) * (ns))) % (ns);
sys/net/if.c
1017
struct netstack *ns)
sys/net/if.c
1019
if (ns == NULL) {
sys/net/if.c
1027
ml_enqueue(&ns->ns_proto, m);
sys/net/if.c
1035
struct netstack *ns;
sys/net/if.c
1051
ns = &sn->sn_netstack;
sys/net/if.c
1052
ml_init(&ns->ns_input);
sys/net/if.c
1053
ml_init(&ns->ns_proto);
sys/net/if.c
1055
ml_init(&ns->ns_tcp_ml);
sys/net/if.c
1057
ml_init(&ns->ns_tcp6_ml);
sys/net/if.c
1062
(*ifp->if_input)(ifp, m, ns);
sys/net/if.c
1065
while ((m = ml_dequeue(&ns->ns_input)) != NULL) {
sys/net/if.c
1070
(*ifp->if_input)(ifp, m, ns);
sys/net/if.c
1075
while ((m = ml_dequeue(&ns->ns_proto)) != NULL) {
sys/net/if.c
1080
if_input_process_proto(ifp, m, ns);
sys/net/if.c
1086
tcp_input_mlist(&ns->ns_tcp_ml, AF_INET);
sys/net/if.c
1088
tcp_input_mlist(&ns->ns_tcp6_ml, AF_INET6);
sys/net/if.c
1090
} while (!ml_empty(&ns->ns_input));
sys/net/if.c
1095
if_vinput(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if.c
1105
if (ns == NULL) {
sys/net/if.c
1127
ml_enqueue(&ns->ns_input, m);
sys/net/if.c
1776
p2p_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if.c
1799
if_input_proto(ifp, m, input, ns);
sys/net/if.c
813
struct netstack *ns)
sys/net/if.c
903
if_input_proto(ifp, m, input, ns);
sys/net/if_aggr.c
868
struct netstack *ns)
sys/net/if_aggr.c
890
if_vinput(ifp, m, ns);
sys/net/if_bpe.c
736
bpe_input(struct ifnet *ifp0, struct mbuf *m, struct netstack *ns)
sys/net/if_bpe.c
816
if_vinput(ifp, m, ns);
sys/net/if_bridge.c
1139
struct netstack *ns)
sys/net/if_etherip.c
590
struct netstack *ns)
sys/net/if_etherip.c
602
return (etherip_input(&key, m, ip->ip_tos, *offp, ns));
sys/net/if_etherip.c
627
int hlen, struct netstack *ns)
sys/net/if_etherip.c
694
if_vinput(ifp, m, ns);
sys/net/if_etherip.c
770
struct netstack *ns)
sys/net/if_etherip.c
785
return (etherip_input(&key, m, flow >> 20, *offp, ns));
sys/net/if_ethersubr.c
380
const struct ether_port **epp, struct netstack *ns)
sys/net/if_ethersubr.c
391
m = (*ep->ep_input)(ifp, m, dst, ep->ep_port, ns);
sys/net/if_ethersubr.c
406
ether_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_ethersubr.c
429
m = ether_port_input(ifp, m, dst, &ac->ac_trport, ns);
sys/net/if_ethersubr.c
447
m = vlan_input(ifp, m, &sdelim, ns);
sys/net/if_ethersubr.c
464
m = ether_port_input(ifp, m, dst, &ac->ac_brport, ns);
sys/net/if_ethersubr.c
493
m = carp_input(ifp, m, dst, ns);
sys/net/if_ethersubr.c
565
pipex_pppoe_input(m, session, ns);
sys/net/if_ethersubr.c
575
m = pppoe_vinput(ifp, m, ns);
sys/net/if_ethersubr.c
589
bpe_input(ifp, m, ns);
sys/net/if_ethersubr.c
600
if_input_proto(ifp, m, input, ns);
sys/net/if_gif.c
715
struct netstack *ns)
sys/net/if_gif.c
728
rv = gif_input(&key, mp, offp, proto, af, ip->ip_tos, ns);
sys/net/if_gif.c
730
rv = ipip_input(mp, offp, proto, af, ns);
sys/net/if_gif.c
738
struct netstack *ns)
sys/net/if_gif.c
754
rv = gif_input(&key, mp, offp, proto, af, flow >> 20, ns);
sys/net/if_gif.c
756
rv = ipip_input(mp, offp, proto, af, ns);
sys/net/if_gif.c
784
int af, uint8_t otos, struct netstack *ns)
sys/net/if_gif.c
890
if_vinput(ifp, m, ns);
sys/net/if_gre.c
1004
if (gre_input_key(mp, offp, type, af, flow >> 20, &key, ns) == -1)
sys/net/if_gre.c
1005
return (rip6_input(mp, offp, type, af, ns));
sys/net/if_gre.c
1044
const struct gre_header *gh, uint8_t otos, int iphlen, struct netstack *ns)
sys/net/if_gre.c
1056
m0 = pipex_pptp_input(m, session, ns);
sys/net/if_gre.c
1066
return (eoip_input(key, m, gh, otos, iphlen, ns));
sys/net/if_gre.c
1075
struct gre_tunnel *key, struct netstack *ns)
sys/net/if_gre.c
1111
m = gre_input_1(key, m, gh, otos, iphlen, ns);
sys/net/if_gre.c
1124
m = erspan_input(key, m, iphlen, gh, otos, ns);
sys/net/if_gre.c
1154
if (egre_input(key, m, hlen, otos, ns) == -1 &&
sys/net/if_gre.c
1155
nvgre_input(key, m, hlen, otos, ns) == -1)
sys/net/if_gre.c
1268
if_vinput(ifp, m, ns);
sys/net/if_gre.c
1376
uint8_t otos, struct netstack *ns)
sys/net/if_gre.c
1400
if_vinput(&sc->sc_ac.ac_if, m, ns);
sys/net/if_gre.c
1443
uint8_t otos, struct netstack *ns)
sys/net/if_gre.c
1472
if_vinput(&sc->sc_ac.ac_if, m, ns);
sys/net/if_gre.c
4072
const struct gre_header *gh, uint8_t otos, int iphlen, struct netstack *ns)
sys/net/if_gre.c
4121
if_vinput(&sc->sc_ac.ac_if, m, ns);
sys/net/if_gre.c
4935
const struct gre_header *gh, uint8_t otos, struct netstack *ns)
sys/net/if_gre.c
5064
if_vinput(&sc->sc_ac.ac_if, m, ns);
sys/net/if_gre.c
965
gre_input(struct mbuf **mp, int *offp, int type, int af, struct netstack *ns)
sys/net/if_gre.c
979
if (gre_input_key(mp, offp, type, af, ip->ip_tos, &key, ns) == -1)
sys/net/if_gre.c
980
return (rip_input(mp, offp, type, af, ns));
sys/net/if_gre.c
987
gre_input6(struct mbuf **mp, int *offp, int type, int af, struct netstack *ns)
sys/net/if_loop.c
233
loinput(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_loop.c
240
error = if_input_local(ifp, m, m->m_pkthdr.ph_family, ns);
sys/net/if_mpe.c
439
mpe_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_mpe.c
537
p2p_input(ifp, m, ns);
sys/net/if_mpip.c
469
mpip_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_mpip.c
626
p2p_input(ifp, m, ns);
sys/net/if_mpw.c
517
mpw_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_mpw.c
633
ether_input(ifp, m, ns);
sys/net/if_pfsync.c
3315
struct netstack *ns)
sys/net/if_pppoe.c
729
pppoe_vinput(struct ifnet *ifp0, struct mbuf *m, struct netstack *ns)
sys/net/if_pppoe.c
818
if_vinput(ifp, m, ns);
sys/net/if_sec.c
453
struct netstack *ns)
sys/net/if_sec.c
491
if_vinput(&sc->sc_if, m, ns);
sys/net/if_tpmr.c
276
tpmr_pf(struct ifnet *ifp0, int dir, struct mbuf *m, struct netstack *ns)
sys/net/if_tpmr.c
319
if_input_proto(ifp0, m, fam->ip_input, ns);
sys/net/if_tpmr.c
338
struct netstack *ns)
sys/net/if_tpmr.c
366
(m = tpmr_pf(ifp0, PF_IN, m, ns)) == NULL)
sys/net/if_tpmr.c
392
(m = tpmr_pf(ifpn, PF_OUT, m, ns)) == NULL)
sys/net/if_trunk.c
1086
struct netstack *ns)
sys/net/if_trunk.c
1134
if_vinput(trifp, m, ns);
sys/net/if_tun.c
1067
struct netstack *ns = &netstack; /* stupid . vs -> */
sys/net/if_tun.c
1097
(*ifp->if_input)(ifp, m, ns);
sys/net/if_tun.c
1102
while ((m = ml_dequeue(&ns->ns_input)) != NULL) {
sys/net/if_tun.c
1105
(*ifp->if_input)(ifp, m, ns);
sys/net/if_tun.c
1111
while ((m = ml_dequeue(&ns->ns_proto)) != NULL) {
sys/net/if_tun.c
1114
if_input_process_proto(ifp, m, ns);
sys/net/if_tun.c
1120
tcp_input_mlist(&ns->ns_tcp_ml, AF_INET);
sys/net/if_tun.c
1122
tcp_input_mlist(&ns->ns_tcp6_ml, AF_INET6);
sys/net/if_tun.c
1124
} while (!ml_empty(&ns->ns_input));
sys/net/if_tun.c
1127
rtfree(ns->ns_route.ro_rt);
sys/net/if_tun.c
1131
tun_input(struct ifnet *ifp, struct mbuf *m0, struct netstack *ns)
sys/net/if_tun.c
1142
p2p_input(ifp, m0, ns);
sys/net/if_var.h
369
if_input_process_proto(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_var.h
373
(*input)(ifp, m, ns);
sys/net/if_veb.c
1042
(*tp->p_enqueue)(ifp0, m, ctx->ns); /* XXX count error */
sys/net/if_veb.c
1124
(m = veb_pf(ifp0, PF_FWD, m, ctx->ns)) == NULL)
sys/net/if_veb.c
1140
(*tp->p_enqueue)(ifp0, m, ctx->ns); /* XXX count error */
sys/net/if_veb.c
1151
struct netstack *ns)
sys/net/if_veb.c
1181
struct netstack *ns)
sys/net/if_veb.c
1186
.ns = ns,
sys/net/if_veb.c
1371
(m = veb_pf(ifp0, PF_IN, m, ctx.ns)) == NULL)
sys/net/if_veb.c
1427
veb_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_veb.c
3631
vport_if_enqueue(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_veb.c
3654
if (ns != NULL) {
sys/net/if_veb.c
3656
if_vinput(ifp, m, ns);
sys/net/if_veb.c
580
struct netstack *ns)
sys/net/if_veb.c
799
veb_pf(struct ifnet *ifp0, int dir, struct mbuf *m, struct netstack *ns)
sys/net/if_veb.c
846
if_input_proto(ifp0, m, fam->ip_input, ns);
sys/net/if_veb.c
866
struct netstack *ns;
sys/net/if_veb.c
911
veb_if_enqueue(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/net/if_veb.c
947
(m0 = veb_pf(ifp, PF_FWD, m0, ctx->ns)) == NULL)
sys/net/if_vlan.c
378
struct netstack *ns)
sys/net/if_vlan.c
405
if_vinput(ifp, m, ns);
sys/net/if_vlan.c
411
struct netstack *ns)
sys/net/if_vlan.c
457
m = vlan_vinput(sc, vtag, m, ns);
sys/net/if_vxlan.c
605
void *uhp, int hlen, struct netstack *ns)
sys/net/if_vxlan.c
714
if_vinput(ifp, m, ns);
sys/net/if_wg.c
2086
void *_uh, int hlen, struct netstack *ns)
sys/net/pipex.c
1053
ipv4_input(ifp, m0, ns);
sys/net/pipex.c
1066
struct netstack *ns)
sys/net/pipex.c
1102
ipv6_input(ifp, m0, ns);
sys/net/pipex.c
1115
int plen, int locked, struct netstack *ns)
sys/net/pipex.c
1169
pipex_ppp_input(m0, session, 0, ns);
sys/net/pipex.c
1268
struct netstack *ns)
sys/net/pipex.c
1281
m0 = pipex_common_input(session, m0, hlen, ntohs(pppoe.length), 0, ns);
sys/net/pipex.c
1522
struct netstack *ns)
sys/net/pipex.c
1617
m0 = pipex_common_input(session, m0, hlen, ntohs(gre->len), 1, ns);
sys/net/pipex.c
1891
seq->ns = htons(session->proto.l2tp.ns_nxt);
sys/net/pipex.c
2048
uint16_t flags, ns = 0, nr = 0;
sys/net/pipex.c
2093
GETSHORT(ns, cp);
sys/net/pipex.c
2102
if (SEQ16_LT(ns, l2tp_session->nr_nxt)) {
sys/net/pipex.c
2104
if (SEQ16_LT(ns,
sys/net/pipex.c
2109
ns++;
sys/net/pipex.c
2110
nseq = SEQ16_SUB(ns, l2tp_session->nr_nxt);
sys/net/pipex.c
2112
l2tp_session->nr_nxt = ns;
sys/net/pipex.c
2150
--ns; --nr; /* revert original values */
sys/net/pipex.c
2151
ns -= l2tp_session->nr_gap;
sys/net/pipex.c
2152
PUTSHORT(ns, nsp);
sys/net/pipex.c
2175
"ack=%u(%u-%u)", ns, l2tp_session->nr_nxt, nr, l2tp_session->ns_una,
sys/net/pipex.c
2286
uint16_t ns, nr;
sys/net/pipex.c
2302
ns = ntohs(seq->ns);
sys/net/pipex.c
2307
ns += session->proto.l2tp.ns_gap;
sys/net/pipex.c
2308
seq->ns = htons(ns);
sys/net/pipex.c
894
struct netstack *ns)
sys/net/pipex.c
958
pipex_ip_input(m0, session, ns);
sys/net/pipex.c
968
pipex_ip6_input(m0, session, ns);
sys/net/pipex.c
988
struct netstack *ns)
sys/net/pipex_local.h
297
uint16_t ns;
sys/netinet/if_ether.c
562
arpinput(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/netinet/if_ether.c
897
revarpinput(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/netinet/igmp.c
250
igmp_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/igmp.c
263
proto = igmp_input_if(ifp, mp, offp, proto, af, ns);
sys/netinet/igmp.c
271
int af, struct netstack *ns)
sys/netinet/igmp.c
542
return rip_input(mp, offp, proto, af, ns);
sys/netinet/ip_ah.c
530
struct netstack *ns)
sys/netinet/ip_ah.c
845
return ipsec_common_input_cb(mp, tdb, skip, protoff, ns);
sys/netinet/ip_carp.c
1384
struct netstack *ns)
sys/netinet/ip_carp.c
1418
if_vinput(&sc->sc_if, m, ns);
sys/netinet/ip_carp.c
1435
if_vinput(&sc->sc_if, m0, ns);
sys/netinet/ip_carp.c
415
struct netstack *ns)
sys/netinet/ip_carp.c
520
struct netstack *ns)
sys/netinet/ip_esp.c
341
struct netstack *ns)
sys/netinet/ip_esp.c
675
return ipsec_common_input_cb(mp, tdb, skip, protoff, ns);
sys/netinet/ip_icmp.c
310
icmp_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/ip_icmp.c
320
proto = icmp_input_if(ifp, mp, offp, proto, af, ns);
sys/netinet/ip_icmp.c
327
int af, struct netstack *ns)
sys/netinet/ip_icmp.c
674
return rip_input(mp, offp, proto, af, ns);
sys/netinet/ip_input.c
249
ip_ours(struct mbuf **mp, int *offp, int nxt, int af, struct netstack *ns)
sys/netinet/ip_input.c
259
nxt = ip_deliver(mp, offp, nxt, AF_INET, 1, ns);
sys/netinet/ip_input.c
339
ipv4_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/netinet/ip_input.c
344
nxt = ip_input_if(&m, &off, IPPROTO_IPV4, AF_UNSPEC, ifp, ns);
sys/netinet/ip_input.c
443
struct netstack *ns)
sys/netinet/ip_input.c
509
if (ns == NULL) {
sys/netinet/ip_input.c
513
ro = &ns->ns_route;
sys/netinet/ip_input.c
519
nxt = ip_ours(mp, offp, nxt, af, ns);
sys/netinet/ip_input.c
569
nxt = ip_ours(mp, offp, nxt, af, ns);
sys/netinet/ip_input.c
585
nxt = ip_ours(mp, offp, nxt, af, ns);
sys/netinet/ip_input.c
752
struct netstack *ns)
sys/netinet/ip_input.c
834
nxt = (*psw->pr_input)(mp, offp, nxt, af, ns);
sys/netinet/ip_ipcomp.c
134
struct netstack *ns)
sys/netinet/ip_ipcomp.c
292
return ipsec_common_input_cb(mp, tdb, skip, protoff, ns);
sys/netinet/ip_ipip.c
105
ipip_input(struct mbuf **mp, int *offp, int nxt, int af, struct netstack *ns)
sys/netinet/ip_ipip.c
123
nxt = ipip_input_if(mp, offp, nxt, af, ipip_allow_local, ifp, ns);
sys/netinet/ip_ipip.c
139
struct ifnet *ifp, struct netstack *ns)
sys/netinet/ip_ipip.c
325
return ip_input_if(mp, offp, proto, oaf, ifp, ns);
sys/netinet/ip_ipip.c
328
return ip6_input_if(mp, offp, proto, oaf, ifp, ns);
sys/netinet/ip_ipip.c
564
struct netstack *ns)
sys/netinet/ipsec_input.c
209
int udpencap, struct netstack *ns)
sys/netinet/ipsec_input.c
363
prot = (*(tdbp->tdb_xform->xf_input))(mp, tdbp, skip, protoff, ns);
sys/netinet/ipsec_input.c
387
int protoff, struct netstack *ns)
sys/netinet/ipsec_input.c
587
sec_input(sc, af, prot, m, ns);
sys/netinet/ipsec_input.c
811
struct netstack *ns)
sys/netinet/ipsec_input.c
815
return rip_input(mp, offp, proto, af, ns);
sys/netinet/ipsec_input.c
818
return rip6_input(mp, offp, proto, af, ns);
sys/netinet/ipsec_input.c
826
ah46_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/ipsec_input.c
835
return ipsec_input_disabled(mp, offp, proto, af, ns);
sys/netinet/ipsec_input.c
845
return ipsec_common_input(mp, *offp, protoff, af, proto, 0, ns);
sys/netinet/ipsec_input.c
860
struct netstack *ns)
sys/netinet/ipsec_input.c
869
return ipsec_input_disabled(mp, offp, proto, af, ns);
sys/netinet/ipsec_input.c
879
return ipsec_common_input(mp, *offp, protoff, af, proto, 0, ns);
sys/netinet/ipsec_input.c
885
struct netstack *ns)
sys/netinet/ipsec_input.c
894
return ipsec_input_disabled(mp, offp, proto, af, ns);
sys/netinet/ipsec_input.c
904
return ipsec_common_input(mp, *offp, protoff, af, proto, 0, ns);
sys/netinet/raw_ip.c
130
rip_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/tcp_input.c
332
tcp_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/tcp_input.c
334
if (ns == NULL)
sys/netinet/tcp_input.c
339
ml_enqueue(&ns->ns_tcp_ml, *mp);
sys/netinet/tcp_input.c
343
ml_enqueue(&ns->ns_tcp6_ml, *mp);
sys/netinet/udp_usrreq.c
194
udp_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet/udp_usrreq.c
346
af, IPPROTO_ESP, 1, ns);
sys/netinet/udp_usrreq.c
479
uh, &srcsa.sa, 0, ns);
sys/netinet/udp_usrreq.c
514
udp_sbappend(last, m, ip, ip6, iphlen, uh, &srcsa.sa, 0, ns);
sys/netinet/udp_usrreq.c
629
ipsecflowinfo, ns);
sys/netinet/udp_usrreq.c
639
udp_sbappend(inp, m, ip, ip6, iphlen, uh, &srcsa.sa, ipsecflowinfo, ns);
sys/netinet/udp_usrreq.c
652
struct netstack *ns)
sys/netinet/udp_usrreq.c
661
ip, ip6, uh, hlen, ns);
sys/netinet6/dest6.c
49
struct netstack *ns)
sys/netinet6/frag6.c
115
struct netstack *ns)
sys/netinet6/icmp6.c
384
struct netstack *ns)
sys/netinet6/icmp6.c
745
return rip6_input(mp, offp, proto, af, ns);
sys/netinet6/ip6_input.c
164
struct netstack *ns)
sys/netinet6/ip6_input.c
177
nxt = ip_deliver(mp, offp, nxt, AF_INET6, 1, ns);
sys/netinet6/ip6_input.c
251
ipv6_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/netinet6/ip6_input.c
256
nxt = ip6_input_if(&m, &off, IPPROTO_IPV6, AF_UNSPEC, ifp, ns);
sys/netinet6/ip6_input.c
353
struct netstack *ns)
sys/netinet6/ip6_input.c
453
nxt = ip6_ours(mp, offp, nxt, af, flags, ns);
sys/netinet6/ip6_input.c
506
flags, ns);
sys/netinet6/ip6_input.c
518
nxt = ip6_ours(mp, offp, nxt, af, flags, ns);
sys/netinet6/ip6_input.c
526
if (ns == NULL) {
sys/netinet6/ip6_input.c
530
ro = &ns->ns_route;
sys/netinet6/ip6_input.c
575
nxt = ip6_ours(mp, offp, nxt, af, flags, ns);
sys/netinet6/ip6_input.c
601
nxt = ip6_ours(mp, offp, nxt, af, flags, ns);
sys/netinet6/raw_ip6.c
130
rip6_input(struct mbuf **mp, int *offp, int proto, int af, struct netstack *ns)
sys/netinet6/route6.c
52
struct netstack *ns)
sys/netmpls/mpls_input.c
130
ipv4_input(ifp, m, ns);
sys/netmpls/mpls_input.c
140
ipv6_input(ifp, m, ns);
sys/netmpls/mpls_input.c
190
mpls_input_local(rt, m, ns);
sys/netmpls/mpls_input.c
282
mpls_input_local(struct rtentry *rt, struct mbuf *m, struct netstack *ns)
sys/netmpls/mpls_input.c
292
if_vinput(ifp, m, ns);
sys/netmpls/mpls_input.c
51
mpls_input(struct ifnet *ifp, struct mbuf *m, struct netstack *ns)
sys/sys/time.h
379
NSEC_TO_TIMEVAL(uint64_t ns, struct timeval *tv)
sys/sys/time.h
381
tv->tv_sec = ns / 1000000000L;
sys/sys/time.h
382
tv->tv_usec = (ns % 1000000000L) / 1000;
sys/sys/time.h
399
NSEC_TO_TIMESPEC(uint64_t ns, struct timespec *ts)
sys/sys/time.h
401
ts->tv_sec = ns / 1000000000L;
sys/sys/time.h
402
ts->tv_nsec = ns % 1000000000L;
usr.bin/aucat/aucat.c
1079
int n, ns, nm, ev;
usr.bin/aucat/aucat.c
1114
ns = sio_pollfd(dev_sh, pfds, ev);
usr.bin/aucat/aucat.c
1116
ns = 0;
usr.bin/aucat/aucat.c
1118
nm = mio_pollfd(dev_mh, pfds + ns, POLLIN);
usr.bin/aucat/aucat.c
1121
if (poll(pfds, ns + nm, -1) == -1) {
usr.bin/aucat/aucat.c
1139
ev = mio_revents(dev_mh, pfds + ns);
usr.bin/awk/b.c
715
int s, ns;
usr.bin/awk/b.c
730
if ((ns = get_gototab(f, s, rune)) != 0)
usr.bin/awk/b.c
731
s = ns;
usr.bin/awk/b.c
745
int s, ns;
usr.bin/awk/b.c
763
if ((ns = get_gototab(f, s, rune)) != 0)
usr.bin/awk/b.c
764
s = ns;
usr.bin/awk/b.c
801
int s, ns;
usr.bin/awk/b.c
819
if ((ns = get_gototab(f, s, rune)) != 0)
usr.bin/awk/b.c
820
s = ns;
usr.bin/awk/b.c
868
int c, n, ns, s;
usr.bin/awk/b.c
918
if ((ns = get_gototab(pfa, s, c)) != 0)
usr.bin/awk/b.c
919
s = ns;
usr.bin/ctfconv/hash.c
63
size_t ns;
usr.bin/ctfconv/hash.c
69
ns = UINT_MAX;
usr.bin/ctfconv/hash.c
71
ns = h->size << 1U;
usr.bin/ctfconv/hash.c
73
ns = h->size >> 1U;
usr.bin/ctfconv/hash.c
75
ns = h->size;
usr.bin/ctfconv/hash.c
76
if (ns < MINSIZE)
usr.bin/ctfconv/hash.c
77
ns = MINSIZE;
usr.bin/ctfconv/hash.c
79
n = calloc(ns, sizeof(struct _hash_record));
usr.bin/ctfconv/hash.c
85
i = h->t[j].hv % ns;
usr.bin/ctfconv/hash.c
86
incr = ((h->t[j].hv % (ns - 2)) & ~1) + 1;
usr.bin/ctfconv/hash.c
89
if (i >= ns)
usr.bin/ctfconv/hash.c
90
i -= ns;
usr.bin/ctfconv/hash.c
98
h->size = ns;
usr.bin/dig/dighost.c
114
const char *ns;
usr.bin/dig/dighost.c
1653
dns_rdata_ns_t ns;
usr.bin/dig/dighost.c
1662
result = dns_rdata_tostruct_ns(&rdata, &ns);
usr.bin/dig/dighost.c
1664
dns_name_format(&ns.name, namestr, sizeof(namestr));
usr.bin/dig/dighost.c
1665
dns_rdata_freestruct_ns(&ns);
usr.bin/dig/dighost.c
1886
newsrv = make_server(root_hints[i].ns, root_hints[i].ns);
usr.bin/dig/lib/dns/include/dns/rdata.h
483
dns_rdata_tostruct_ns(const dns_rdata_t *rdata, dns_rdata_ns_t *ns);
usr.bin/dig/lib/dns/include/dns/rdata.h
545
dns_rdata_freestruct_ns(dns_rdata_ns_t *ns);
usr.bin/dig/lib/dns/rdata.c
664
dns_rdata_tostruct_ns(const dns_rdata_t *rdata, dns_rdata_ns_t *ns) {
usr.bin/dig/lib/dns/rdata.c
668
return (tostruct_ns(rdata, ns));
usr.bin/dig/lib/dns/rdata.c
695
dns_rdata_freestruct_ns(dns_rdata_ns_t *ns) {
usr.bin/dig/lib/dns/rdata.c
696
REQUIRE(ns != NULL);
usr.bin/dig/lib/dns/rdata.c
698
freestruct_ns(ns);
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
102
dns_rdata_ns_t *ns = source;
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
106
dns_name_free(&ns->name);
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
81
dns_rdata_ns_t *ns = target;
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
88
ns->common.rdclass = rdata->rdclass;
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
89
ns->common.rdtype = rdata->type;
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
90
ISC_LINK_INIT(&ns->common, link);
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
95
dns_name_init(&ns->name, NULL);
usr.bin/dig/lib/dns/rdata/generic/ns_2.c
96
RETERR(name_duporclone(&name, &ns->name));
usr.bin/less/cmdbuf.c
298
char *ns = s;
usr.bin/less/cmdbuf.c
299
cmd_step_right(&ns, &width, NULL);
usr.bin/less/cmdbuf.c
302
s = ns;
usr.bin/lex/dfa.c
1018
int tch, i, j, k, ns, dupfwd[CSIZE + 1], lenccl, cclp, ich;
usr.bin/lex/dfa.c
1034
ns = ds[i];
usr.bin/lex/dfa.c
1035
tch = transchar[ns];
usr.bin/lex/dfa.c
105
int ns = nfa_states[i];
usr.bin/lex/dfa.c
106
int type = state_type[ns];
usr.bin/lex/dfa.c
107
int ar = assoc_rule[ns];
usr.bin/lex/dfa.c
235
int stkpos, ns, tsp;
usr.bin/lex/dfa.c
296
ns = t[nstate];
usr.bin/lex/dfa.c
301
if (!IS_MARKED (ns)) {
usr.bin/lex/dfa.c
302
PUT_ON_STACK (ns);
usr.bin/lex/dfa.c
303
CHECK_ACCEPT (ns);
usr.bin/lex/dfa.c
304
hashval += ns;
usr.bin/lex/dfa.c
309
ns = stk[stkpos];
usr.bin/lex/dfa.c
310
transsym = transchar[ns];
usr.bin/lex/dfa.c
313
tsp = trans1[ns] + MARKER_DIFFERENCE;
usr.bin/lex/dfa.c
319
tsp = trans2[ns];
usr.bin/lex/dfa.c
941
int ns, tsp, sym, i, j, lenccl, ch, numstates, ccllist;
usr.bin/lex/dfa.c
946
ns = ds[i];
usr.bin/lex/dfa.c
947
sym = transchar[ns];
usr.bin/lex/dfa.c
948
tsp = trans1[ns];
usr.bin/lex/nfa.c
102
int sym, tsp1, tsp2, anum, ns;
usr.bin/lex/nfa.c
117
for (ns = 1; ns <= lastnfa; ++ns) {
usr.bin/lex/nfa.c
118
fprintf(stderr, _("state # %4d\t"), ns);
usr.bin/lex/nfa.c
120
sym = transchar[ns];
usr.bin/lex/nfa.c
121
tsp1 = trans1[ns];
usr.bin/lex/nfa.c
122
tsp2 = trans2[ns];
usr.bin/lex/nfa.c
123
anum = accptnum[ns];
usr.bin/lndir/lndir.c
140
char *s, *ns;
usr.bin/lndir/lndir.c
147
for (ns = s + 1; *ns == '/'; ns++)
usr.bin/lndir/lndir.c
149
memmove(s + 1, ns, strlen(ns) + 1);
usr.bin/mg/interpreter.c
131
int elen, spc, ns;
usr.bin/mg/interpreter.c
133
pctr = expctr = inquote = esc = elen = spc = ns = 0;
usr.bin/mg/interpreter.c
173
ns--;
usr.bin/mg/interpreter.c
180
++expctr, elen - spc, ns);
usr.bin/mg/interpreter.c
203
ns--;
usr.bin/mg/interpreter.c
210
++expctr, elen - spc, ns);
usr.bin/mg/interpreter.c
254
ns++;
usr.bin/mg/interpreter.c
291
int elen, int ns)
usr.bin/openssl/cms.c
1894
make_names_stack(STACK_OF(OPENSSL_STRING) *ns)
usr.bin/openssl/cms.c
1903
for (i = 0; i < sk_OPENSSL_STRING_num(ns); i++) {
usr.bin/openssl/cms.c
1904
char *str = sk_OPENSSL_STRING_value(ns, i);
usr.bin/ssh/sshsig.h
89
const char *principal, const char *ns, uint64_t verify_time);
usr.bin/systat/pftop.c
1046
u_int32_t nr, ns;
usr.bin/systat/pftop.c
1071
ns = ruleset.nr;
usr.bin/systat/pftop.c
1083
for (nr = 0; nr < ns; ++nr) {
usr.bin/systat/pftop.c
626
alloc_buf(size_t ns)
usr.bin/systat/pftop.c
630
if (ns < MIN_NUM_STATES)
usr.bin/systat/pftop.c
631
ns = MIN_NUM_STATES;
usr.bin/systat/pftop.c
633
len = ns;
usr.bin/tmux/window-tree.c
1228
struct session *ns;
usr.bin/tmux/window-tree.c
1259
window_tree_pull_item(item, &ns, &nwl, &nwp);
usr.bin/tmux/window-tree.c
1260
server_set_marked(ns, nwl, nwp);
usr.bin/tmux/window-tree.c
1268
window_tree_pull_item(item, &ns, &nwl, &nwp);
usr.bin/tmux/window-tree.c
1273
if (ns == NULL)
usr.bin/tmux/window-tree.c
1275
xasprintf(&prompt, "Kill session %s? ", ns->name);
usr.sbin/iscsid/connection.c
494
int i, ns;
usr.sbin/iscsid/connection.c
501
ns = fsm[i].action(c, event);
usr.sbin/iscsid/connection.c
502
if (ns == -1)
usr.sbin/iscsid/connection.c
506
c->session->config.SessionName, conn_state(ns));
usr.sbin/iscsid/connection.c
507
c->state = ns;
usr.sbin/iscsid/session.c
208
int i, ns;
usr.sbin/iscsid/session.c
216
ns = s_fsm[i].action(s, sev);
usr.sbin/iscsid/session.c
217
if (ns == -1)
usr.sbin/iscsid/session.c
222
sess_state(ns));
usr.sbin/iscsid/session.c
223
s->state = ns;
usr.sbin/ldapctl/ldapctl.c
100
compact_namespace(struct namespace *ns, const char *datadir)
usr.sbin/ldapctl/ldapctl.c
104
if (asprintf(&path, "%s/%s_data.db", datadir, ns->suffix) == -1)
usr.sbin/ldapctl/ldapctl.c
113
if (asprintf(&path, "%s/%s_indx.db", datadir, ns->suffix) == -1)
usr.sbin/ldapctl/ldapctl.c
128
struct namespace *ns;
usr.sbin/ldapctl/ldapctl.c
130
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapctl/ldapctl.c
131
if (SLIST_EMPTY(&ns->referrals))
usr.sbin/ldapctl/ldapctl.c
133
if (compact_namespace(ns, datadir) != 0)
usr.sbin/ldapctl/ldapctl.c
141
index_namespace(struct namespace *ns, const char *datadir)
usr.sbin/ldapctl/ldapctl.c
150
log_info("indexing namespace %s", ns->suffix);
usr.sbin/ldapctl/ldapctl.c
152
if (asprintf(&path, "%s/%s_data.db", datadir, ns->suffix) == -1)
usr.sbin/ldapctl/ldapctl.c
159
if (asprintf(&path, "%s/%s_indx.db", datadir, ns->suffix) == -1)
usr.sbin/ldapctl/ldapctl.c
179
ns->indx_txn = btree_txn_begin(indx_db, 0);
usr.sbin/ldapctl/ldapctl.c
180
if (ns->indx_txn == NULL && errno == EBUSY)
usr.sbin/ldapctl/ldapctl.c
186
if (ns->indx_txn == NULL) {
usr.sbin/ldapctl/ldapctl.c
195
if ((elm = db2ber(&val, ns->compression_level)) == NULL)
usr.sbin/ldapctl/ldapctl.c
197
rc = index_entry(ns, &key, elm);
usr.sbin/ldapctl/ldapctl.c
205
if (btree_txn_commit(ns->indx_txn) != BT_SUCCESS)
usr.sbin/ldapctl/ldapctl.c
222
struct namespace *ns;
usr.sbin/ldapctl/ldapctl.c
224
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapctl/ldapctl.c
225
if (SLIST_EMPTY(&ns->referrals))
usr.sbin/ldapctl/ldapctl.c
227
if (index_namespace(ns, datadir) != 0)
usr.sbin/ldapctl/ldapctl.c
61
int compact_namespace(struct namespace *ns, const char *datadir);
usr.sbin/ldapctl/ldapctl.c
63
int index_namespace(struct namespace *ns, const char *datadir);
usr.sbin/ldapd/auth.c
114
authorized(struct conn *conn, struct namespace *ns, int rights, char *dn,
usr.sbin/ldapd/auth.c
125
if (ns != NULL && ns->rootdn != NULL &&
usr.sbin/ldapd/auth.c
126
strcasecmp(conn->binddn, ns->rootdn) == 0)
usr.sbin/ldapd/auth.c
140
ns ? ns->suffix : "global");
usr.sbin/ldapd/auth.c
143
if (aci_matches(aci, conn, ns, dn, rights,
usr.sbin/ldapd/auth.c
157
if (ns != NULL) {
usr.sbin/ldapd/auth.c
158
SIMPLEQ_FOREACH(aci, &ns->acl, entry) {
usr.sbin/ldapd/auth.c
159
if (aci_matches(aci, conn, ns, dn, rights,
usr.sbin/ldapd/auth.c
303
struct namespace *ns;
usr.sbin/ldapd/auth.c
329
} else if ((ns = namespace_lookup_base(binddn, 1)) == NULL) {
usr.sbin/ldapd/auth.c
331
} else if (ns->rootdn != NULL && strcmp(ns->rootdn, binddn) == 0) {
usr.sbin/ldapd/auth.c
332
pwret = check_password(req, ns->rootpw, password);
usr.sbin/ldapd/auth.c
333
} else if (namespace_has_referrals(ns)) {
usr.sbin/ldapd/auth.c
336
if (!authorized(req->conn, ns, ACI_BIND, binddn,
usr.sbin/ldapd/auth.c
340
entry = namespace_get(ns, binddn);
usr.sbin/ldapd/auth.c
342
if (namespace_queue_request(ns, req) != 0)
usr.sbin/ldapd/auth.c
35
aci_matches(struct aci *aci, struct conn *conn, struct namespace *ns,
usr.sbin/ldapd/control.c
200
struct namespace *ns;
usr.sbin/ldapd/control.c
207
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/control.c
208
if (namespace_has_referrals(ns))
usr.sbin/ldapd/control.c
211
strlcpy(nss.suffix, ns->suffix, sizeof(nss.suffix));
usr.sbin/ldapd/control.c
212
if ((st = btree_stat(ns->data_db)) != NULL)
usr.sbin/ldapd/control.c
215
if ((st = btree_stat(ns->indx_db)) != NULL)
usr.sbin/ldapd/index.c
103
dnsz = dn->size - strlen(ns->suffix);
usr.sbin/ldapd/index.c
115
rc = btree_txn_put(NULL, ns->indx_txn, &key, &val,
usr.sbin/ldapd/index.c
126
index_rdn_key(struct namespace *ns, struct btval *dn, struct btval *key)
usr.sbin/ldapd/index.c
133
dnsz = dn->size - strlen(ns->suffix);
usr.sbin/ldapd/index.c
161
index_rdn(struct namespace *ns, struct btval *dn)
usr.sbin/ldapd/index.c
168
assert(ns);
usr.sbin/ldapd/index.c
169
assert(ns->indx_txn);
usr.sbin/ldapd/index.c
172
if (index_rdn_key(ns, dn, &key) < 0)
usr.sbin/ldapd/index.c
176
rc = btree_txn_put(NULL, ns->indx_txn, &key, &val, BT_NOOVERWRITE);
usr.sbin/ldapd/index.c
184
unindex_attribute(struct namespace *ns, char *attr, struct btval *dn,
usr.sbin/ldapd/index.c
192
assert(ns);
usr.sbin/ldapd/index.c
193
assert(ns->indx_txn);
usr.sbin/ldapd/index.c
202
dnsz = dn->size - strlen(ns->suffix);
usr.sbin/ldapd/index.c
212
rc = btree_txn_del(NULL, ns->indx_txn, &key, NULL);
usr.sbin/ldapd/index.c
222
index_entry(struct namespace *ns, struct btval *dn, struct ber_element *elm)
usr.sbin/ldapd/index.c
227
assert(ns);
usr.sbin/ldapd/index.c
230
TAILQ_FOREACH(ai, &ns->indices, next) {
usr.sbin/ldapd/index.c
232
if (a && index_attribute(ns, ai->attr, dn, a) < 0)
usr.sbin/ldapd/index.c
236
return index_rdn(ns, dn);
usr.sbin/ldapd/index.c
240
unindex_rdn(struct namespace *ns, struct btval *dn)
usr.sbin/ldapd/index.c
245
assert(ns);
usr.sbin/ldapd/index.c
246
assert(ns->indx_txn);
usr.sbin/ldapd/index.c
249
if (index_rdn_key(ns, dn, &key) < 0)
usr.sbin/ldapd/index.c
253
rc = btree_txn_del(NULL, ns->indx_txn, &key, NULL);
usr.sbin/ldapd/index.c
261
unindex_entry(struct namespace *ns, struct btval *dn, struct ber_element *elm)
usr.sbin/ldapd/index.c
266
assert(ns);
usr.sbin/ldapd/index.c
269
TAILQ_FOREACH(ai, &ns->indices, next) {
usr.sbin/ldapd/index.c
271
if (a && unindex_attribute(ns, ai->attr, dn, a) < 0)
usr.sbin/ldapd/index.c
275
return unindex_rdn(ns, dn);
usr.sbin/ldapd/index.c
305
index_to_dn(struct namespace *ns, struct btval *indx, struct btval *dn)
usr.sbin/ldapd/index.c
325
dn->size = indx->size + strlen(ns->suffix);
usr.sbin/ldapd/index.c
340
bcopy(ns->suffix, dst, strlen(ns->suffix));
usr.sbin/ldapd/index.c
348
dn->size = rdn_sz + strlen(ns->suffix);
usr.sbin/ldapd/index.c
354
bcopy(ns->suffix, (char *)dn->data + rdn_sz,
usr.sbin/ldapd/index.c
355
strlen(ns->suffix));
usr.sbin/ldapd/index.c
85
index_attribute(struct namespace *ns, char *attr, struct btval *dn,
usr.sbin/ldapd/index.c
93
assert(ns);
usr.sbin/ldapd/index.c
94
assert(ns->indx_txn);
usr.sbin/ldapd/ldapd.h
182
struct namespace *ns;
usr.sbin/ldapd/ldapd.h
368
int namespace_open(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
369
int namespace_reopen_data(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
370
int namespace_reopen_indx(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
371
int namespace_set_data_fd(struct namespace *ns, int fd);
usr.sbin/ldapd/ldapd.h
372
int namespace_set_indx_fd(struct namespace *ns, int fd);
usr.sbin/ldapd/ldapd.h
373
void namespace_close(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
374
void namespace_remove(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
375
struct ber_element *namespace_get(struct namespace *ns, char *dn);
usr.sbin/ldapd/ldapd.h
376
int namespace_exists(struct namespace *ns, char *dn);
usr.sbin/ldapd/ldapd.h
377
int namespace_add(struct namespace *ns, char *dn,
usr.sbin/ldapd/ldapd.h
379
int namespace_update(struct namespace *ns, char *dn,
usr.sbin/ldapd/ldapd.h
381
int namespace_del(struct namespace *ns, char *dn);
usr.sbin/ldapd/ldapd.h
385
int namespace_has_referrals(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
387
int namespace_has_index(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
389
int namespace_begin_txn(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
392
int namespace_begin(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
393
int namespace_commit(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
394
void namespace_abort(struct namespace *ns);
usr.sbin/ldapd/ldapd.h
395
int namespace_queue_request(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
397
void namespace_queue_schedule(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
402
int namespace_ber2db(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
404
struct ber_element *namespace_db2ber(struct namespace *ns,
usr.sbin/ldapd/ldapd.h
453
int authorized(struct conn *conn, struct namespace *ns,
usr.sbin/ldapd/ldapd.h
483
int index_entry(struct namespace *ns, struct btval *dn,
usr.sbin/ldapd/ldapd.h
485
int unindex_entry(struct namespace *ns, struct btval *dn,
usr.sbin/ldapd/ldapd.h
487
int index_to_dn(struct namespace *ns, struct btval *indx,
usr.sbin/ldapd/ldape.c
240
struct namespace *ns;
usr.sbin/ldapd/ldape.c
254
if ((ns = namespace_for_base(dn)) == NULL) {
usr.sbin/ldapd/ldape.c
262
if ((entry = namespace_get(ns, dn)) == NULL)
usr.sbin/ldapd/ldape.c
343
struct namespace *ns;
usr.sbin/ldapd/ldape.c
447
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/ldape.c
448
if (!namespace_has_referrals(ns) && namespace_open(ns) != 0)
usr.sbin/ldapd/ldape.c
449
fatal("%s", ns->suffix);
usr.sbin/ldapd/ldape.c
473
while ((ns = TAILQ_FIRST(&conf->namespaces)) != NULL)
usr.sbin/ldapd/ldape.c
474
namespace_remove(ns);
usr.sbin/ldapd/ldape.c
548
struct namespace *ns;
usr.sbin/ldapd/ldape.c
561
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/ldape.c
562
if (namespace_has_referrals(ns))
usr.sbin/ldapd/ldape.c
564
if (strcmp(oreq->path, ns->data_path) == 0) {
usr.sbin/ldapd/ldape.c
565
namespace_set_data_fd(ns, fd);
usr.sbin/ldapd/ldape.c
568
if (strcmp(oreq->path, ns->indx_path) == 0) {
usr.sbin/ldapd/ldape.c
569
namespace_set_indx_fd(ns, fd);
usr.sbin/ldapd/ldape.c
574
if (ns == NULL) {
usr.sbin/ldapd/ldape.c
578
namespace_queue_schedule(ns, 0);
usr.sbin/ldapd/modify.c
106
!authorized(req->conn, ns, ACI_WRITE, dn, s,
usr.sbin/ldapd/modify.c
113
if (namespace_del(ns, dn) == 0 && namespace_commit(ns) == 0)
usr.sbin/ldapd/modify.c
120
namespace_abort(ns);
usr.sbin/ldapd/modify.c
132
struct namespace *ns;
usr.sbin/ldapd/modify.c
147
if ((ns = namespace_for_base(dn)) == NULL) {
usr.sbin/ldapd/modify.c
155
if (!authorized(req->conn, ns, ACI_WRITE, dn, NULL, LDAP_SCOPE_BASE))
usr.sbin/ldapd/modify.c
164
if (!authorized(req->conn, ns, ACI_WRITE, dn, s,
usr.sbin/ldapd/modify.c
167
if (!ns->relax) {
usr.sbin/ldapd/modify.c
183
if (namespace_begin(ns) == -1) {
usr.sbin/ldapd/modify.c
185
if (namespace_queue_request(ns, req) != 0)
usr.sbin/ldapd/modify.c
217
if ((rc = validate_entry(dn, attrs, ns->relax)) != LDAP_SUCCESS ||
usr.sbin/ldapd/modify.c
218
namespace_add(ns, dn, attrs) != 0) {
usr.sbin/ldapd/modify.c
219
namespace_abort(ns);
usr.sbin/ldapd/modify.c
224
} else if (namespace_commit(ns) != 0)
usr.sbin/ldapd/modify.c
231
namespace_abort(ns);
usr.sbin/ldapd/modify.c
244
struct namespace *ns;
usr.sbin/ldapd/modify.c
259
if ((ns = namespace_for_base(dn)) == NULL) {
usr.sbin/ldapd/modify.c
271
if (!authorized(req->conn, ns, ACI_WRITE, dn, attr,
usr.sbin/ldapd/modify.c
276
if (namespace_begin(ns) == -1) {
usr.sbin/ldapd/modify.c
278
if (namespace_queue_request(ns, req) != 0)
usr.sbin/ldapd/modify.c
285
if ((entry = namespace_get(ns, dn)) == NULL) {
usr.sbin/ldapd/modify.c
299
if (!ns->relax) {
usr.sbin/ldapd/modify.c
36
struct namespace *ns;
usr.sbin/ldapd/modify.c
364
if ((rc = validate_entry(dn, entry, ns->relax)) != LDAP_SUCCESS)
usr.sbin/ldapd/modify.c
381
if (namespace_update(ns, dn, entry) == 0 && namespace_commit(ns) == 0)
usr.sbin/ldapd/modify.c
389
namespace_abort(ns);
usr.sbin/ldapd/modify.c
50
if ((ns = namespace_for_base(dn)) == NULL) {
usr.sbin/ldapd/modify.c
58
if (!authorized(req->conn, ns, ACI_WRITE, dn, NULL, LDAP_SCOPE_BASE))
usr.sbin/ldapd/modify.c
61
if (namespace_begin(ns) != 0) {
usr.sbin/ldapd/modify.c
63
if (namespace_queue_request(ns, req) != 0)
usr.sbin/ldapd/modify.c
74
if ((cursor = btree_txn_cursor_open(NULL, ns->data_txn)) == NULL)
usr.sbin/ldapd/modify.c
95
if ((entry = namespace_get(ns, dn)) == NULL) {
usr.sbin/ldapd/namespace.c
101
namespace_abort(struct namespace *ns)
usr.sbin/ldapd/namespace.c
103
btree_txn_abort(ns->data_txn);
usr.sbin/ldapd/namespace.c
104
ns->data_txn = NULL;
usr.sbin/ldapd/namespace.c
106
btree_txn_abort(ns->indx_txn);
usr.sbin/ldapd/namespace.c
107
ns->indx_txn = NULL;
usr.sbin/ldapd/namespace.c
111
namespace_open(struct namespace *ns)
usr.sbin/ldapd/namespace.c
115
assert(ns);
usr.sbin/ldapd/namespace.c
116
assert(ns->suffix);
usr.sbin/ldapd/namespace.c
118
if (ns->sync == 0)
usr.sbin/ldapd/namespace.c
121
if (asprintf(&ns->data_path, "%s/%s_data.db", datadir, ns->suffix) == -1)
usr.sbin/ldapd/namespace.c
123
log_info("opening namespace %s", ns->suffix);
usr.sbin/ldapd/namespace.c
124
ns->data_db = btree_open(ns->data_path, db_flags | BT_REVERSEKEY, 0644);
usr.sbin/ldapd/namespace.c
125
if (ns->data_db == NULL)
usr.sbin/ldapd/namespace.c
128
btree_set_cache_size(ns->data_db, ns->cache_size);
usr.sbin/ldapd/namespace.c
130
if (asprintf(&ns->indx_path, "%s/%s_indx.db", datadir, ns->suffix) == -1)
usr.sbin/ldapd/namespace.c
132
ns->indx_db = btree_open(ns->indx_path, db_flags, 0644);
usr.sbin/ldapd/namespace.c
133
if (ns->indx_db == NULL)
usr.sbin/ldapd/namespace.c
136
btree_set_cache_size(ns->indx_db, ns->index_cache_size);
usr.sbin/ldapd/namespace.c
139
evtimer_set(&ns->ev_queue, namespace_queue_replay, ns);
usr.sbin/ldapd/namespace.c
162
namespace_reopen_data(struct namespace *ns)
usr.sbin/ldapd/namespace.c
164
if (ns->data_db != NULL) {
usr.sbin/ldapd/namespace.c
165
btree_close(ns->data_db);
usr.sbin/ldapd/namespace.c
166
ns->data_db = NULL;
usr.sbin/ldapd/namespace.c
167
return namespace_reopen(ns->data_path);
usr.sbin/ldapd/namespace.c
173
namespace_reopen_indx(struct namespace *ns)
usr.sbin/ldapd/namespace.c
175
if (ns->indx_db != NULL) {
usr.sbin/ldapd/namespace.c
176
btree_close(ns->indx_db);
usr.sbin/ldapd/namespace.c
177
ns->indx_db = NULL;
usr.sbin/ldapd/namespace.c
178
return namespace_reopen(ns->indx_path);
usr.sbin/ldapd/namespace.c
184
namespace_set_fd(struct namespace *ns, struct btree **bt, int fd,
usr.sbin/ldapd/namespace.c
187
log_info("reopening namespace %s (entries)", ns->suffix);
usr.sbin/ldapd/namespace.c
189
if (ns->sync == 0)
usr.sbin/ldapd/namespace.c
198
namespace_set_data_fd(struct namespace *ns, int fd)
usr.sbin/ldapd/namespace.c
200
return namespace_set_fd(ns, &ns->data_db, fd, BT_REVERSEKEY);
usr.sbin/ldapd/namespace.c
204
namespace_set_indx_fd(struct namespace *ns, int fd)
usr.sbin/ldapd/namespace.c
206
return namespace_set_fd(ns, &ns->indx_db, fd, 0);
usr.sbin/ldapd/namespace.c
210
namespace_close(struct namespace *ns)
usr.sbin/ldapd/namespace.c
218
if (ns->queued_requests > 0) {
usr.sbin/ldapd/namespace.c
220
ns->queued_requests, ns->suffix);
usr.sbin/ldapd/namespace.c
221
while ((req = TAILQ_FIRST(&ns->request_queue)) != NULL) {
usr.sbin/ldapd/namespace.c
222
TAILQ_REMOVE(&ns->request_queue, req, next);
usr.sbin/ldapd/namespace.c
233
if (search->ns == ns)
usr.sbin/ldapd/namespace.c
238
free(ns->suffix);
usr.sbin/ldapd/namespace.c
239
btree_close(ns->data_db);
usr.sbin/ldapd/namespace.c
240
btree_close(ns->indx_db);
usr.sbin/ldapd/namespace.c
241
if (evtimer_pending(&ns->ev_queue, NULL))
usr.sbin/ldapd/namespace.c
242
evtimer_del(&ns->ev_queue);
usr.sbin/ldapd/namespace.c
243
free(ns->data_path);
usr.sbin/ldapd/namespace.c
244
free(ns->indx_path);
usr.sbin/ldapd/namespace.c
245
free(ns);
usr.sbin/ldapd/namespace.c
249
namespace_remove(struct namespace *ns)
usr.sbin/ldapd/namespace.c
251
TAILQ_REMOVE(&conf->namespaces, ns, next);
usr.sbin/ldapd/namespace.c
252
namespace_close(ns);
usr.sbin/ldapd/namespace.c
256
namespace_find(struct namespace *ns, char *dn)
usr.sbin/ldapd/namespace.c
261
if (ns->data_db == NULL) {
usr.sbin/ldapd/namespace.c
272
if (btree_txn_get(ns->data_db, ns->data_txn, &key, &val) != 0) {
usr.sbin/ldapd/namespace.c
279
namespace_reopen_data(ns);
usr.sbin/ldapd/namespace.c
288
namespace_get(struct namespace *ns, char *dn)
usr.sbin/ldapd/namespace.c
293
if ((val = namespace_find(ns, dn)) == NULL)
usr.sbin/ldapd/namespace.c
296
elm = namespace_db2ber(ns, val);
usr.sbin/ldapd/namespace.c
302
namespace_exists(struct namespace *ns, char *dn)
usr.sbin/ldapd/namespace.c
306
if ((val = namespace_find(ns, dn)) == NULL)
usr.sbin/ldapd/namespace.c
313
namespace_ber2db(struct namespace *ns, struct ber_element *root,
usr.sbin/ldapd/namespace.c
316
return ber2db(root, val, ns->compression_level);
usr.sbin/ldapd/namespace.c
320
namespace_db2ber(struct namespace *ns, struct btval *val)
usr.sbin/ldapd/namespace.c
322
return db2ber(val, ns->compression_level);
usr.sbin/ldapd/namespace.c
326
namespace_put(struct namespace *ns, char *dn, struct ber_element *root,
usr.sbin/ldapd/namespace.c
332
assert(ns != NULL);
usr.sbin/ldapd/namespace.c
333
assert(ns->data_txn != NULL);
usr.sbin/ldapd/namespace.c
334
assert(ns->indx_txn != NULL);
usr.sbin/ldapd/namespace.c
340
if (namespace_ber2db(ns, root, &val) != 0)
usr.sbin/ldapd/namespace.c
343
rc = btree_txn_put(NULL, ns->data_txn, &key, &val,
usr.sbin/ldapd/namespace.c
355
if (update && (rc = unindex_entry(ns, &key, root)) != BT_SUCCESS)
usr.sbin/ldapd/namespace.c
358
rc = index_entry(ns, &key, root);
usr.sbin/ldapd/namespace.c
366
namespace_add(struct namespace *ns, char *dn, struct ber_element *root)
usr.sbin/ldapd/namespace.c
368
return namespace_put(ns, dn, root, 0);
usr.sbin/ldapd/namespace.c
372
namespace_update(struct namespace *ns, char *dn, struct ber_element *root)
usr.sbin/ldapd/namespace.c
374
return namespace_put(ns, dn, root, 1);
usr.sbin/ldapd/namespace.c
378
namespace_del(struct namespace *ns, char *dn)
usr.sbin/ldapd/namespace.c
384
assert(ns != NULL);
usr.sbin/ldapd/namespace.c
385
assert(ns->indx_txn != NULL);
usr.sbin/ldapd/namespace.c
386
assert(ns->data_txn != NULL);
usr.sbin/ldapd/namespace.c
39
static struct btval *namespace_find(struct namespace *ns, char *dn);
usr.sbin/ldapd/namespace.c
394
rc = btree_txn_del(NULL, ns->data_txn, &key, &data);
usr.sbin/ldapd/namespace.c
395
if (rc == BT_SUCCESS && (root = namespace_db2ber(ns, &data)) != NULL)
usr.sbin/ldapd/namespace.c
396
rc = unindex_entry(ns, &key, root);
usr.sbin/ldapd/namespace.c
403
namespace_has_referrals(struct namespace *ns)
usr.sbin/ldapd/namespace.c
405
return !SLIST_EMPTY(&ns->referrals);
usr.sbin/ldapd/namespace.c
41
static int namespace_set_fd(struct namespace *ns,
usr.sbin/ldapd/namespace.c
412
struct namespace *ns, *matched_ns = NULL;
usr.sbin/ldapd/namespace.c
417
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/namespace.c
418
slen = strlen(ns->suffix);
usr.sbin/ldapd/namespace.c
419
if ((include_referrals || !namespace_has_referrals(ns)) &&
usr.sbin/ldapd/namespace.c
421
bcmp(basedn + blen - slen, ns->suffix, slen) == 0) {
usr.sbin/ldapd/namespace.c
424
strlen(ns->suffix) > strlen(matched_ns->suffix))
usr.sbin/ldapd/namespace.c
425
matched_ns = ns;
usr.sbin/ldapd/namespace.c
441
struct namespace *ns;
usr.sbin/ldapd/namespace.c
443
if ((ns = namespace_lookup_base(basedn, 1)) != NULL &&
usr.sbin/ldapd/namespace.c
444
namespace_has_referrals(ns))
usr.sbin/ldapd/namespace.c
445
return &ns->referrals;
usr.sbin/ldapd/namespace.c
45
namespace_begin_txn(struct namespace *ns, struct btree_txn **data_txn,
usr.sbin/ldapd/namespace.c
454
namespace_has_index(struct namespace *ns, const char *attr,
usr.sbin/ldapd/namespace.c
459
assert(ns);
usr.sbin/ldapd/namespace.c
461
TAILQ_FOREACH(ai, &ns->indices, next) {
usr.sbin/ldapd/namespace.c
472
namespace_queue_request(struct namespace *ns, struct request *req)
usr.sbin/ldapd/namespace.c
474
if (ns->queued_requests > MAX_REQUEST_QUEUE) {
usr.sbin/ldapd/namespace.c
476
ns->queued_requests);
usr.sbin/ldapd/namespace.c
48
if (ns->data_db == NULL || ns->indx_db == NULL) {
usr.sbin/ldapd/namespace.c
480
TAILQ_INSERT_TAIL(&ns->request_queue, req, next);
usr.sbin/ldapd/namespace.c
481
ns->queued_requests++;
usr.sbin/ldapd/namespace.c
483
if (!evtimer_pending(&ns->ev_queue, NULL))
usr.sbin/ldapd/namespace.c
484
namespace_queue_schedule(ns, 250000);
usr.sbin/ldapd/namespace.c
492
struct namespace *ns = data;
usr.sbin/ldapd/namespace.c
495
if (ns->data_db == NULL || ns->indx_db == NULL) {
usr.sbin/ldapd/namespace.c
496
log_debug("%s: database is being reopened", ns->suffix);
usr.sbin/ldapd/namespace.c
500
if ((req = TAILQ_FIRST(&ns->request_queue)) == NULL)
usr.sbin/ldapd/namespace.c
502
TAILQ_REMOVE(&ns->request_queue, req, next);
usr.sbin/ldapd/namespace.c
507
ns->queued_requests--;
usr.sbin/ldapd/namespace.c
509
if (!evtimer_pending(&ns->ev_queue, NULL))
usr.sbin/ldapd/namespace.c
510
namespace_queue_schedule(ns, 0);
usr.sbin/ldapd/namespace.c
514
namespace_queue_schedule(struct namespace *ns, unsigned int usec)
usr.sbin/ldapd/namespace.c
520
evtimer_add(&ns->ev_queue, &tv);
usr.sbin/ldapd/namespace.c
529
struct namespace *ns;
usr.sbin/ldapd/namespace.c
53
if ((*data_txn = btree_txn_begin(ns->data_db, rdonly)) == NULL ||
usr.sbin/ldapd/namespace.c
532
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/namespace.c
533
for (req = TAILQ_FIRST(&ns->request_queue); req != NULL;
usr.sbin/ldapd/namespace.c
538
TAILQ_REMOVE(&ns->request_queue, req, next);
usr.sbin/ldapd/namespace.c
54
(*indx_txn = btree_txn_begin(ns->indx_db, rdonly)) == NULL) {
usr.sbin/ldapd/namespace.c
548
struct namespace *ns;
usr.sbin/ldapd/namespace.c
552
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/namespace.c
553
TAILQ_FOREACH(req, &ns->request_queue, next) {
usr.sbin/ldapd/namespace.c
57
namespace_reopen_data(ns);
usr.sbin/ldapd/namespace.c
59
namespace_reopen_indx(ns);
usr.sbin/ldapd/namespace.c
72
namespace_begin(struct namespace *ns)
usr.sbin/ldapd/namespace.c
74
return namespace_begin_txn(ns, &ns->data_txn, &ns->indx_txn, 0);
usr.sbin/ldapd/namespace.c
78
namespace_commit(struct namespace *ns)
usr.sbin/ldapd/namespace.c
80
if (ns->indx_txn != NULL &&
usr.sbin/ldapd/namespace.c
81
btree_txn_commit(ns->indx_txn) != BT_SUCCESS) {
usr.sbin/ldapd/namespace.c
82
log_warn("%s(indx): commit failed", ns->suffix);
usr.sbin/ldapd/namespace.c
83
btree_txn_abort(ns->data_txn);
usr.sbin/ldapd/namespace.c
84
ns->indx_txn = ns->data_txn = NULL;
usr.sbin/ldapd/namespace.c
87
ns->indx_txn = NULL;
usr.sbin/ldapd/namespace.c
89
if (ns->data_txn != NULL &&
usr.sbin/ldapd/namespace.c
90
btree_txn_commit(ns->data_txn) != BT_SUCCESS) {
usr.sbin/ldapd/namespace.c
91
log_warn("%s(data): commit failed", ns->suffix);
usr.sbin/ldapd/namespace.c
92
ns->data_txn = NULL;
usr.sbin/ldapd/namespace.c
95
ns->data_txn = NULL;
usr.sbin/ldapd/parse.y
1205
struct namespace *ns;
usr.sbin/ldapd/parse.y
1207
if ((ns = calloc(1, sizeof(*ns))) == NULL)
usr.sbin/ldapd/parse.y
1209
ns->sync = 1;
usr.sbin/ldapd/parse.y
1210
ns->cache_size = 1024;
usr.sbin/ldapd/parse.y
1211
ns->index_cache_size = 512;
usr.sbin/ldapd/parse.y
1212
ns->suffix = strdup(suffix);
usr.sbin/ldapd/parse.y
1213
if (ns->suffix == NULL) {
usr.sbin/ldapd/parse.y
1214
free(ns->suffix);
usr.sbin/ldapd/parse.y
1215
free(ns);
usr.sbin/ldapd/parse.y
1218
normalize_dn(ns->suffix);
usr.sbin/ldapd/parse.y
1219
TAILQ_INIT(&ns->indices);
usr.sbin/ldapd/parse.y
1220
TAILQ_INIT(&ns->request_queue);
usr.sbin/ldapd/parse.y
1221
SIMPLEQ_INIT(&ns->acl);
usr.sbin/ldapd/parse.y
1222
SLIST_INIT(&ns->referrals);
usr.sbin/ldapd/parse.y
1224
return ns;
usr.sbin/ldapd/search.c
125
if (authorized(search->conn, search->ns, ACI_READ,
usr.sbin/ldapd/search.c
236
if (!authorized(search->conn, search->ns, ACI_READ, dn0,
usr.sbin/ldapd/search.c
244
if ((elm = namespace_db2ber(search->ns, val)) == NULL) {
usr.sbin/ldapd/search.c
389
rc = index_to_dn(search->ns, &ikey, &key);
usr.sbin/ldapd/search.c
492
struct namespace *ns;
usr.sbin/ldapd/search.c
512
TAILQ_FOREACH(ns, &conf->namespaces, next)
usr.sbin/ldapd/search.c
513
val = ober_add_string(val, ns->suffix);
usr.sbin/ldapd/search.c
659
plan_get_attr(struct plan *plan, struct namespace *ns, char *attr)
usr.sbin/ldapd/search.c
661
if (ns->relax) {
usr.sbin/ldapd/search.c
681
search_planner(struct namespace *ns, struct ber_element *filter)
usr.sbin/ldapd/search.c
708
if (plan_get_attr(plan, ns, attr) == -1)
usr.sbin/ldapd/search.c
716
if (namespace_has_index(ns, attr, INDEX_EQUAL))
usr.sbin/ldapd/search.c
724
if (plan_get_attr(plan, ns, attr) == -1)
usr.sbin/ldapd/search.c
733
if (namespace_has_index(ns, attr, INDEX_EQUAL))
usr.sbin/ldapd/search.c
740
if (plan_get_attr(plan, ns, attr) == -1)
usr.sbin/ldapd/search.c
743
if (namespace_has_index(ns, attr, INDEX_PRESENCE))
usr.sbin/ldapd/search.c
751
if ((arg = search_planner(ns, elm)) == NULL)
usr.sbin/ldapd/search.c
778
if ((arg = search_planner(ns, elm)) == NULL)
usr.sbin/ldapd/search.c
804
if ((arg = search_planner(ns, elm)) == NULL)
usr.sbin/ldapd/search.c
924
if ((search->ns = namespace_for_base(search->basedn)) == NULL) {
usr.sbin/ldapd/search.c
938
if (!authorized(req->conn, search->ns, ACI_READ,
usr.sbin/ldapd/search.c
944
if (namespace_begin_txn(search->ns, &search->data_txn,
usr.sbin/ldapd/search.c
947
if (namespace_queue_request(search->ns, req) != 0) {
usr.sbin/ldapd/search.c
978
if (!namespace_exists(search->ns, search->basedn)) {
usr.sbin/ldapd/search.c
983
search->plan = search_planner(search->ns, search->filter);
usr.sbin/ldapd/search.c
997
sz = strlen(search->basedn) - strlen(search->ns->suffix);
usr.sbin/ldapd/validate.c
106
struct namespace *ns;
usr.sbin/ldapd/validate.c
172
TAILQ_FOREACH(ns, &conf->namespaces, next) {
usr.sbin/ldapd/validate.c
173
if (strcmp(dn, ns->suffix) == 0)
usr.sbin/ldapd/validate.c
176
ns = namespace_for_base(sup_dn);
usr.sbin/ldapd/validate.c
177
if (ns == NULL || !namespace_exists(ns, sup_dn)) {
usr.sbin/npppd/l2tp/l2tp_call.c
449
hdr->ns = htons(_this->snd_nxt++);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1097
hdr->ns = htons(seq);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1109
ntohs(hdr->ns), htons(hdr->nr),
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1592
offsetof(struct l2tp_header, ns));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
537
ntohs(header->ns));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
693
GETSHORT(hdr.ns, pkt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
813
call->id, hdr.ns, hdr.nr, call->snd_nxt, call->rcv_nxt,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
823
if (SEQ_LT(hdr.ns, call->rcv_nxt)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
824
if (SEQ_LT(hdr.ns,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
831
hdr.ns, call->rcv_nxt));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
836
call->rcv_nxt = hdr.ns + 1;
usr.sbin/npppd/l2tp/l2tp_ctrl.c
847
"len=%d", (is_ctrl)? "C" : "", hdr.ns, hdr.nr,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
882
if (hdr.ns != ctrl->rcv_nxt) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
892
"mestype=%s", hdr.ns, ctrl->rcv_nxt,
usr.sbin/npppd/l2tp/l2tp_ctrl.c
901
if (!l2tp_ctrl_in_our_window(ctrl, hdr.ns)) {
usr.sbin/npppd/l2tp/l2tp_ctrl.c
905
hdr.ns, ctrl->snd_lastnr,
usr.sbin/npppd/l2tp/l2tp_local.h
63
uint16_t ns;
usr.sbin/nsd/difffile.c
1673
const dname_type* apex, *ns, *em;
usr.sbin/nsd/difffile.c
1682
ns = domain_dname(rdata_domain_ref(z->soa_rrset->rrs[0]));
usr.sbin/nsd/difffile.c
1686
+ ns->name_size + em->name_size;
usr.sbin/nsd/difffile.c
1688
ns = NULL;
usr.sbin/nsd/difffile.c
1706
memmove(p, &ns->name_size, sizeof(uint8_t));
usr.sbin/nsd/difffile.c
1708
memmove(p, dname_name(ns), ns->name_size);
usr.sbin/nsd/difffile.c
1709
p += ns->name_size;
usr.sbin/nsd/namedb.c
598
domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns)
usr.sbin/nsd/namedb.c
606
*ns = rrset;
usr.sbin/nsd/namedb.c
615
*ns = NULL;
usr.sbin/nsd/namedb.h
280
domain_type* domain_find_ns_rrsets(domain_type* domain, zone_type* zone, rrset_type **ns);
usr.sbin/nsd/radtree.c
186
unsigned ns = ((unsigned)n->capacity)*2;
usr.sbin/nsd/radtree.c
189
if(want > ns)
usr.sbin/nsd/radtree.c
190
ns = want;
usr.sbin/nsd/radtree.c
191
if(ns > 256) ns = 256;
usr.sbin/nsd/radtree.c
194
a = (struct radsel*)region_alloc_array(region, ns, sizeof(struct radsel));
usr.sbin/nsd/radtree.c
197
assert(n->capacity < ns);
usr.sbin/nsd/radtree.c
201
n->capacity = ns;
usr.sbin/rpki-client/rrdp.c
539
struct rrdp *s, *ns;
usr.sbin/rpki-client/rrdp.c
621
TAILQ_FOREACH_SAFE(s, &states, entry, ns) {
usr.sbin/rpki-client/rsync.c
250
struct rsync *s, *ns;
usr.sbin/rpki-client/rsync.c
421
TAILQ_FOREACH_SAFE(s, &states, entry, ns) {
usr.sbin/smtpd/unpack_dns.c
98
unpack_dname(p, rr->rr.ns.nsname, sizeof(rr->rr.ns.nsname));
usr.sbin/smtpd/unpack_dns.h
62
} ns;
usr.sbin/unbound/daemon/cachedump.c
756
unsigned int flags, qdcount, security, an, ns, ar;
usr.sbin/unbound/daemon/cachedump.c
779
&security, &an, &ns, &ar, &ede, &consumed) != 8) {
usr.sbin/unbound/daemon/cachedump.c
793
if(an > RR_COUNT_MAX || ns > RR_COUNT_MAX || ar > RR_COUNT_MAX) {
usr.sbin/unbound/daemon/cachedump.c
798
rep.ns_numrrsets = (size_t)ns;
usr.sbin/unbound/daemon/cachedump.c
800
rep.rrset_count = (size_t)an+(size_t)ns+(size_t)ar;
usr.sbin/unbound/daemon/remote.c
2565
struct delegpt_ns* ns;
usr.sbin/unbound/daemon/remote.c
2577
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/daemon/remote.c
2578
dname_str(ns->name, buf);
usr.sbin/unbound/iterator/iter_delegpt.c
109
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
117
ns = (struct delegpt_ns*)regional_alloc(region,
usr.sbin/unbound/iterator/iter_delegpt.c
119
if(!ns)
usr.sbin/unbound/iterator/iter_delegpt.c
121
ns->next = dp->nslist;
usr.sbin/unbound/iterator/iter_delegpt.c
122
ns->namelen = len;
usr.sbin/unbound/iterator/iter_delegpt.c
123
dp->nslist = ns;
usr.sbin/unbound/iterator/iter_delegpt.c
124
ns->name = regional_alloc_init(region, name, ns->namelen);
usr.sbin/unbound/iterator/iter_delegpt.c
125
ns->cache_lookup_count = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
126
ns->resolved = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
127
ns->got4 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
128
ns->got6 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
129
ns->lame = lame;
usr.sbin/unbound/iterator/iter_delegpt.c
130
ns->done_pside4 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
131
ns->done_pside6 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
132
ns->port = port;
usr.sbin/unbound/iterator/iter_delegpt.c
134
ns->tls_auth_name = regional_strdup(region, tls_auth_name);
usr.sbin/unbound/iterator/iter_delegpt.c
135
if(!ns->tls_auth_name)
usr.sbin/unbound/iterator/iter_delegpt.c
138
ns->tls_auth_name = NULL;
usr.sbin/unbound/iterator/iter_delegpt.c
140
return ns->name != 0;
usr.sbin/unbound/iterator/iter_delegpt.c
178
struct delegpt_ns* ns = delegpt_find_ns(dp, name, namelen);
usr.sbin/unbound/iterator/iter_delegpt.c
180
if(!ns) {
usr.sbin/unbound/iterator/iter_delegpt.c
186
ns->got6 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
187
else ns->got4 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
188
if(ns->got4 && ns->got6)
usr.sbin/unbound/iterator/iter_delegpt.c
189
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
192
ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
193
else ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
195
log_assert(ns->port>0);
usr.sbin/unbound/iterator/iter_delegpt.c
197
ns->tls_auth_name, ns->port, additions);
usr.sbin/unbound/iterator/iter_delegpt.c
250
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
253
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
255
if(!ns->resolved)
usr.sbin/unbound/iterator/iter_delegpt.c
282
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
300
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
301
dname_str(ns->name, buf);
usr.sbin/unbound/iterator/iter_delegpt.c
303
(ns->resolved?"*":""),
usr.sbin/unbound/iterator/iter_delegpt.c
304
(ns->got4?" A":""), (ns->got6?" AAAA":""),
usr.sbin/unbound/iterator/iter_delegpt.c
305
(dp->bogus?" BOGUS":""), (ns->lame?" PARENTSIDE":""),
usr.sbin/unbound/iterator/iter_delegpt.c
306
(ns->done_pside4?" PSIDE_A":""),
usr.sbin/unbound/iterator/iter_delegpt.c
307
(ns->done_pside6?" PSIDE_AAAA":""));
usr.sbin/unbound/iterator/iter_delegpt.c
388
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
390
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
391
if(ns->resolved) continue;
usr.sbin/unbound/iterator/iter_delegpt.c
393
if(ns->lame) nlame++;
usr.sbin/unbound/iterator/iter_delegpt.c
547
void delegpt_mark_neg(struct delegpt_ns* ns, uint16_t qtype)
usr.sbin/unbound/iterator/iter_delegpt.c
549
if(ns) {
usr.sbin/unbound/iterator/iter_delegpt.c
551
ns->got4 = 2;
usr.sbin/unbound/iterator/iter_delegpt.c
553
ns->got6 = 2;
usr.sbin/unbound/iterator/iter_delegpt.c
554
if(ns->got4 && ns->got6)
usr.sbin/unbound/iterator/iter_delegpt.c
555
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
566
struct delegpt_ns* ns = delegpt_find_ns(dp, msg->key.qname,
usr.sbin/unbound/iterator/iter_delegpt.c
568
delegpt_mark_neg(ns, msg->key.qtype);
usr.sbin/unbound/iterator/iter_delegpt.c
574
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
575
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
577
if(ns->got4)
usr.sbin/unbound/iterator/iter_delegpt.c
578
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
584
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
585
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
587
if(ns->got6)
usr.sbin/unbound/iterator/iter_delegpt.c
588
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
645
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
653
ns = (struct delegpt_ns*)malloc(sizeof(struct delegpt_ns));
usr.sbin/unbound/iterator/iter_delegpt.c
654
if(!ns)
usr.sbin/unbound/iterator/iter_delegpt.c
656
ns->namelen = len;
usr.sbin/unbound/iterator/iter_delegpt.c
657
ns->name = memdup(name, ns->namelen);
usr.sbin/unbound/iterator/iter_delegpt.c
658
if(!ns->name) {
usr.sbin/unbound/iterator/iter_delegpt.c
659
free(ns);
usr.sbin/unbound/iterator/iter_delegpt.c
662
ns->next = dp->nslist;
usr.sbin/unbound/iterator/iter_delegpt.c
663
dp->nslist = ns;
usr.sbin/unbound/iterator/iter_delegpt.c
664
ns->cache_lookup_count = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
665
ns->resolved = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
666
ns->got4 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
667
ns->got6 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
668
ns->lame = (uint8_t)lame;
usr.sbin/unbound/iterator/iter_delegpt.c
669
ns->done_pside4 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
67
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
670
ns->done_pside6 = 0;
usr.sbin/unbound/iterator/iter_delegpt.c
671
ns->port = port;
usr.sbin/unbound/iterator/iter_delegpt.c
673
ns->tls_auth_name = strdup(tls_auth_name);
usr.sbin/unbound/iterator/iter_delegpt.c
674
if(!ns->tls_auth_name) {
usr.sbin/unbound/iterator/iter_delegpt.c
675
free(ns->name);
usr.sbin/unbound/iterator/iter_delegpt.c
676
free(ns);
usr.sbin/unbound/iterator/iter_delegpt.c
680
ns->tls_auth_name = NULL;
usr.sbin/unbound/iterator/iter_delegpt.c
734
struct delegpt_ns* ns = delegpt_find_ns(dp, name, namelen);
usr.sbin/unbound/iterator/iter_delegpt.c
736
if(!ns) {
usr.sbin/unbound/iterator/iter_delegpt.c
742
ns->got6 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
743
else ns->got4 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
744
if(ns->got4 && ns->got6)
usr.sbin/unbound/iterator/iter_delegpt.c
745
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
748
ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
749
else ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iter_delegpt.c
751
log_assert(ns->port>0);
usr.sbin/unbound/iterator/iter_delegpt.c
753
ns->tls_auth_name, ns->port);
usr.sbin/unbound/iterator/iter_delegpt.c
758
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_delegpt.c
763
for(ns=dp->nslist; ns; ns=ns->next)
usr.sbin/unbound/iterator/iter_delegpt.c
764
s += sizeof(*ns)+ns->namelen;
usr.sbin/unbound/iterator/iter_delegpt.c
77
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_delegpt.c
78
if(!delegpt_add_ns(copy, region, ns->name, ns->lame,
usr.sbin/unbound/iterator/iter_delegpt.c
79
ns->tls_auth_name, ns->port))
usr.sbin/unbound/iterator/iter_delegpt.c
81
copy->nslist->cache_lookup_count = ns->cache_lookup_count;
usr.sbin/unbound/iterator/iter_delegpt.c
82
copy->nslist->resolved = ns->resolved;
usr.sbin/unbound/iterator/iter_delegpt.c
83
copy->nslist->got4 = ns->got4;
usr.sbin/unbound/iterator/iter_delegpt.c
84
copy->nslist->got6 = ns->got6;
usr.sbin/unbound/iterator/iter_delegpt.c
85
copy->nslist->done_pside4 = ns->done_pside4;
usr.sbin/unbound/iterator/iter_delegpt.c
86
copy->nslist->done_pside6 = ns->done_pside6;
usr.sbin/unbound/iterator/iter_delegpt.h
380
void delegpt_mark_neg(struct delegpt_ns* ns, uint16_t qtype);
usr.sbin/unbound/iterator/iter_utils.c
1292
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_utils.c
1294
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_utils.c
1295
if(ns->cache_lookup_count > ITERATOR_NAME_CACHELOOKUP_MAX_PSIDE)
usr.sbin/unbound/iterator/iter_utils.c
1297
ns->cache_lookup_count++;
usr.sbin/unbound/iterator/iter_utils.c
1299
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/iterator/iter_utils.c
1300
ns->namelen, LDNS_RR_TYPE_A, qinfo->qclass,
usr.sbin/unbound/iterator/iter_utils.c
1304
ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iter_utils.c
1311
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/iterator/iter_utils.c
1312
ns->namelen, LDNS_RR_TYPE_AAAA, qinfo->qclass,
usr.sbin/unbound/iterator/iter_utils.c
1316
ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iter_utils.c
1356
iter_scrub_ds(struct dns_msg* msg, struct ub_packed_rrset_key* ns, uint8_t* z)
usr.sbin/unbound/iterator/iter_utils.c
1367
(!ns || !dname_subdomain_c(ns->rk.dname, s->rk.dname)
usr.sbin/unbound/iterator/iter_utils.c
780
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_utils.c
781
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_utils.c
782
if(ns->resolved)
usr.sbin/unbound/iterator/iter_utils.c
785
if(causes_cycle(qstate, ns->name, ns->namelen,
usr.sbin/unbound/iterator/iter_utils.c
787
causes_cycle(qstate, ns->name, ns->namelen,
usr.sbin/unbound/iterator/iter_utils.c
792
ns->name, LDNS_RR_TYPE_A,
usr.sbin/unbound/iterator/iter_utils.c
794
ns->resolved = 1;
usr.sbin/unbound/iterator/iter_utils.c
802
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_utils.c
803
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_utils.c
804
if(ns->done_pside4 && ns->done_pside6)
usr.sbin/unbound/iterator/iter_utils.c
807
if(causes_cycle(qstate, ns->name, ns->namelen,
usr.sbin/unbound/iterator/iter_utils.c
810
"to dependency cycle", ns->name,
usr.sbin/unbound/iterator/iter_utils.c
812
ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iter_utils.c
814
if(causes_cycle(qstate, ns->name, ns->namelen,
usr.sbin/unbound/iterator/iter_utils.c
817
"to dependency cycle", ns->name,
usr.sbin/unbound/iterator/iter_utils.c
819
ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iter_utils.c
829
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iter_utils.c
869
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iter_utils.c
870
if(ns->resolved) /* skip failed targets */
usr.sbin/unbound/iterator/iter_utils.c
872
if(!dname_subdomain_c(ns->name, dp->name))
usr.sbin/unbound/iterator/iter_utils.h
356
void iter_scrub_ds(struct dns_msg* msg, struct ub_packed_rrset_key* ns,
usr.sbin/unbound/iterator/iterator.c
2000
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iterator.c
2045
for(ns = iq->dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iterator.c
2046
if(ns->resolved)
usr.sbin/unbound/iterator/iterator.c
2058
((ns->lame && !ns->done_pside6) ||
usr.sbin/unbound/iterator/iterator.c
2059
(!ns->lame && !ns->got6))) {
usr.sbin/unbound/iterator/iterator.c
2062
ns->name, ns->namelen,
usr.sbin/unbound/iterator/iterator.c
2080
((ns->lame && !ns->done_pside4) ||
usr.sbin/unbound/iterator/iterator.c
2081
(!ns->lame && !ns->got4)))) {
usr.sbin/unbound/iterator/iterator.c
2082
ns->resolved = 1;
usr.sbin/unbound/iterator/iterator.c
2089
((ns->lame && !ns->done_pside4) ||
usr.sbin/unbound/iterator/iterator.c
2090
(!ns->lame && !ns->got4))) {
usr.sbin/unbound/iterator/iterator.c
2092
ns->name, ns->namelen,
usr.sbin/unbound/iterator/iterator.c
2105
ns->resolved = 1;
usr.sbin/unbound/iterator/iterator.c
2111
ns->resolved = 1;
usr.sbin/unbound/iterator/iterator.c
2140
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iterator.c
2173
for(ns = dp->nslist; ns; ns=ns->next) {
usr.sbin/unbound/iterator/iterator.c
2175
ns->name, ns->lame, ns->tls_auth_name,
usr.sbin/unbound/iterator/iterator.c
2176
ns->port);
usr.sbin/unbound/iterator/iterator.c
2261
for(ns = iq->dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/iterator/iterator.c
2264
if( ((ie->supports_ipv6 && !ns->done_pside6) ||
usr.sbin/unbound/iterator/iterator.c
2265
((ie->supports_ipv4 || ie->nat64.use_nat64) && !ns->done_pside4)) &&
usr.sbin/unbound/iterator/iterator.c
2266
!can_have_last_resort(qstate->env, ns->name, ns->namelen,
usr.sbin/unbound/iterator/iterator.c
2270
ns->name, LDNS_RR_TYPE_NS, iq->qchase.qclass);
usr.sbin/unbound/iterator/iterator.c
2271
if(ie->supports_ipv6) ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iterator.c
2272
if(ie->supports_ipv4 || ie->nat64.use_nat64) ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iterator.c
2276
if(ie->supports_ipv6 && !ns->done_pside6) {
usr.sbin/unbound/iterator/iterator.c
2279
ns->name, ns->namelen,
usr.sbin/unbound/iterator/iterator.c
2281
errinf_dname(qstate, "could not generate nameserver AAAA lookup for", ns->name);
usr.sbin/unbound/iterator/iterator.c
2285
ns->done_pside6 = 1;
usr.sbin/unbound/iterator/iterator.c
2297
if((ie->supports_ipv4 || ie->nat64.use_nat64) && !ns->done_pside4) {
usr.sbin/unbound/iterator/iterator.c
2300
ns->name, ns->namelen,
usr.sbin/unbound/iterator/iterator.c
2302
errinf_dname(qstate, "could not generate nameserver A lookup for", ns->name);
usr.sbin/unbound/iterator/iterator.c
2306
ns->done_pside4 = 1;
usr.sbin/unbound/iterator/iterator.c
2474
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iterator.c
2504
for(ns=iq->dp->nslist; ns; ns=ns->next) {
usr.sbin/unbound/iterator/iterator.c
2505
ns->resolved = 1;
usr.sbin/unbound/iterator/iterator.c
2545
struct delegpt_ns* ns;
usr.sbin/unbound/iterator/iterator.c
2550
for(ns=iq->dp->nslist; ns; ns=ns->next) {
usr.sbin/unbound/iterator/iterator.c
2551
ns->resolved = 1;
usr.sbin/unbound/iterator/iterator.c
3224
struct ub_packed_rrset_key* ns = find_NS(
usr.sbin/unbound/iterator/iterator.c
3228
if(!ns) ns = find_NS(iq->response->rep, 0,
usr.sbin/unbound/iterator/iterator.c
3230
if(!ns || !dname_strict_subdomain_c(ns->rk.dname, iq->dp->name)
usr.sbin/unbound/iterator/iterator.c
3231
|| !dname_subdomain_c(iq->qchase.qname, ns->rk.dname)){
usr.sbin/unbound/iterator/iterator.c
3235
iter_scrub_ds(iq->response, ns, iq->dp->name);
usr.sbin/unbound/services/cache/dns.c
311
struct delegpt_ns* ns;
usr.sbin/unbound/services/cache/dns.c
314
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/services/cache/dns.c
315
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/services/cache/dns.c
316
ns->namelen, LDNS_RR_TYPE_A, qclass, 0, now, 0);
usr.sbin/unbound/services/cache/dns.c
328
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/dns.c
335
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/services/cache/dns.c
336
ns->namelen, LDNS_RR_TYPE_AAAA, qclass, 0, now, 0);
usr.sbin/unbound/services/cache/dns.c
348
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/dns.c
355
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/dns.c
371
struct delegpt_ns* ns;
usr.sbin/unbound/services/cache/dns.c
375
for(ns = dp->nslist; ns; ns = ns->next) {
usr.sbin/unbound/services/cache/dns.c
376
if(ns->cache_lookup_count > ITERATOR_NAME_CACHELOOKUP_MAX)
usr.sbin/unbound/services/cache/dns.c
378
ns->cache_lookup_count++;
usr.sbin/unbound/services/cache/dns.c
379
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/services/cache/dns.c
380
ns->namelen, LDNS_RR_TYPE_A, qclass, flags, now, 0);
usr.sbin/unbound/services/cache/dns.c
382
if(!delegpt_add_rrset_A(dp, region, akey, ns->lame,
usr.sbin/unbound/services/cache/dns.c
388
ns->name, LDNS_RR_TYPE_A, qclass);
usr.sbin/unbound/services/cache/dns.c
393
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/dns.c
400
akey = rrset_cache_lookup(env->rrset_cache, ns->name,
usr.sbin/unbound/services/cache/dns.c
401
ns->namelen, LDNS_RR_TYPE_AAAA, qclass, flags, now, 0);
usr.sbin/unbound/services/cache/dns.c
403
if(!delegpt_add_rrset_AAAA(dp, region, akey, ns->lame,
usr.sbin/unbound/services/cache/dns.c
409
ns->name, LDNS_RR_TYPE_AAAA, qclass);
usr.sbin/unbound/services/cache/dns.c
414
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/dns.c
421
neg = msg_cache_lookup(env, ns->name, ns->namelen,
usr.sbin/unbound/services/cache/rrset.c
129
need_to_update_rrset(void* nd, void* cd, time_t timenow, int equal, int ns)
usr.sbin/unbound/services/cache/rrset.c
163
if(ns) {
usr.sbin/unbound/testcode/pktview.c
156
uint16_t i, f, qd, an, ns, ar;
usr.sbin/unbound/testcode/pktview.c
169
ns = sldns_buffer_read_u16(pkt);
usr.sbin/unbound/testcode/pktview.c
170
printf("nscount: %d\n", (int)ns);
usr.sbin/unbound/testcode/pktview.c
180
if(rrnum == (int)qd+(int)an+(int)ns)
usr.sbin/unbound/util/data/msgreply.c
101
size_t ns, size_t ar, size_t total, enum sec_status sec,
usr.sbin/unbound/util/data/msgreply.c
122
rep->ns_numrrsets = ns;
usr.sbin/unbound/util/data/msgreply.h
272
size_t ns, size_t ar, size_t total, enum sec_status sec,
usr.sbin/vmd/i8253.c
122
uint64_t ns, ticks;
usr.sbin/vmd/i8253.c
139
ns = delta.tv_sec * 1000000000 + delta.tv_nsec;
usr.sbin/vmd/i8253.c
140
ticks = ns / NS_PER_TICK;
usr.sbin/vmd/i8253.c
169
uint64_t ns, ticks;
usr.sbin/vmd/i8253.c
187
ns = delta.tv_sec * 1000000000 + delta.tv_nsec;
usr.sbin/vmd/i8253.c
188
ticks = ns / NS_PER_TICK;
usr.sbin/vmd/i8253.c
225
uint64_t ns, ticks;
usr.sbin/vmd/i8253.c
257
ns = delta.tv_sec * 1000000000 + delta.tv_nsec;
usr.sbin/vmd/i8253.c
258
ticks = ns / NS_PER_TICK;