| /freebsd-9-stable/contrib/ntp/libntp/ |
| D | work_fork.c | 203 int octets; in send_blocking_req_internal() local 215 octets = sizeof(*hdr); in send_blocking_req_internal() 216 rc = write(c->req_write_pipe, hdr, octets); in send_blocking_req_internal() 218 if (rc == octets) { in send_blocking_req_internal() 219 octets = hdr->octets - sizeof(*hdr); in send_blocking_req_internal() 220 rc = write(c->req_write_pipe, data, octets); in send_blocking_req_internal() 222 if (rc == octets) in send_blocking_req_internal() 232 rc, octets); in send_blocking_req_internal() 248 long octets; in receive_blocking_req_internal() local 269 INSIST(sizeof(hdr) < hdr.octets && hdr.octets < 4 * 1024); in receive_blocking_req_internal() [all …]
|
| D | ntp_intres.c | 124 size_t octets; member 138 size_t octets; member 150 size_t octets; member 164 size_t octets; member 270 gai_req->octets = req_size; in getaddrinfo_sometime_ex() 391 gai_resp->octets = sizeof(*gai_resp) in blocking_getaddrinfo() 397 resp_octets = sizeof(*resp) + gai_resp->octets; in blocking_getaddrinfo() 500 DEBUG_REQUIRE(respsize == gai_resp->octets); in getaddrinfo_sometime_complete() 557 gai_req->octets, in getaddrinfo_sometime_complete() 663 gni_req->octets = sizeof(*gni_req); in getnameinfo_sometime() [all …]
|
| D | strdup.c | 16 size_t octets; in strdup() local 20 octets = strlen(s) + 1; in strdup() 21 if ((cp = malloc(octets)) == NULL) in strdup() 23 memcpy(cp, s, octets); in strdup()
|
| D | ntp_worker.c | 136 size_t octets; in available_blocking_child_slot() local 150 octets = new_alloc * each; in available_blocking_child_slot() 151 blocking_children = erealloc_zero(blocking_children, octets, in available_blocking_child_slot() 174 req_hdr.octets = sizeof(req_hdr) + reqsize; in queue_blocking_request() 220 resp->octets = respsize; in queue_blocking_response() 254 resp->octets - sizeof(*resp), in process_blocking_resp()
|
| D | msyslog.c | 466 size_t octets; in change_logfile() local 504 octets = cd_octets; in change_logfile() 505 octets += 1; /* separator '/' */ in change_logfile() 506 octets += strlen(log_fname); in change_logfile() 507 octets += 1; /* NUL terminator */ in change_logfile() 508 abs_fname = emalloc(octets); in change_logfile() 509 snprintf(abs_fname, octets, "%.*s%c%s", in change_logfile()
|
| D | socktohost.c | 37 size_t octets; in socktohost() local 98 octets = min(sizeof(addr), ai->ai_addrlen); in socktohost() 99 memcpy(&addr, ai->ai_addr, octets); in socktohost()
|
| D | ntp_rfc2553.c | 174 size_t octets; in copy_addrinfo_common() local 191 octets = elements * (sizeof(*ai_cpy) + sizeof(*psau)); in copy_addrinfo_common() 192 octets += canons_octets; in copy_addrinfo_common() 194 dst = erealloczsite(NULL, octets, 0, TRUE, caller_file, in copy_addrinfo_common() 225 ENSURE(pcanon == ((char *)dst + octets)); in copy_addrinfo_common()
|
| /freebsd-9-stable/contrib/bind9/lib/dns/rdata/in_1/ |
| D | a6_38.c | 34 unsigned char octets; in fromtext_in_a6() local 65 octets = prefixlen/8; in fromtext_in_a6() 75 addr[octets] &= mask; in fromtext_in_a6() 76 RETERR(mem_tobuffer(target, &addr[octets], 16 - octets)); in fromtext_in_a6() 104 unsigned char octets; in totext_in_a6() local 124 octets = prefixlen/8; in totext_in_a6() 126 memmove(&addr[octets], sr.base, 16 - octets); in totext_in_a6() 128 addr[octets] &= mask; in totext_in_a6() 132 isc_region_consume(&sr, 16 - octets); in totext_in_a6() 150 unsigned char octets; in fromwire_in_a6() local [all …]
|
| /freebsd-9-stable/usr.sbin/bsnmpd/tools/libbsnmptools/ |
| D | bsnmptc.c | 88 static char *snmp_oct2inetaddr(uint32_t len, char *octets, char *buf); 92 static char *snmp_oct2bits(uint32_t len, char *octets, char *buf); 156 snmp_oct2tc(enum snmp_tc tc, uint32_t len, char *octets) in snmp_oct2tc() argument 175 if (text_convs[tc].oct2tc(len, octets, buf) == NULL) { in snmp_oct2tc() 205 snmp_oct2str(uint32_t len, char *octets, char *buf) in snmp_oct2str() argument 211 if (len > MAX_OCTSTRING_LEN || octets == NULL || buf == NULL) in snmp_oct2str() 215 if (!isprint(octets[i])) { in snmp_oct2str() 223 ptr += sprintf(ptr, "%c", octets[i]); in snmp_oct2str() 225 ptr += sprintf(ptr, "%2.2x", (u_char)octets[i]); in snmp_oct2str() 271 if((value->v.octetstring.octets = malloc(len)) == NULL) { in parse_octetstring() [all …]
|
| /freebsd-9-stable/contrib/ntp/lib/isc/unix/ |
| D | dir.c | 62 size_t octets; in isc_dir_open() local 72 octets = strlen(dirname) + 1; in isc_dir_open() 73 if (octets + 2 > sizeof(dir->dirname)) in isc_dir_open() 76 strlcpy(dir->dirname, dirname, octets); in isc_dir_open() 108 size_t octets; in isc_dir_read() local 123 octets = strlen(entry->d_name) + 1; in isc_dir_read() 124 if (sizeof(dir->entry.name) < octets) in isc_dir_read() 127 strlcpy(dir->entry.name, entry->d_name, octets); in isc_dir_read()
|
| /freebsd-9-stable/crypto/heimdal/doc/ |
| D | layman.asc | 66 each ASN.1 type as a string of eight-bit octets. There is 225 OCTET STRING, an arbitrary string of octets (eight-bit 341 Identifier octets. These identify the class and tag 345 Length octets. For the definite-length methods, these 346 give the number of contents octets. For the 350 Contents octets. For the primitive, definite-length 356 End-of-contents octets. For the constructed, indefinite- 371 Identifier octets. There are two forms: low tag number (for 387 Table 2. Class encoding in identifier octets. 389 High-tag-number form. Two or more octets. First octet [all …]
|
| /freebsd-9-stable/contrib/binutils/bfd/ |
| D | reloc.c | 585 bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd); in bfd_perform_relocation() local 883 char x = bfd_get_8 (abfd, (char *) data + octets); in bfd_perform_relocation() 885 bfd_put_8 (abfd, x, (unsigned char *) data + octets); in bfd_perform_relocation() 891 short x = bfd_get_16 (abfd, (bfd_byte *) data + octets); in bfd_perform_relocation() 893 bfd_put_16 (abfd, (bfd_vma) x, (unsigned char *) data + octets); in bfd_perform_relocation() 898 long x = bfd_get_32 (abfd, (bfd_byte *) data + octets); in bfd_perform_relocation() 900 bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets); in bfd_perform_relocation() 905 long x = bfd_get_32 (abfd, (bfd_byte *) data + octets); in bfd_perform_relocation() 908 bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets); in bfd_perform_relocation() 914 long x = bfd_get_16 (abfd, (bfd_byte *) data + octets); in bfd_perform_relocation() [all …]
|
| /freebsd-9-stable/contrib/bind9/lib/lwres/ |
| D | lwinetpton.c | 83 int saw_digit, octets, ch; in inet_pton4() local 87 octets = 0; in inet_pton4() 100 if (++octets > 4) in inet_pton4() 105 if (octets == 4) in inet_pton4() 117 if (octets < 4) in inet_pton4()
|
| /freebsd-9-stable/sys/libkern/ |
| D | inet_pton.c | 81 int saw_digit, octets, ch; in inet_pton4() local 86 octets = 0; in inet_pton4() 100 if (++octets > 4) in inet_pton4() 105 if (octets == 4) in inet_pton4() 112 if (octets < 4) in inet_pton4()
|
| /freebsd-9-stable/contrib/bind9/lib/isc/ |
| D | inet_pton.c | 84 int saw_digit, octets, ch; in inet_pton4() local 88 octets = 0; in inet_pton4() 103 if (++octets > 4) in inet_pton4() 108 if (octets == 4) in inet_pton4() 115 if (octets < 4) in inet_pton4()
|
| /freebsd-9-stable/contrib/ntp/lib/isc/ |
| D | inet_pton.c | 85 int saw_digit, octets, ch; in inet_pton4() local 89 octets = 0; in inet_pton4() 103 if (++octets > 4) in inet_pton4() 108 if (octets == 4) in inet_pton4() 115 if (octets < 4) in inet_pton4()
|
| /freebsd-9-stable/lib/libc/inet/ |
| D | inet_pton.c | 83 int saw_digit, octets, ch; in inet_pton4() local 87 octets = 0; in inet_pton4() 101 if (++octets > 4) in inet_pton4() 106 if (octets == 4) in inet_pton4() 113 if (octets < 4) in inet_pton4()
|
| /freebsd-9-stable/contrib/wpa/hostapd/ |
| D | hostapd.sim_db | 4 # Kc: hex, 8 octets 5 # SRES: hex, 4 octets 6 # RAND: hex, 16 octets
|
| /freebsd-9-stable/contrib/bsnmp/snmpd/ |
| D | export.c | 70 memcpy(*valp, value->v.octetstring.octets, value->v.octetstring.len); in string_save() 112 value->v.octetstring.octets = NULL; in string_get() 118 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) in string_get() 120 memcpy(value->v.octetstring.octets, ptr, (size_t)len); in string_get() 134 value->v.octetstring.octets = NULL; in string_get_max() 142 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) in string_get_max() 144 memcpy(value->v.octetstring.octets, ptr, (size_t)len); in string_get_max()
|
| /freebsd-9-stable/contrib/ntp/ntpd/ |
| D | refclock_as2201.c | 235 size_t octets; in as2201_receive() local 336 octets = strlen(stat_command[up->index]); in as2201_receive() 337 if ((int)(up->lastptr - up->stats + 1 + octets) > SMAX - 2) in as2201_receive() 340 memcpy(up->lastptr, stat_command[up->index], octets); in as2201_receive() 341 up->lastptr += octets - 1; in as2201_receive()
|
| /freebsd-9-stable/usr.sbin/ppp/ |
| D | mbuf.c | 72 size_t octets; member 159 MemMap[type].octets += bp->m_size; in m_get() 172 MemMap[bp->m_type].octets -= bp->m_size; in m_free() 330 (u_long)MemMap[i].octets, mbuftype(i+1), in mbuf_Show() 331 (u_long)MemMap[i+1].fragments, (u_long)MemMap[i+1].octets); in mbuf_Show() 336 (u_long)MemMap[i].octets); in mbuf_Show() 415 MemMap[bp->m_type].octets -= bp->m_size; in m_settype() 418 MemMap[type].octets += bp->m_size; in m_settype()
|
| D | lqr.c | 375 u_int32_t LQRs, transitLQRs, pkts, octets, disc, err; in lqr_Analyse() local 387 octets = (newlqr->LastOutOctets - oldlqr->LastOutOctets) - in lqr_Analyse() 392 (int)octets, octets == 1 ? "" : "s"); in lqr_Analyse() 396 octets = (newlqr->PeerOutOctets - oldlqr->PeerOutOctets) - in lqr_Analyse() 400 (int)octets, octets == 1 ? "" : "s"); in lqr_Analyse()
|
| /freebsd-9-stable/contrib/bsnmp/lib/ |
| D | snmp.c | 110 binding->v.octetstring.octets = malloc(len); in get_var_binding() 111 if (binding->v.octetstring.octets == NULL) { in get_var_binding() 117 binding->v.octetstring.octets, in get_var_binding() 120 free(binding->v.octetstring.octets); in get_var_binding() 121 binding->v.octetstring.octets = NULL; in get_var_binding() 935 err = asn_put_octetstring(b, binding->v.octetstring.octets, in snmp_binding_encode() 1029 snmp_printf(" %02x", b->v.octetstring.octets[i]); in dump_binding() 1156 free(value->v.octetstring.octets); in snmp_value_free() 1168 to->v.octetstring.octets = NULL; in snmp_value_copy() 1170 to->v.octetstring.octets = malloc(to->v.octetstring.len); in snmp_value_copy() [all …]
|
| /freebsd-9-stable/contrib/sendmail/contrib/ |
| D | cidrexpand | 134 my @octets = Net::CIDR::cidr2octets($clean_input); 135 @rc = @octets;
|
| /freebsd-9-stable/contrib/binutils/opcodes/ |
| D | dis-buf.c | 36 unsigned int octets = (memaddr - info->buffer_vma) * opb; in buffer_read_memory() local 42 memcpy (myaddr, info->buffer + octets, length); in buffer_read_memory()
|