Searched refs:octets (Results 1 - 25 of 87) sorted by relevance

1234

/freebsd-10-stable/contrib/ntp/libntp/
H A Dstrdup.c16 size_t octets; local
20 octets = strlen(s) + 1;
21 if ((cp = malloc(octets)) == NULL)
23 memcpy(cp, s, octets);
H A Dwork_fork.c263 size_t octets; local
275 octets = sizeof(*hdr);
276 rc = netwrite(c->req_write_pipe, hdr, octets);
278 if (rc == octets) {
279 octets = hdr->octets - sizeof(*hdr);
280 rc = netwrite(c->req_write_pipe, data, octets);
281 if (rc == octets)
287 rc, octets);
303 size_t octets; local
350 size_t octets; local
376 size_t octets; local
[all...]
H A Dsocktohost.c37 size_t octets; local
98 octets = min(sizeof(addr), ai->ai_addrlen);
99 memcpy(&addr, ai->ai_addr, octets);
H A Dntp_intres.c124 size_t octets; member in struct:blocking_gai_req_tag
138 size_t octets; member in struct:blocking_gai_resp_tag
150 size_t octets; member in struct:blocking_gni_req_tag
164 size_t octets; member in struct:blocking_gni_resp_tag
270 gai_req->octets = req_size;
391 gai_resp->octets = sizeof(*gai_resp)
397 resp_octets = sizeof(*resp) + gai_resp->octets;
500 DEBUG_REQUIRE(respsize == gai_resp->octets);
557 gai_req->octets,
663 gni_req->octets
703 size_t octets; local
933 size_t octets; local
978 size_t octets; local
[all...]
H A Dntp_worker.c136 size_t octets; local
150 octets = new_alloc * each;
151 blocking_children = erealloc_zero(blocking_children, octets,
174 req_hdr.octets = sizeof(req_hdr) + reqsize;
220 resp->octets = respsize;
254 resp->octets - sizeof(*resp),
H A Dmsyslog.c466 size_t octets; local
504 octets = cd_octets;
505 octets += 1; /* separator '/' */
506 octets += strlen(log_fname);
507 octets += 1; /* NUL terminator */
508 abs_fname = emalloc(octets);
509 snprintf(abs_fname, octets, "%.*s%c%s",
H A Dicom.c23 #define write(fd, data, octets) async_write(fd, data, octets)
33 * is not exceeded, the program returns the number of octets in the user
40 * or more data octets DA (depending on command), and terminator FI.
45 * in this and following DA octets. If no data are returned, the CN
110 int len /* length (octets) */
H A Dntp_rfc2553.c174 size_t octets; local
191 octets = elements * (sizeof(*ai_cpy) + sizeof(*psau));
192 octets += canons_octets;
194 dst = erealloczsite(NULL, octets, 0, TRUE, caller_file,
225 ENSURE(pcanon == ((char *)dst + octets));
/freebsd-10-stable/sys/netgraph/
H A Dng_hole.h54 uint64_t octets; member in struct:ng_hole_hookstat
60 { "octets", &ng_parse_uint64_type }, \
/freebsd-10-stable/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c88 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) argument
175 if (text_convs[tc].oct2tc(len, octets, buf) == NULL) {
205 snmp_oct2str(uint32_t len, char *octets, char *buf) argument
211 if (len > MAX_OCTSTRING_LEN || octets == NULL || buf == NULL)
215 if (!isprint(octets[i])) {
223 ptr += sprintf(ptr, "%c", octets[i]);
225 ptr += sprintf(ptr, "%2.2x", (u_char)octets[i]);
269 if ((value->v.octetstring.octets
316 snmp_octstr2date(uint32_t len, char *octets, char *buf) argument
591 snmp_oct2physAddr(uint32_t len, char *octets, char *buf) argument
704 snmp_oct2ntp_ts(uint32_t len, char *octets, char *buf) argument
854 snmp_oct2bridgeid(uint32_t len, char *octets, char *buf) argument
1013 snmp_oct2bport_id(uint32_t len, char *octets, char *buf) argument
1151 snmp_oct2inetaddr(uint32_t len, char *octets, char *buf) argument
1204 snmp_oct2bits(uint32_t len, char *octets, char *buf) argument
[all...]
H A Dbsnmptc.h41 * 11 bytes - octets that represent DateAndTime Textual convention
48 * 6 bytes - octets that represent PhysAddress Textual convention
91 char *snmp_oct2tc(enum snmp_tc tc, uint32_t len, char *octets);
/freebsd-10-stable/contrib/ntp/lib/isc/unix/
H A Ddir.c62 size_t octets; local
72 octets = strlen(dirname) + 1;
73 if (octets + 2 > sizeof(dir->dirname))
76 strlcpy(dir->dirname, dirname, octets);
108 size_t octets; local
123 octets = strlen(entry->d_name) + 1;
124 if (sizeof(dir->entry.name) < octets)
127 strlcpy(dir->entry.name, entry->d_name, octets);
/freebsd-10-stable/contrib/apr/network_io/unix/
H A Dinet_pton.c109 int saw_digit, octets, ch; local
113 octets = 0;
125 if (++octets > 4)
130 if (octets == 4)
137 if (octets < 4)
/freebsd-10-stable/contrib/ldns/compat/
H A Dinet_pton.c99 int saw_digit, octets, ch; local
103 octets = 0;
115 if (++octets > 4)
120 if (octets == 4)
127 if (octets < 4)
/freebsd-10-stable/contrib/unbound/compat/
H A Dinet_pton.c99 int saw_digit, octets, ch; local
103 octets = 0;
115 if (++octets > 4)
120 if (octets == 4)
127 if (octets < 4)
/freebsd-10-stable/sys/libkern/
H A Dinet_pton.c81 int saw_digit, octets, ch; local
86 octets = 0;
100 if (++octets > 4)
105 if (octets == 4)
112 if (octets < 4)
/freebsd-10-stable/contrib/ntp/lib/isc/
H A Dinet_pton.c85 int saw_digit, octets, ch; local
89 octets = 0;
103 if (++octets > 4)
108 if (octets == 4)
115 if (octets < 4)
/freebsd-10-stable/contrib/binutils/opcodes/
H A Ddis-buf.c36 unsigned int octets = (memaddr - info->buffer_vma) * opb; local
42 memcpy (myaddr, info->buffer + octets, length);
/freebsd-10-stable/lib/libc/inet/
H A Dinet_pton.c83 int saw_digit, octets, ch; local
87 octets = 0;
101 if (++octets > 4)
106 if (octets == 4)
113 if (octets < 4)
/freebsd-10-stable/contrib/binutils/bfd/
H A Dreloc.c585 bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd); local
883 char x = bfd_get_8 (abfd, (char *) data + octets);
885 bfd_put_8 (abfd, x, (unsigned char *) data + octets);
891 short x = bfd_get_16 (abfd, (bfd_byte *) data + octets);
893 bfd_put_16 (abfd, (bfd_vma) x, (unsigned char *) data + octets);
898 long x = bfd_get_32 (abfd, (bfd_byte *) data + octets);
900 bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets);
905 long x = bfd_get_32 (abfd, (bfd_byte *) data + octets);
908 bfd_put_32 (abfd, (bfd_vma) x, (bfd_byte *) data + octets);
914 long x = bfd_get_16 (abfd, (bfd_byte *) data + octets);
975 bfd_size_type octets = reloc_entry->address * bfd_octets_per_byte (abfd); local
[all...]
/freebsd-10-stable/contrib/bsnmp/snmpd/
H A Dexport.c70 memcpy(*valp, value->v.octetstring.octets, value->v.octetstring.len);
112 value->v.octetstring.octets = NULL;
117 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) {
122 memcpy(value->v.octetstring.octets, ptr, (size_t)len);
136 value->v.octetstring.octets = NULL;
143 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) {
148 memcpy(value->v.octetstring.octets, ptr, (size_t)len);
/freebsd-10-stable/contrib/ntp/ntpd/
H A Drefclock_as2201.c235 size_t octets; local
336 octets = strlen(stat_command[up->index]);
337 if ((int)(up->lastptr - up->stats + 1 + octets) > SMAX - 2)
340 memcpy(up->lastptr, stat_command[up->index], octets);
341 up->lastptr += octets - 1;
/freebsd-10-stable/sys/netgraph/netflow/
H A Dnetflow.h95 uint32_t octets; /* Number of octets in a flow */ member in struct:netflow_v1_record
117 uint32_t octets; /* Number of octets in a flow */ member in struct:netflow_v5_record
/freebsd-10-stable/usr.sbin/ppp/
H A Dmbuf.c72 size_t octets; member in struct:memmap
159 MemMap[type].octets += bp->m_size;
172 MemMap[bp->m_type].octets -= bp->m_size;
325 prompt_Printf(arg->prompt, "Fragments (octets) in use:\n");
330 (u_long)MemMap[i].octets, mbuftype(i+1),
331 (u_long)MemMap[i+1].fragments, (u_long)MemMap[i+1].octets);
336 (u_long)MemMap[i].octets);
415 MemMap[bp->m_type].octets -= bp->m_size;
418 MemMap[type].octets += bp->m_size;
/freebsd-10-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vport.c1564 vc->received_errors.octets =
1566 out, received_errors.octets);
1570 vc->transmit_errors.octets =
1572 out, transmit_errors.octets);
1576 vc->received_ib_unicast.octets =
1578 out, received_ib_unicast.octets);
1582 vc->transmitted_ib_unicast.octets =
1584 out, transmitted_ib_unicast.octets);
1588 vc->received_ib_multicast.octets =
1590 out, received_ib_multicast.octets);
[all...]

Completed in 250 milliseconds

1234