Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 83) sorted by relevance

1234

/net-tools-3.6.0/libcoap/include/coap/
Dbits.h32 bits_setb(uint8_t *vec, size_t size, uint8_t bit) { in bits_setb() argument
33 if (size <= (bit >> 3)) in bits_setb()
52 bits_clrb(uint8_t *vec, size_t size, uint8_t bit) { in bits_clrb() argument
53 if (size <= (bit >> 3)) in bits_clrb()
71 bits_getb(const uint8_t *vec, size_t size, uint8_t bit) { in bits_getb() argument
72 if (size <= (bit >> 3)) in bits_getb()
Dmem.h55 void *coap_malloc_type(coap_memory_tag_t type, size_t size);
70 static inline void *coap_malloc(size_t size) { in coap_malloc() argument
71 return coap_malloc_type(COAP_STRING, size); in coap_malloc()
95 #define coap_malloc_type(type, size) memp_malloc(MEMP_ ## type) argument
101 static inline void *coap_malloc(size_t size) { in coap_malloc() argument
Daddress.h58 socklen_t size; /**< size of addr */ member
121 addr->size = sizeof(addr->addr); in coap_address_init()
/net-tools-3.6.0/tinydtls-0.8.2/
Dsession.c40 ((A)->size == (B)->size \
51 a->size != b->size || a->addr.sa.sa_family != b->addr.sa.sa_family) in _dtls_address_equals_impl()
76 sess->size = sizeof(sess->addr); in dtls_session_init()
Dnetq.c28 netq_malloc_node(size_t size) { in netq_malloc_node() argument
29 return (netq_t *)malloc(sizeof(netq_t) + size); in netq_malloc_node()
45 netq_malloc_node(size_t size) { in netq_malloc_node() argument
111 netq_node_new(size_t size) { in netq_node_new() argument
113 node = netq_malloc_node(size); in netq_node_new()
Dsession.h37 unsigned char size; member
50 socklen_t size; /**< size of addr */ member
/net-tools-3.6.0/libcoap/src/
Dmem.c34 coap_malloc_type(coap_memory_tag_t type UNUSED_PARAM, size_t size) { in coap_malloc_type() argument
35 return malloc(size); in coap_malloc_type()
102 coap_malloc_type(coap_memory_tag_t type, size_t size) { in coap_malloc_type() argument
107 if (size > container->size) { in coap_malloc_type()
Dpdu.c29 coap_pdu_clear(coap_pdu_t *pdu, size_t size) { in coap_pdu_clear() argument
40 memset(pdu->hdr, 0, size); in coap_pdu_clear()
41 pdu->max_size = size; in coap_pdu_clear()
76 unsigned short id, size_t size) { in coap_pdu_init() argument
82 assert(size <= COAP_MAX_PDU_SIZE); in coap_pdu_init()
84 if (size < sizeof(coap_hdr_t) || size > COAP_MAX_PDU_SIZE) in coap_pdu_init()
91 pdu->hdr = coap_malloc_type(COAP_PDU_BUF, size); in coap_pdu_init()
100 p = pbuf_alloc(PBUF_TRANSPORT, size, PBUF_RAM); in coap_pdu_init()
110 coap_pdu_clear(pdu, size); in coap_pdu_init()
Dcoap_io.c153 if (bind(sockfd, &addr->addr.sa, addr->size) < 0) { in coap_new_endpoint()
171 ep->addr.size = addr->size; in coap_new_endpoint()
172 if (getsockname(sockfd, &ep->addr.addr.sa, &ep->addr.size) < 0) { in coap_new_endpoint()
260 mhdr.msg_namelen = dst->size; in coap_network_send()
291 local_interface->addr.size); in coap_network_send()
319 local_interface->addr.size); in coap_network_send()
461 (*packet)->dst.size = sizeof((*packet)->dst.addr); in coap_network_read()
462 if (getsockname(ep->handle.fd, &(*packet)->dst.addr.sa, &(*packet)->dst.size) < 0) { in coap_network_read()
485 (*packet)->src.size = mhdr.msg_namelen; in coap_network_read()
486 assert((*packet)->src.size == sizeof(struct sockaddr_in6)); in coap_network_read()
[all …]
Dstr.c17 str *coap_new_string(size_t size) { in coap_new_string() argument
18 str *s = coap_malloc(sizeof(str) + size + 1); in coap_new_string()
Daddress.c20 if (a->size != b->size || a->addr.sa.sa_family != b->addr.sa.sa_family) in coap_address_equals()
/net-tools-3.6.0/mbedtls-2.4.0/library/
Dasn1write.c113 const unsigned char *buf, size_t size ) in mbedtls_asn1_write_raw_buffer() argument
117 if( *p < start || (size_t)( *p - start ) < size ) in mbedtls_asn1_write_raw_buffer()
120 len = size; in mbedtls_asn1_write_raw_buffer()
294 size_t len = 0, size; in mbedtls_asn1_write_bitstring() local
296 size = ( bits / 8 ) + ( ( bits % 8 ) ? 1 : 0 ); in mbedtls_asn1_write_bitstring()
300 if( *p < start || (size_t)( *p - start ) < size + 1 ) in mbedtls_asn1_write_bitstring()
303 len = size + 1; in mbedtls_asn1_write_bitstring()
304 (*p) -= size; in mbedtls_asn1_write_bitstring()
305 memcpy( *p, buf, size ); in mbedtls_asn1_write_bitstring()
309 *--(*p) = (unsigned char) (size * 8 - bits); in mbedtls_asn1_write_bitstring()
[all …]
Dmemory_buffer_alloc.c58 size_t size; member
104 hdr->alloc, hdr->size ); in debug_header()
232 static void *buffer_alloc_calloc( size_t n, size_t size ) in buffer_alloc_calloc() argument
246 original_len = len = n * size; in buffer_alloc_calloc()
248 if( n != 0 && len / n != size ) in buffer_alloc_calloc()
261 if( cur->size >= len ) in buffer_alloc_calloc()
285 if( cur->size - len < sizeof(memory_header) + in buffer_alloc_calloc()
304 heap.total_used += cur->size; in buffer_alloc_calloc()
326 new->size = cur->size - len - sizeof(memory_header); in buffer_alloc_calloc()
353 cur->size = len; in buffer_alloc_calloc()
[all …]
Dpkwrite.c151 int mbedtls_pk_write_pubkey_der( mbedtls_pk_context *key, unsigned char *buf, size_t size ) in mbedtls_pk_write_pubkey_der() argument
158 c = buf + size; in mbedtls_pk_write_pubkey_der()
199 int mbedtls_pk_write_key_der( mbedtls_pk_context *key, unsigned char *buf, size_t size ) in mbedtls_pk_write_key_der() argument
202 unsigned char *c = buf + size; in mbedtls_pk_write_key_der()
378 int mbedtls_pk_write_pubkey_pem( mbedtls_pk_context *key, unsigned char *buf, size_t size ) in mbedtls_pk_write_pubkey_pem() argument
392 ret, buf, size, &olen ) ) != 0 ) in mbedtls_pk_write_pubkey_pem()
400 int mbedtls_pk_write_key_pem( mbedtls_pk_context *key, unsigned char *buf, size_t size ) in mbedtls_pk_write_key_pem() argument
430 ret, buf, size, &olen ) ) != 0 ) in mbedtls_pk_write_key_pem()
Dx509write_crt.c267 const char *time, size_t size ) in x509_write_time() argument
279 size - 2 ) ); in x509_write_time()
287 size ) ); in x509_write_time()
295 int mbedtls_x509write_crt_der( mbedtls_x509write_cert *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_crt_der() argument
412 c2 = buf + size; in mbedtls_x509write_crt_der()
434 int mbedtls_x509write_crt_pem( mbedtls_x509write_cert *crt, unsigned char *buf, size_t size, in mbedtls_x509write_crt_pem() argument
450 ret, buf, size, &olen ) ) != 0 ) in mbedtls_x509write_crt_pem()
Dx509write_csr.c129 int mbedtls_x509write_csr_der( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_der() argument
212 c2 = buf + size; in mbedtls_x509write_csr_der()
234 int mbedtls_x509write_csr_pem( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size, in mbedtls_x509write_csr_pem() argument
250 ret, buf, size, &olen ) ) != 0 ) in mbedtls_x509write_csr_pem()
Dx509.c707 int mbedtls_x509_dn_gets( char *buf, size_t size, const mbedtls_x509_name *dn ) in mbedtls_x509_dn_gets() argument
720 n = size; in mbedtls_x509_dn_gets()
762 return( (int) ( size - n ) ); in mbedtls_x509_dn_gets()
769 int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial ) in mbedtls_x509_serial_gets() argument
776 n = size; in mbedtls_x509_serial_gets()
797 return( (int) ( size - n ) ); in mbedtls_x509_serial_gets()
803 int mbedtls_x509_sig_alg_gets( char *buf, size_t size, const mbedtls_x509_buf *sig_oid, in mbedtls_x509_sig_alg_gets() argument
809 size_t n = size; in mbedtls_x509_sig_alg_gets()
842 return( (int)( size - n ) ); in mbedtls_x509_sig_alg_gets()
/net-tools-3.6.0/libcoap/examples/
Dcoap-server.c167 size_t size; in hnd_put_time() local
181 coap_get_data(request, &size, &data); in hnd_put_time()
183 if (size == 0) /* re-init */ in hnd_put_time()
188 while(size--) in hnd_put_time()
220 size_t size; in hnd_get_async() local
236 for (size = COAP_OPT_LENGTH(option); size; --size, ++p) in hnd_get_async()
254 size_t size = sizeof(coap_hdr_t) + 13; in check_async() local
262 COAP_RESPONSE_CODE(205), 0, size); in check_async()
367 addr.size = rp->ai_addrlen; in get_context()
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dx509_csr.h137 int mbedtls_x509_csr_info( char *buf, size_t size, const char *prefix,
266 int mbedtls_x509write_csr_der( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size,
288 int mbedtls_x509write_csr_pem( mbedtls_x509write_csr *ctx, unsigned char *buf, size_t size,
Dx509.h227 int mbedtls_x509_dn_gets( char *buf, size_t size, const mbedtls_x509_name *dn );
240 int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial );
302 int mbedtls_x509_sig_alg_gets( char *buf, size_t size, const mbedtls_x509_buf *sig_oid,
316 unsigned char *sig, size_t size );
Dx509_crt.h237 int mbedtls_x509_crt_info( char *buf, size_t size, const char *prefix,
252 int mbedtls_x509_crt_verify_info( char *buf, size_t size, const char *prefix,
623 int mbedtls_x509write_crt_der( mbedtls_x509write_cert *ctx, unsigned char *buf, size_t size,
644 int mbedtls_x509write_crt_pem( mbedtls_x509write_cert *ctx, unsigned char *buf, size_t size,
Dpk.h528 int mbedtls_pk_write_key_der( mbedtls_pk_context *ctx, unsigned char *buf, size_t size );
543 int mbedtls_pk_write_pubkey_der( mbedtls_pk_context *ctx, unsigned char *buf, size_t size );
555 int mbedtls_pk_write_pubkey_pem( mbedtls_pk_context *ctx, unsigned char *buf, size_t size );
566 int mbedtls_pk_write_key_pem( mbedtls_pk_context *ctx, unsigned char *buf, size_t size );
Dasn1write.h72 const unsigned char *buf, size_t size );
212 const unsigned char *buf, size_t size );
/net-tools-3.6.0/mbedtls-2.4.0/programs/util/
Dpem2der.c122 long size; in load_file() local
128 if( ( size = ftell( f ) ) == -1 ) in load_file()
135 *n = (size_t) size; in load_file()
/net-tools-3.6.0/
Dmonitor_15_4.c169 bool monitor_pcap_write(const void *data, uint32_t size) in monitor_pcap_write() argument
183 frame.caplen = size; in monitor_pcap_write()
184 frame.len = size; in monitor_pcap_write()
194 len = write(pcap->fd, data, size); in monitor_pcap_write()
195 if (len < 0 || len != size) { in monitor_pcap_write()

1234