Home
last modified time | relevance | path

Searched refs:octets (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd/contrib/ntp/libntp/
H A Dwork_fork.c265 size_t octets; in send_blocking_req_internal() local
277 octets = sizeof(*hdr); in send_blocking_req_internal()
278 rc = netwrite(c->req_write_pipe, hdr, octets); in send_blocking_req_internal()
280 if (rc == octets) { in send_blocking_req_internal()
281 octets = hdr->octets - sizeof(*hdr); in send_blocking_req_internal()
282 rc = netwrite(c->req_write_pipe, data, octets); in send_blocking_req_internal()
283 if (rc == octets) in send_blocking_req_internal()
289 rc, octets); in send_blocking_req_internal()
305 size_t octets; in receive_blocking_req_internal() local
320 INSIST(sizeof(hdr) < hdr.octets && hdr.octets < 4 * 1024); in receive_blocking_req_internal()
[all …]
H A Dntp_intres.c118 size_t octets;
132 size_t octets;
144 size_t octets;
158 size_t octets;
264 gai_req->octets = req_size; in getaddrinfo_sometime_ex()
385 gai_resp->octets = sizeof(*gai_resp) in blocking_getaddrinfo()
391 resp_octets = sizeof(*resp) + gai_resp->octets; in blocking_getaddrinfo()
494 DEBUG_REQUIRE(respsize == gai_resp->octets); in getaddrinfo_sometime_complete()
551 gai_req->octets, in getaddrinfo_sometime_complete()
657 gni_req->octets in getnameinfo_sometime()
124 size_t octets; global() member
138 size_t octets; global() member
150 size_t octets; global() member
164 size_t octets; global() member
703 size_t octets; blocking_getnameinfo() local
933 size_t octets; reserve_dnschild_ctx() local
978 size_t octets; get_worker_context() local
[all...]
H A Dstrdup.c18 size_t octets; in strdup() local
22 octets = strlen(s) + 1; in strdup()
23 if ((cp = malloc(octets)) == NULL) in strdup()
25 memcpy(cp, s, octets); in strdup()
H A Dntp_worker.c136 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()
H A Dmsyslog.c466 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()
H A Dsocktohost.c36 size_t octets; in socktohost()
97 octets = min(sizeof(addr), ai->ai_addrlen); in socktohost()
98 memcpy(&addr, ai->ai_addr, octets); in socktohost()
37 size_t octets; socktohost() local
H A Dntp_rfc2553.c174 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/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptc.c86 static char *snmp_oct2inetaddr(uint32_t len, char *octets, char *buf);
90 static char *snmp_oct2bits(uint32_t len, char *octets, char *buf);
154 snmp_oct2tc(enum snmp_tc tc, uint32_t len, char *octets) in snmp_oct2tc() argument
173 if (text_convs[tc].oct2tc(len, octets, buf) == NULL) { in snmp_oct2tc()
203 snmp_oct2str(uint32_t len, char *octets, char *buf) in snmp_oct2str() argument
209 if (len > MAX_OCTSTRING_LEN || octets == NULL || buf == NULL) in snmp_oct2str()
213 if (!isprint(octets[i])) { in snmp_oct2str()
221 ptr += sprintf(ptr, "%c", octets[i]); in snmp_oct2str()
223 ptr += sprintf(ptr, "%2.2x", (u_char)octets[i]); in snmp_oct2str()
267 if ((value->v.octetstring.octets = malloc(len)) == NULL) { in parse_octetstring()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Ddir.c62 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/crypto/heimdal/doc/
H A Dlayman.asc66 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/contrib/ntp/libntp/lib/isc/
H A Dinet_pton.c85 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/sys/libkern/
H A Dinet_pton.c71 int saw_digit, octets, ch; in inet_pton4() local
76 octets = 0; in inet_pton4()
90 if (++octets > 4) in inet_pton4()
95 if (octets == 4) in inet_pton4()
102 if (octets < 4) in inet_pton4()
/freebsd/lib/libc/inet/
H A Dinet_pton.c78 int saw_digit, octets, ch; in inet_pton4() local
82 octets = 0; in inet_pton4()
96 if (++octets > 4) in inet_pton4()
101 if (octets == 4) in inet_pton4()
108 if (octets < 4) in inet_pton4()
/freebsd/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/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/contrib/wpa/hostapd/
H A Dhostapd.sim_db4 # Kc: hex, 8 octets
5 # SRES: hex, 4 octets
6 # RAND: hex, 16 octets
/freebsd/contrib/ntp/tests/libntp/
H A Ddigests.c30 void dump_mac(keyid_t keyid, u_char *pmac, size_t octets);
49 ssize_t octets; in setUp() local
86 octets = read(msgf, msg, msg_sz); in setUp()
87 if (octets != msg_sz) { in setUp()
89 msg_fname, (u_int)octets, (u_int)msg_sz); in setUp()
506 size_t octets
515 for (idx = 4; idx < octets; idx++) {
389 dump_mac(keyid_t keyid,u_char * pmac,size_t octets) dump_mac() argument
/freebsd/contrib/bsnmp/snmpd/
H A Dexport.c70 memcpy(*valp, value->v.octetstring.octets, value->v.octetstring.len); in string_save()
112 value->v.octetstring.octets = NULL; in string_get()
117 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) { in string_get()
122 memcpy(value->v.octetstring.octets, ptr, (size_t)len); in string_get()
136 value->v.octetstring.octets = NULL; in string_get_max()
143 if ((value->v.octetstring.octets = malloc((size_t)len)) == NULL) { in string_get_max()
148 memcpy(value->v.octetstring.octets, ptr, (size_t)len); in string_get_max()
/freebsd/contrib/ntp/ntpd/
H A Drefclock_as2201.c235 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/usr.sbin/ppp/
H A Dmbuf.c72 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()
H A Dlqr.c375 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/sys/dev/mlx5/mlx5_core/
H A Dmlx5_vport.c1671 vc->received_errors.octets = in mlx5_get_vport_counters()
1673 out, received_errors.octets); in mlx5_get_vport_counters()
1677 vc->transmit_errors.octets = in mlx5_get_vport_counters()
1679 out, transmit_errors.octets); in mlx5_get_vport_counters()
1683 vc->received_ib_unicast.octets = in mlx5_get_vport_counters()
1685 out, received_ib_unicast.octets); in mlx5_get_vport_counters()
1689 vc->transmitted_ib_unicast.octets = in mlx5_get_vport_counters()
1691 out, transmitted_ib_unicast.octets); in mlx5_get_vport_counters()
1695 vc->received_ib_multicast.octets = in mlx5_get_vport_counters()
1697 out, received_ib_multicast.octets); in mlx5_get_vport_counters()
[all …]
/freebsd/sys/netipsec/
H A Dipsec_offload.h66 if_t ifp, u_int drv_spi, uint64_t octets, uint64_t allocs);
68 if_t ifp, u_int drv_spi, uint64_t *octets, uint64_t *allocs);
195 u_int drv_spi, uint64_t octets, uint64_t allocs);
197 if_t ifp, u_int drv_spi, uint64_t *octets, uint64_t *allocs);
/freebsd/contrib/tcpdump/
H A Dprint-cnfp.c71 nd_uint32_t octets; /* layer 3 octets in the packets of the flow */ member
103 nd_uint32_t octets; /* layer 3 octets in the packets of the flow */ member
137 nd_uint32_t octets; /* layer 3 octets in the packets of the flow */ member
241 GET_BE_U_4(nr->octets), buf); in cnfp_v1_print()
343 GET_BE_U_4(nr->octets), buf); in cnfp_v5_print()
448 GET_BE_U_4(nr->octets), buf); in cnfp_v6_print()
/freebsd/contrib/bsnmp/lib/
H A Dsnmp.c112 binding->v.octetstring.octets = malloc(len); in get_var_binding()
113 if (binding->v.octetstring.octets == NULL) { in get_var_binding()
119 binding->v.octetstring.octets, in get_var_binding()
122 free(binding->v.octetstring.octets); in get_var_binding()
123 binding->v.octetstring.octets = NULL; in get_var_binding()
937 err = asn_put_octetstring(b, binding->v.octetstring.octets, in snmp_binding_encode()
1031 snmp_printf(" %02x", b->v.octetstring.octets[i]); in dump_binding()
1159 free(value->v.octetstring.octets); in snmp_value_free()
1160 value->v.octetstring.octets = NULL; in snmp_value_free()
1173 to->v.octetstring.octets = NULL; in snmp_value_copy()
[all …]

12345