/openbsd-current/usr.sbin/eigrpd/ |
H A D | tlv.c | 57 uint8_t alen; local 71 alen = sizeof (struct in_addr); 74 alen = sizeof(struct in6_addr); 79 if (ibuf_add(buf, &alen, sizeof(alen))) 81 if (ibuf_add(buf, &sa->addr, alen)) { 86 len += (sizeof(alen) + alen); 280 uint8_t alen; local 292 memcpy(&alen, bu [all...] |
/openbsd-current/lib/libcrypto/modes/ |
H A D | ccm128.c | 110 const unsigned char *aad, size_t alen) 115 if (alen == 0) 122 if (alen < (0x10000 - 0x100)) { 123 ctx->cmac.c[0] ^= (u8)(alen >> 8); 124 ctx->cmac.c[1] ^= (u8)alen; 126 } else if (sizeof(alen) == 8 && 127 alen >= (size_t)1 << (32 % (sizeof(alen)*8))) { 130 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen)* 109 CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad, size_t alen) argument [all...] |
/openbsd-current/usr.sbin/bgpd/ |
H A D | flowspec.c | 101 int alen, blen, clen, cmp; local 103 alen = abuf[1]; 105 clen = MINIMUM(alen, blen); 119 if (alen > blen) 121 if (alen < blen) 136 int alen, blen, clen, cmp; local 145 alen = abuf[1] - abuf[2]; 147 clen = MINIMUM(alen, blen); 161 if (alen > blen) 163 if (alen < ble 202 flowspec_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6) argument [all...] |
H A D | mrt.c | 61 uint16_t wlen, alen, len, afi; local 80 memcpy(&alen, pkg, 2); 81 alen = ntohs(alen); 85 if (alen < pkglen) { 90 if (wlen == 0 && alen == 0) { 96 if (alen > pkglen) 100 while (alen > 0) { 101 if (alen < 3) 105 if (alen < [all...] |
/openbsd-current/lib/libc/net/ |
H A D | getifaddrs.c | 65 size_t len, alen, dlen; local 129 alen = 0; 137 alen = len; 149 dcnt += alen; 227 alen = 0; 235 alen = len; 257 memset(data, 0, alen); 258 data += alen;
|
/openbsd-current/usr.sbin/bgpctl/ |
H A D | mrtparser.c | 415 uint16_t alen; local 432 if (ibuf_get_n16(msg, &alen) == -1 || 433 ibuf_get_ibuf(msg, alen, &abuf) == -1) 458 uint16_t tmp16, alen; local 515 if (ibuf_get_n16(msg, &alen) == -1 || 516 ibuf_get_ibuf(msg, alen, &abuf) == -1) 537 uint16_t asnum, alen, afi; local 617 if (ibuf_get_n16(msg, &alen) == -1 || 618 ibuf_get_ibuf(msg, alen, &abuf) == -1) 635 size_t alen, hle local [all...] |
H A D | output.c | 100 size_t alen; local 106 alen = strlen(a); 108 if (alen < 28) { 109 if (strlen(s) > 28 - alen) 110 s[28 - alen] = '\0'; 112 alen = 0; 115 (28 - (int)alen), s, a, 761 size_t i, alen; local 776 alen = attr_len; 781 alen [all...] |
H A D | output_json.c | 577 uint16_t alen, afi, short_as; local 599 alen = attr_len; 604 alen = attr_len; 607 json_do_uint("length", alen); 610 if (alen > ibuf_size(buf)) 615 if (alen != 1 || ibuf_get_n8(buf, &origin) == -1) 644 if (alen != 4 || ibuf_get(buf, &id, sizeof(id)) == -1) 650 if (alen != 4 || ibuf_get_n32(buf, &val) == -1) 656 if (alen == 8) { 660 } else if (alen [all...] |
/openbsd-current/usr.sbin/tcpdump/ |
H A D | print-lldp.c | 193 int n, type, vlen, alen; local 259 alen = *ptr - sizeof(u_int8_t); 267 TCHECK2(*ptr, alen); 270 if (alen != sizeof(struct in_addr)) 276 if (alen != sizeof(struct in6_addr)) 282 _ptrinc(alen);
|
H A D | print-pfsync.c | 141 int count, plen, alen, flags = 0; local 176 alen = actions[subh->action].len; 184 if (len < alen) { 192 bp += alen; 193 len -= alen; 194 plen -= alen;
|
/openbsd-current/usr.bin/chpass/ |
H A D | edit.c | 132 size_t alen; local 208 for (alen = 0, p = list[E_NAME].save; *p; p++) 210 alen = alen + strlen(pw->pw_name) - 1; 221 strlen(buf) + alen >= 1023) {
|
/openbsd-current/gnu/usr.bin/perl/dist/Tie-File/t/ |
H A D | 28_mtwrite.t | 235 my ($alen, $xlen) = (length $actual, length $expected); 236 unless ($alen == $xlen) { 237 print "# try(@_) expected file length $xlen, actual $alen!\n";
|
H A D | 27_iwrite.t | 212 my ($alen, $xlen) = (length $actual, length $expected); 213 unless ($alen == $xlen) { 214 print "# try(@_) expected file length $xlen, actual $alen!\n";
|
H A D | 29a_upcopy.t | 158 my ($alen, $xlen) = (length $actual, length $expected); 159 unless ($alen == $xlen) { 160 print "# try(@_) expected file length $xlen, actual $alen!\n";
|
H A D | 26_twrite.t | 304 my ($alen, $xlen) = (length $actual, length $expected); 305 unless ($alen == $xlen) { 306 print "# try(@_) expected file length $xlen, actual $alen!\n";
|
H A D | 29_downcopy.t | 308 my ($alen, $xlen) = (length $actual, length $expected); 309 unless ($alen == $xlen) { 312 print "# try(@ARGS) expected file length $xlen, actual $alen!\n";
|
/openbsd-current/sys/kern/ |
H A D | kern_subr.c | 80 size_t alen; local 87 error = _copyinstr(uaddr, kaddr, len, &alen); 89 error = check_copyin(curproc, uaddr, alen); 91 *done = alen;
|
/openbsd-current/usr.sbin/unbound/smallapp/ |
H A D | unbound-checkconf.c | 205 socklen_t alen; local 213 if(!netblockstrtoaddr(acl->str, UNBOUND_DNS_PORT, &a, &alen, 229 if(!netblockstrtoaddr(sb->str, UNBOUND_DNS_PORT, &a, &alen, 239 if(!netblockstrtoaddr(s3->str, UNBOUND_DNS_PORT, &a, &alen, 263 if(!netblockstrtoaddr(s3->str, UNBOUND_DNS_PORT, &a, &alen, 314 socklen_t alen; local 319 if(extstrtoaddr(h->str, &a, &alen, UNBOUND_DNS_PORT)) { 325 addr_is_ip6(&a, alen)?"6":"4"); 337 socklen_t alen; local 378 if(!extstrtoaddr(resif[i][j], &a, &alen, cf 453 socklen_t alen; local 470 socklen_t alen; local [all...] |
/openbsd-current/sys/netinet/ |
H A D | ip_esp.c | 350 int plen, alen, hlen, error, roff; local 360 alen = esph ? esph->authsize : 0; 361 plen = m->m_pkthdr.len - (skip + hlen + alen); 460 crda->crd_inject = m->m_pkthdr.len - alen; 477 crda->crd_len = m->m_pkthdr.len - (skip + alen); 480 m_copydata(m, m->m_pkthdr.len - alen, alen, abuf); 693 int ilen, hlen, rlen, padding, blks, alen, roff, error; local 739 alen = esph ? esph->authsize : 0; 745 if (skip + hlen + rlen + padding + alen > IP_MAXPACKE [all...] |
/openbsd-current/usr.sbin/npppd/common/ |
H A D | radish.c | 75 rd_inithead(void **headp, int family, int slen, int off, int alen, argument 82 int num = alen * 8 + 1, i, j, q, r; 110 head->rdh_alen = alen; 129 int alen = head->rdh_alen; local 133 masklen = alen * 8; 138 while ((i < alen) && (mp[i] == 0xff)) { 142 if (i < alen) 164 int alen = head->rdh_alen; local 208 for (i = 0; i < alen; i++)
|
/openbsd-current/gnu/usr.bin/binutils/gdb/ |
H A D | remote-e7000.c | 1136 int alen; local 1145 alen = 4; 1147 alen = 3; 1149 alen = 2; 1151 compose[where++] = alen - 1 + '0'; 1153 check_sum += stickbyte (compose + where, alen + stride + 1); 1155 while (alen > 0) 1157 alen--; 1158 check_sum += stickbyte (compose + where, address >> (8 * (alen))); 1430 int alen; [all...] |
/openbsd-current/regress/usr.sbin/bgpd/unittests/ |
H A D | rde_flowspec_test.c | 120 do_cmp(const uint8_t *a, int alen, const uint8_t *b, int blen, int is_v6) argument 122 if (flowspec_cmp(a, alen, b, blen, is_v6) != -1 || 123 flowspec_cmp(b, blen, a, alen, is_v6) != 1)
|
/openbsd-current/usr.bin/ssh/ |
H A D | auth2-hostbased.c | 66 size_t alen, blen, slen; local 70 if ((r = sshpkt_get_cstring(ssh, &pkalg, &alen)) != 0 || 134 (r = sshbuf_put_string(b, pkalg, alen)) != 0 ||
|
/openbsd-current/usr.sbin/ldpd/ |
H A D | pfkey.c | 53 uint8_t aalg, int alen, char *akey, uint8_t ealg, int elen, char *ekey, 154 ((alen + 7) / 8) * 8) / 8; 155 sa_akey.sadb_key_bits = 8 * alen; 213 if (alen) { 219 iov[iov_cnt].iov_len = ((alen + 7) / 8) * 8; 51 pfkey_send(int sd, uint8_t satype, uint8_t mtype, uint8_t dir, int af, union ldpd_addr *src, union ldpd_addr *dst, uint32_t spi, uint8_t aalg, int alen, char *akey, uint8_t ealg, int elen, char *ekey, uint16_t sport, uint16_t dport) argument
|
/openbsd-current/sys/dev/ic/ |
H A D | lemac.c | 714 int alen = (~txoff & 3); 715 LEMAC_PUTBUF8(sc, txoff, alen, 717 cp += alen; 718 txoff += alen; 719 len -= alen; 733 int alen = (~txoff & 1); local 734 LEMAC_PUTBUF8(sc, txoff, alen, 736 cp += alen; 737 txoff += alen; 738 len -= alen; [all...] |