Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 71) sorted by relevance

123

/dragonfly/contrib/nvi2/common/
H A Dseq.c54 olen = 0; in seq_set()
60 qp->olen = olen; in seq_set()
91 olen = 0; in seq_set()
101 qp->olen = olen; in seq_set()
279 int cnt, len, olen; in seq_dump() local
288 olen = qp->ilen, len = 0; olen > 0; --olen, ++p) in seq_dump()
295 olen = qp->olen, len = 0; olen > 0; --olen, ++p) in seq_dump()
304 olen = qp->nlen; olen > 0; --olen, ++p) in seq_dump()
323 size_t olen; in seq_save() local
332 for (p = qp->input, olen = qp->ilen; olen > 0; --olen) { in seq_save()
[all …]
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Dbase64.c28 size_t olen; in base64_gen_encode() local
33 olen = len * 4 / 3 + 4; /* 3-byte blocks to 4-byte */ in base64_gen_encode()
35 olen += olen / 72; /* line feeds */ in base64_gen_encode()
36 olen++; /* nul termination */ in base64_gen_encode()
37 if (olen < len) in base64_gen_encode()
39 out = os_malloc(olen); in base64_gen_encode()
91 size_t i, count, olen; in base64_gen_decode() local
110 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode()
111 pos = out = os_malloc(olen); in base64_gen_decode()
/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dfils_hlp.c59 u8 opt, olen; in fils_dhcp_request() local
66 olen = *pos++; in fils_dhcp_request()
72 if (olen > 0) in fils_dhcp_request()
80 os_memmove(pos, pos + 2 + olen, end - pos - 2 - olen); in fils_dhcp_request()
82 olen = 0; in fils_dhcp_request()
85 pos += olen; in fils_dhcp_request()
98 u8 opt, olen; in fils_dhcp_request() local
105 olen = *pos++; in fils_dhcp_request()
114 pos += olen; in fils_dhcp_request()
202 u8 opt, olen; in fils_dhcp_handler() local
[all …]
/dragonfly/usr.sbin/ppp/
H A Ddeflate.c75 int olen, ilen, len, res, flush; in DeflateOutput() local
111 olen = 0; in DeflateOutput()
152 if (olen >= ilen) { in DeflateOutput()
172 mo->m_len -= len - olen; in DeflateOutput()
179 ccp->compout += olen; in DeflateOutput()
182 ilen, olen, *proto); in DeflateOutput()
205 int ilen, olen; in DeflateInput() local
255 olen = 0; in DeflateInput()
316 olen -= 2; in DeflateInput()
319 ccp->uncompin += olen; in DeflateInput()
[all …]
H A Dtcpmss.c102 size_t hlen, olen, optlen; in MSSFixup() local
117 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in MSSFixup()
118 olen > 0; olen -= optlen, opt += optlen) { in MSSFixup()
125 if (optlen <= 0 || optlen > olen) in MSSFixup()
H A Dpred.c223 int len, olen, len1; in Pred1Input() local
230 olen = m_length(bp); in Pred1Input()
238 len1 = decompress(state, cp, pp, olen - 4); in Pred1Input()
239 ccp->compin += olen; in Pred1Input()
248 cp += olen - 4; in Pred1Input()
250 } else if (len + 4 != olen) { in Pred1Input()
251 log_Printf(LogCCP, "Pred1: Length error (got %d, not %d)\n", len + 4, olen); in Pred1Input()
283 " olen = 0x%x\n", fcs, pre, len, olen); in Pred1Input()
H A Dvjcomp.c119 int len, olen, rlen; in VjUncompressTcp() local
123 olen = len = m_length(bp); in VjUncompressTcp()
150 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat, in VjUncompressTcp()
156 len -= olen; in VjUncompressTcp()
/dragonfly/sys/vfs/msdosfs/
H A Dmsdosfs_conv.c813 size_t len, olen; in dos2unixchr() local
816 olen = len = 2; in dos2unixchr()
827 len -= olen; in dos2unixchr()
899 olen = len = 2; in unix2doschr()
904 len -= olen; in unix2doschr()
935 size_t ilen, olen, len; in win2unixchr() local
943 ilen = olen = len = 2; in win2unixchr()
948 len -= olen; in win2unixchr()
976 size_t olen; in unix2winchr() local
983 olen = 2; in unix2winchr()
[all …]
/dragonfly/games/pig/
H A Dpig.c83 int olen; in pigout() local
98 for (start = 0, olen = len; in pigout()
99 start < olen && !index("aeiouyAEIOUY", buf[start]);) { in pigout()
101 if ((ch == 'q' || ch == 'Q') && start < olen && in pigout()
105 printf("%.*say", olen, buf + start); in pigout()
/dragonfly/lib/libtcplay/
H A Dcrypto-dev.c48 size_t olen; in getallowsoft() local
50 olen = sizeof(old); in getallowsoft()
52 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) { in getallowsoft()
64 size_t olen, nlen; in setallowsoft() local
66 olen = nlen = sizeof(new); in setallowsoft()
68 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) { in setallowsoft()
/dragonfly/contrib/tcpdump/
H A Dprint-pim.c760 uint16_t otype, olen; in pimv2_print() local
769 olen); in pimv2_print()
773 if (len < olen) in pimv2_print()
775 ND_TCHECK_LEN(bp, olen); in pimv2_print()
778 if (olen != 2) { in pimv2_print()
789 if (olen != 4) { in pimv2_print()
807 switch (olen) { in pimv2_print()
823 if (olen != 4) { in pimv2_print()
833 if (olen != 4) { in pimv2_print()
877 bp += olen; in pimv2_print()
[all …]
H A Dprint-fr.c809 u_int olen; in q933_print() local
834 olen = length; /* preserve the original length for display */ in q933_print()
846 ND_PRINT("length %u", olen); in q933_print()
860 ND_PRINT("length %u", olen); in q933_print()
876 ND_PRINT("length %u", olen); in q933_print()
943 olen); in q933_print()
975 ND_PRINT(", length %u", olen); in q933_print()
1018 ND_PRINT(", length %u", olen); in q933_print()
1043 ND_PRINT(", length %u", olen); in q933_print()
1077 ND_PRINT(", length %u", olen); in q933_print()
/dragonfly/libexec/revnetgroup/
H A Dparse_netgroup.c283 int len, olen; in read_for_group() local
312 olen = 0; in read_for_group()
325 linep = (char *)malloc(olen + len + 1); in read_for_group()
326 if (olen > 0) { in read_for_group()
327 bcopy(olinep, linep, olen); in read_for_group()
330 bcopy(pos, linep + olen, len); in read_for_group()
331 olen += len; in read_for_group()
332 *(linep + olen) = '\0'; in read_for_group()
/dragonfly/contrib/smbfs/lib/smb/
H A Dkiconv.c52 size_t olen; in kiconv_add_xlat_table() local
62 olen = sizeof(dout); in kiconv_add_xlat_table()
65 if (sysctlbyname("net.smb.fs.iconv.add", &dout, &olen, &din, sizeof(din)) == -1) { in kiconv_add_xlat_table()
71 if (sysctlbyname("kern.iconv.add", &dout, &olen, &din, sizeof(din)) == -1) in kiconv_add_xlat_table()
/dragonfly/test/testcases/crypto/aesxts/
H A Daes_xts.c97 size_t olen; in getallowsoft() local
99 olen = sizeof(old); in getallowsoft()
101 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) in getallowsoft()
111 size_t olen, nlen; in setallowsoft() local
113 olen = nlen = sizeof(new); in setallowsoft()
115 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) in setallowsoft()
/dragonfly/crypto/libressl/crypto/cms/
H A Dcms_pwri.c284 size_t olen; in kek_wrap_key() local
291 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key()
292 olen *= blocklen; in kek_wrap_key()
293 if (olen < 2 * blocklen) { in kek_wrap_key()
309 if (olen > inlen + 4) in kek_wrap_key()
310 arc4random_buf(out + 4 + inlen, olen - 4 - inlen); in kek_wrap_key()
312 if (!EVP_EncryptUpdate(ctx, out, &dummy, out, olen) || in kek_wrap_key()
313 !EVP_EncryptUpdate(ctx, out, &dummy, out, olen)) in kek_wrap_key()
317 *outlen = olen; in kek_wrap_key()
/dragonfly/test/testcases/crypto/aesctr/
H A Daesctr.c190 size_t olen; in getallowsoft() local
192 olen = sizeof(old); in getallowsoft()
194 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) in getallowsoft()
204 size_t olen, nlen; in setallowsoft() local
206 olen = nlen = sizeof(new); in setallowsoft()
208 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) in setallowsoft()
/dragonfly/lib/libkiconv/
H A Dxlat16_sysctl.c55 size_t olen; in kiconv_add_xlat16_table() local
65 olen = sizeof(dout); in kiconv_add_xlat16_table()
66 if (sysctlbyname("kern.iconv.add", &dout, &olen, &din, sizeof(din)) == -1) in kiconv_add_xlat16_table()
/dragonfly/lib/libc/gen/
H A Dgetnetgrent.c524 int len, olen; local
578 olen = 0;
592 linep = (char *)malloc(olen + len + 1);
593 if (olen > 0) {
594 bcopy(olinep, linep, olen);
597 bcopy(pos, linep + olen, len);
598 olen += len;
599 *(linep + olen) = '\0';
/dragonfly/usr.bin/whereis/
H A Dwhereis.c362 size_t nlen, olen, s; in main() local
439 olen = strlen(bin); in main()
442 olen + nlen + 2); in main()
513 olen = strlen(man); in main()
516 olen + nlen + 2); in main()
552 olen = strlen(src); in main()
555 olen + nlen + 2); in main()
619 olen = strlen(src); in main()
622 olen + in main()
/dragonfly/test/testcases/crypto/aes/
H A Daestest.c111 size_t olen; in getallowsoft() local
113 olen = sizeof(old); in getallowsoft()
115 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) in getallowsoft()
125 size_t olen, nlen; in setallowsoft() local
127 olen = nlen = sizeof(new); in setallowsoft()
129 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) in setallowsoft()
/dragonfly/test/testcases/crypto/serpent/
H A Dserpent_test.c110 size_t olen; in getallowsoft() local
112 olen = sizeof(old); in getallowsoft()
114 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) in getallowsoft()
124 size_t olen, nlen; in setallowsoft() local
126 olen = nlen = sizeof(new); in setallowsoft()
128 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) in setallowsoft()
/dragonfly/test/testcases/crypto/twofish/
H A Dtwofish_test.c110 size_t olen; in getallowsoft() local
112 olen = sizeof(old); in getallowsoft()
114 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, NULL, 0) < 0) in getallowsoft()
124 size_t olen, nlen; in setallowsoft() local
126 olen = nlen = sizeof(new); in setallowsoft()
128 if (sysctlbyname("kern.cryptodevallowsoft", &old, &olen, &new, nlen) < 0) in setallowsoft()
/dragonfly/sys/netgraph7/tcpmss/
H A Dng_tcpmss.c413 int olen, optlen; in correct_mss() local
419 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); in correct_mss()
420 olen > 0; olen -= optlen, opt += optlen) { in correct_mss()
427 if (optlen <= 0 || optlen > olen) in correct_mss()
/dragonfly/contrib/dhcpcd/src/
H A Dprivsep-bsd.c376 size_t olen = (oldp && oldlenp) ? *oldlenp : 0, nolen; in ps_root_sysctl() local
394 memcpy(p, &olen, sizeof(olen)); in ps_root_sysctl()
395 p += sizeof(olen); in ps_root_sysctl()
415 if (oldp && nolen <= olen) in ps_root_sysctl()

123