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

1234

/freebsd-head/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.c265 size_t octets; local
277 octets = sizeof(*hdr);
278 rc = netwrite(c->req_write_pipe, hdr, octets);
280 if (rc == octets) {
281 octets = hdr->octets - sizeof(*hdr);
282 rc = netwrite(c->req_write_pipe, data, octets);
283 if (rc == octets)
289 rc, octets);
305 size_t octets; local
352 size_t octets; local
378 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-head/sys/netgraph/
H A Dng_hole.h54 uint64_t octets; member in struct:ng_hole_hookstat
60 { "octets", &ng_parse_uint64_type }, \
/freebsd-head/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-head/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-head/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-head/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-head/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-head/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-head/sys/libkern/
H A Dinet_pton.c77 int saw_digit, octets, ch; local
82 octets = 0;
96 if (++octets > 4)
101 if (octets == 4)
108 if (octets < 4)
/freebsd-head/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-head/lib/libc/inet/
H A Dinet_pton.c84 int saw_digit, octets, ch; local
88 octets = 0;
102 if (++octets > 4)
107 if (octets == 4)
114 if (octets < 4)
/freebsd-head/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-head/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-head/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-head/sys/netgraph/netflow/
H A Dnetflow.h97 uint32_t octets; /* Number of octets in a flow */ member in struct:netflow_v1_record
119 uint32_t octets; /* Number of octets in a flow */ member in struct:netflow_v5_record
/freebsd-head/usr.sbin/ppp/
H A Dmbuf.c74 size_t octets; member in struct:memmap
161 MemMap[type].octets += bp->m_size;
174 MemMap[bp->m_type].octets -= bp->m_size;
327 prompt_Printf(arg->prompt, "Fragments (octets) in use:\n");
332 (u_long)MemMap[i].octets, mbuftype(i+1),
333 (u_long)MemMap[i+1].fragments, (u_long)MemMap[i+1].octets);
338 (u_long)MemMap[i].octets);
417 MemMap[bp->m_type].octets -= bp->m_size;
420 MemMap[type].octets += bp->m_size;
/freebsd-head/contrib/tcpdump/
H A Dprint-cnfp.c74 uint32_t octets; /* layer 3 octets in the packets of the flow */ member in struct:nfrec_v1
106 uint32_t octets; /* layer 3 octets in the packets of the flow */ member in struct:nfrec_v5
140 uint32_t octets; /* layer 3 octets in the packets of the flow */ member in struct:nfrec_v6
234 ND_PRINT((ndo, "tos %u, %u (%u octets) %s",
237 EXTRACT_32BITS(&nr->octets), buf));
330 ND_PRINT((ndo, "tos %u, %u (%u octets) %s",
333 EXTRACT_32BITS(&nr->octets), bu
[all...]

Completed in 441 milliseconds

1234