/netbsd-current/sys/net/npf/ |
H A D | lpm.c | 289 unsigned preflen, uint32_t *prefix) 299 if (preflen == 0) { 303 if (preflen < 32) { 304 uint32_t mask = htonl(0xffffffff << (32 - preflen)); 306 preflen = 0; 309 preflen -= 32; 321 size_t len, unsigned preflen, void *val) 328 if (preflen == 0) { 333 compute_prefix(nwords, addr, preflen, prefix); 334 entry = hashmap_insert(&lpm->prefix[preflen], prefi 288 compute_prefix(const unsigned nwords, const uint32_t *addr, unsigned preflen, uint32_t *prefix) argument 320 lpm_insert(lpm_t *lpm, const void *addr, size_t len, unsigned preflen, void *val) argument 348 lpm_remove(lpm_t *lpm, const void *addr, size_t len, unsigned preflen) argument 378 const unsigned preflen = (32 * n) + (32 - --i); local 399 lpm_lookup_prefix(lpm_t *lpm, const void *addr, size_t len, unsigned preflen) argument 425 lpm_strtobin(const char *cidr, void *addr, size_t *len, unsigned *preflen) argument [all...] |
H A D | npf_inet.c | 843 unsigned remnant, word, preflen = len >> 4; local 876 for (unsigned i = 0; i < preflen; i++) { 884 if ((remnant = len - (preflen << 4)) != 0) { 886 const unsigned i = preflen;
|
H A D | npf_tableset.c | 576 const unsigned preflen = local 578 ent->te_preflen = preflen; 581 lpm_insert(t->t_lpm, addr, alen, preflen, ent) == 0) {
|
/netbsd-current/usr.sbin/mountd/ |
H A D | get_net.c | 121 long preflen; local 178 preflen = strtol(prefp, NULL, 10); 179 if (preflen == LONG_MIN && errno == ERANGE) 181 net->nt_len = (int)preflen;
|
/netbsd-current/external/bsd/am-utils/dist/amd/ |
H A D | readdir.c | 100 u_int preflen = 0; local 121 preflen = strlen(mp->am_pref); 150 if (preflen) { 151 if (preflen > strlen(key)) 153 if (!NSTREQ(key, mp->am_pref, preflen)) 155 key += preflen; 525 u_int preflen = 0; local 546 preflen = strlen(mp->am_pref); 575 if (preflen) { 576 if (preflen > strle [all...] |
/netbsd-current/usr.sbin/npf/npfctl/ |
H A D | npf_data.c | 641 unsigned i, remnant, wordmask, preflen = len >> 4; local 648 remnant = len - (preflen << 4); 653 for (i = 0; i < preflen; i++) { 662 for (i = 0; i < preflen; i++) {
|
H A D | npf_cmd.c | 85 const size_t preflen = sizeof(NPF_RULESET_MAP_PREF) - 1; local 86 *natset = strncmp(name, NPF_RULESET_MAP_PREF, preflen) == 0; 87 return (*natset && strlen(name) <= preflen) ? -1 : 0;
|
/netbsd-current/usr.bin/mail/ |
H A D | cmd3.c | 264 size_t preflen; local 269 preflen = strlen(pref); 270 if (strncasecmp(subj, pref, preflen) == 0) 272 newsubj = salloc(strlen(subj) + preflen + 1 + 1);
|
/netbsd-current/crypto/external/bsd/openssl.old/dist/ssl/ |
H A D | t1_lib.c | 1726 const uint16_t *pref, size_t preflen, 1731 for (i = 0, ptmp = pref; i < preflen; i++, ptmp++) { 1753 size_t preflen, allowlen, conflen; local 1773 preflen = conflen; 1780 preflen = s->s3->tmp.peer_sigalgslen; 1782 nmatch = tls12_shared_sigalgs(s, NULL, pref, preflen, allow, allowlen); 1788 nmatch = tls12_shared_sigalgs(s, salgs, pref, preflen, allow, allowlen); 1725 tls12_shared_sigalgs(SSL *s, const SIGALG_LOOKUP **shsig, const uint16_t *pref, size_t preflen, const uint16_t *allow, size_t allowlen) argument
|
/netbsd-current/external/mpl/dhcp/dist/server/ |
H A D | dhcpv6.c | 105 int preflen; member in struct:reply_state 175 static int eval_prefix_mode(int thislen, int preflen, int prefix_mode); 1584 if (reply->preflen <= 0) { 1681 (eval_prefix_mode(p->units, reply->preflen, 1699 * \param preflen - preferred prefix length against which to test 1709 eval_prefix_mode(int len, int preflen, int prefix_mode) { argument 1713 use_it = (len == preflen); 1716 /* they asked for a prefix length no "shorter" than preflen */ 1717 use_it = (len >= preflen); 1720 /* they asked for a prefix length no "longer" than preflen */ [all...] |
/netbsd-current/crypto/external/bsd/openssl/dist/ssl/ |
H A D | t1_lib.c | 2207 const uint16_t *pref, size_t preflen, 2212 for (i = 0, ptmp = pref; i < preflen; i++, ptmp++) { 2235 size_t preflen, allowlen, conflen; local 2255 preflen = conflen; 2262 preflen = s->s3.tmp.peer_sigalgslen; 2264 nmatch = tls12_shared_sigalgs(s, NULL, pref, preflen, allow, allowlen); 2270 nmatch = tls12_shared_sigalgs(s, salgs, pref, preflen, allow, allowlen); 2206 tls12_shared_sigalgs(SSL *s, const SIGALG_LOOKUP **shsig, const uint16_t *pref, size_t preflen, const uint16_t *allow, size_t allowlen) argument
|