Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 25 of 75) sorted by relevance

123

/external/tcpdump/
Dprint-tcp.c431 register u_int i, opt, datalen; local
452 datalen = 0;
463 datalen = 2;
464 LENCHECK(datalen);
469 datalen = 1;
470 LENCHECK(datalen);
475 datalen = len - 2;
476 if (datalen % 8 != 0) {
481 ND_PRINT((ndo, " %d ", datalen / 8));
482 for (i = 0; i < datalen; i += 8) {
[all …]
Dprint-smb.c241 const u_char *param, int paramlen, const u_char *data, int datalen) in print_browse() argument
243 const u_char *maxbuf = data + datalen; in print_browse()
323 const u_char *param, int paramlen, const u_char *data, int datalen) in print_ipc() argument
328 if (datalen) in print_ipc()
329 smb_fdata(ndo, data, "IPC ", data + datalen, unicodestr); in print_ipc()
341 int datalen, paramlen; in print_trans() local
347 datalen = EXTRACT_LE_16BITS(w + 11 * 2); in print_trans()
357 datalen = EXTRACT_LE_16BITS(w + 6 * 2); in print_trans()
372 smb_fdata(ndo, data1 + 2, f2, maxbuf - (paramlen + datalen), unicodestr); in print_trans()
375 print_browse(ndo, param, paramlen, data, datalen); in print_trans()
[all …]
/external/kernel-headers/original/uapi/linux/
Dtipc_config.h249 #define TLV_ALIGN(datalen) (((datalen)+(TLV_ALIGNTO-1)) & ~(TLV_ALIGNTO-1)) argument
250 #define TLV_LENGTH(datalen) (sizeof(struct tlv_desc) + (datalen)) argument
251 #define TLV_SPACE(datalen) (TLV_ALIGN(TLV_LENGTH(datalen))) argument
386 #define TCM_ALIGN(datalen) (((datalen)+3) & ~3) argument
387 #define TCM_LENGTH(datalen) (sizeof(struct tipc_cfg_msg_hdr) + datalen) argument
388 #define TCM_SPACE(datalen) (TCM_ALIGN(TCM_LENGTH(datalen))) argument
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c170 uint16_t datalen; // Length currently in use member
192 txtRec->datalen = 0; in TXTRecordCreate()
218 if (txtRec->datalen + keyvalsize > txtRec->buflen) in TXTRecordSetValue()
221 unsigned long newlen = txtRec->datalen + keyvalsize; in TXTRecordSetValue()
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue()
231 start = txtRec->buffer + txtRec->datalen; in TXTRecordSetValue()
242 txtRec->datalen += p - start; in TXTRecordSetValue()
253 uint8_t *item = InternalTXTRecordSearch(txtRec->datalen, txtRec->buffer, key, &keylen); in TXTRecordRemoveValue()
256 remainder = (unsigned long)((txtRec->buffer + txtRec->datalen) - (item + itemlen)); in TXTRecordRemoveValue()
259 txtRec->datalen -= itemlen; in TXTRecordRemoveValue()
[all …]
Ddnssd_ipc.c157 hdr->datalen = htonl(hdr->datalen); in ConvertHeaderBytes()
Ddnssd_clientstub.c325 int datalen; in create_hdr() local
346 datalen = (int) *len; in create_hdr()
356 hdr->datalen = datalen; in create_hdr()
549 …uint32_t datalen = hdr->datalen; // We take a copy here because we're going to convert hdr->datale… in deliver_request() local
641 …if (MakeSeparateReturnSocket || sdr->op == send_bpf) datalen--; // Okay to use sdr->op when check… in deliver_request()
650 for (i=0; i<datalen + sizeof(ipc_msg_hdr); i++) in deliver_request()
658 if (write_all(sdr->sockfd, (char *)hdr, datalen + sizeof(ipc_msg_hdr)) < 0) in deliver_request()
664 sdr->sockfd, (unsigned long)(datalen + sizeof(ipc_msg_hdr))); in deliver_request()
694 …struct iovec vec = { ((char *)hdr) + sizeof(ipc_msg_hdr) + datalen, 1 }; // Send the last byte alo… in deliver_request()
952 data = malloc(cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
[all …]
/external/ipsec-tools/src/racoon/
Disakmp_frag.c90 size_t datalen; local
120 datalen = max_datalen;
122 datalen = len;
126 + datalen;
143 if (len == datalen)
149 memcpy(data, sdata, datalen);
158 len -= datalen;
159 sdata += datalen;
/external/iputils/Modules/
Dpg3.c244 int datalen, iplen; in fill_packet() local
263 datalen = pkt_size-14-20-8; /* Eth + IPh + UDPh */ in fill_packet()
264 if (datalen < 0) in fill_packet()
265 datalen = 0; in fill_packet()
269 udph->len= htons(datalen+8); /* DATA + udphdr */ in fill_packet()
280 iplen = 20 + 8 + datalen; in fill_packet()
290 skb_put(skb, datalen); in fill_packet()
297 if (datalen > frags*PAGE_SIZE) { in fill_packet()
298 skb_put(skb, datalen-frags*PAGE_SIZE); in fill_packet()
299 datalen = frags*PAGE_SIZE; in fill_packet()
[all …]
/external/iputils/
Dtraceroute6.c332 int datalen = sizeof(struct pkt_format); variable
470 datalen = atoi(*argv); in main()
474 if (datalen == 0) in main()
475 datalen = sizeof(struct pkt_format); in main()
476 else if (datalen < (int)sizeof(struct pkt_format) || in main()
477 datalen >= MAXPACKET) { in main()
487 sendbuff = malloc(datalen); in main()
528 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&datalen, in main()
529 sizeof(datalen)) < 0) { in main()
590 Fprintf(stderr, ", %d hops max, %d byte packets\n", max_ttl, datalen); in main()
[all …]
Dping_common.c58 int datalen = DEFDATALEN; variable
353 datalen = atoi(optarg); in common_options()
354 if (datalen < 0) { in common_options()
355 fprintf(stderr, "ping: illegal negative packet size %d.\n", datalen); in common_options()
358 if (datalen > maxpacket - 8) { in common_options()
360 datalen); in common_options()
690 for (i = 0; i < datalen; ++i) in setup()
949 if (cc < datalen+8) { in gather_statistics()
974 for (i = sizeof(struct timeval); i < datalen; ++i, ++cp, ++dp) { in gather_statistics()
979 for (i = sizeof(struct timeval); i < datalen; ++i, ++cp) { in gather_statistics()
Dping.c546 hold = datalen + 8; in main()
580 if (datalen > 0xFFFF - 8 - optlen - 20) { in main()
581 if (uid || datalen > sizeof(outpack)-8) { in main()
582 …fprintf(stderr, "Error: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optlen… in main()
586 …fprintf(stderr, "WARNING: packet size %d is too large. Maximum is %d\n", datalen, 0xFFFF-8-20-optl… in main()
589 if (datalen >= sizeof(struct timeval)) /* can we time transfer */ in main()
591 packlen = datalen + MAXIPLEN + MAXICMPLEN; in main()
600 printf("%d(%d) bytes of data.\n", datalen, datalen+8+optlen+20); in main()
743 cc = datalen + 8; /* skips ICMP portion */ in send_probe()
/external/libpcap/
Dpcap-snoop.c70 register u_int datalen; in pcap_read_snoop() local
103 datalen = sh->snoop_packetlen; in pcap_read_snoop()
111 (datalen < p->snapshot)) in pcap_read_snoop()
112 datalen += (64 * 1024); in pcap_read_snoop()
114 caplen = (datalen < p->snapshot) ? datalen : p->snapshot; in pcap_read_snoop()
129 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) { in pcap_read_snoop()
134 h.len = datalen; in pcap_read_snoop()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jcapimin.c193 const JOCTET *dataptr, unsigned int datalen) in jpeg_write_marker() argument
203 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_marker()
205 while (datalen--) { in jpeg_write_marker()
214 jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen) in jpeg_write_m_header() argument
222 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_m_header()
/external/libjpeg-turbo/
Djcapimin.c207 const JOCTET *dataptr, unsigned int datalen) in jpeg_write_marker() argument
217 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_marker()
219 while (datalen--) { in jpeg_write_marker()
228 jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen) in jpeg_write_m_header() argument
236 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_m_header()
/external/opencv3/3rdparty/libjpeg/
Djcapimin.c201 const JOCTET *dataptr, unsigned int datalen) in jpeg_write_marker() argument
211 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_marker()
213 while (datalen--) { in jpeg_write_marker()
222 jpeg_write_m_header (j_compress_ptr cinfo, int marker, unsigned int datalen) in jpeg_write_m_header() argument
230 (*cinfo->marker->write_marker_header) (cinfo, marker, datalen); in jpeg_write_m_header()
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig_winreg.c69 DWORD namelen, datalen, type; in wpa_config_read_blobs() local
72 datalen = sizeof(data); in wpa_config_read_blobs()
74 (LPBYTE) data, &datalen); in wpa_config_read_blobs()
90 if (datalen >= sizeof(data)) in wpa_config_read_blobs()
91 datalen = sizeof(data) - 1; in wpa_config_read_blobs()
94 (int) i, name, (int) datalen); in wpa_config_read_blobs()
102 blob->data = os_malloc(datalen); in wpa_config_read_blobs()
108 os_memcpy(blob->data, data, datalen); in wpa_config_read_blobs()
109 blob->len = datalen; in wpa_config_read_blobs()
312 DWORD namelen, datalen, type; in wpa_config_read_network() local
[all …]
/external/opencv3/3rdparty/libjasper/
Djp2_cod.c278 box->datalen = extlen - JP2_BOX_HDRLEN(true); in jp2_box_get()
280 box->datalen = box->len - JP2_BOX_HDRLEN(false); in jp2_box_get()
292 if (jas_stream_copy(tmpstream, in, box->datalen)) { in jp2_box_get()
354 ftyp->numcompatcodes = (box->datalen - 8) / 4; in jp2_ftyp_getdata()
382 bpcc->numcmpts = box->datalen; in jp2_bpcc_getdata()
426 colr->iccplen = box->datalen - 3; in jp2_colr_getdata()
776 cmap->numchans = (box->datalen) / 4; in jp2_cmap_getdata()
908 uuid->datalen = box->datalen - 16; in jp2_uuid_getdata()
909 uuid->data = jas_malloc(uuid->datalen * sizeof(uint_fast8_t)); in jp2_uuid_getdata()
910 for (i = 0; i < uuid->datalen; i++) in jp2_uuid_getdata()
[all …]
Djpc_t2enc.c184 int datalen; in jpc_enc_encpkt() local
296 datalen = pass->end - n; in jpc_enc_encpkt()
297 t1 = jpc_firstone(datalen) + 1; in jpc_enc_encpkt()
301 n += datalen; in jpc_enc_encpkt()
317 datalen = pass->end - n; in jpc_enc_encpkt()
318 assert(jpc_firstone(datalen) < cblk->numlenbits + jpc_floorlog2(passcount)); in jpc_enc_encpkt()
319 … if (jpc_bitstream_putbits(outb, cblk->numlenbits + jpc_floorlog2(passcount), datalen) == EOF) { in jpc_enc_encpkt()
322 n += datalen; in jpc_enc_encpkt()
Djp2_cod.h238 uint_fast32_t datalen; member
260 uint_fast32_t datalen; member
/external/ppp/pppd/
Dfsm.c796 fsm_sdata(f, code, id, data, datalen) in fsm_sdata() argument
800 int datalen;
807 if (datalen > peer_mru[f->unit] - HEADERLEN)
808 datalen = peer_mru[f->unit] - HEADERLEN;
809 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN)
810 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen);
811 outlen = datalen + HEADERLEN;
/external/e2fsprogs/lib/ext2fs/
Dtdbtool.c206 static void insert_tdb(char *keyname, size_t keylen, char* data, size_t datalen) in insert_tdb() argument
218 dbuf.dsize = datalen; in insert_tdb()
225 static void store_tdb(char *keyname, size_t keylen, char* data, size_t datalen) in store_tdb() argument
234 if ((data == NULL) || (datalen == 0)) { in store_tdb()
242 dbuf.dsize = datalen; in store_tdb()
/external/curl/lib/
Dhttp_chunks.c107 ssize_t datalen, in Curl_httpchunk_read() argument
115 curl_off_t length = (curl_off_t)datalen; in Curl_httpchunk_read()
123 result = Curl_client_write(conn, CLIENTWRITE_BODY, datap, datalen); in Curl_httpchunk_read()
/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.h65 size_t datalen);
67 size_t datalen);
/external/libnl/lib/
Dattr.c837 int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data) in nla_put() argument
841 nla = nla_reserve(msg, attrtype, datalen); in nla_put()
845 memcpy(nla_data(nla), data, datalen); in nla_put()
847 msg, datalen, (void *) nla - nlmsg_data(msg->nm_nlh), attrtype); in nla_put()
/external/wpa_supplicant_8/src/ap/
Dieee802_1x.c46 u8 type, const u8 *data, size_t datalen) in ieee802_1x_send() argument
53 len = sizeof(*xhdr) + datalen; in ieee802_1x_send()
65 xhdr->length = host_to_be16(datalen); in ieee802_1x_send()
67 if (datalen > 0 && data != NULL) in ieee802_1x_send()
68 os_memcpy(xhdr + 1, data, datalen); in ieee802_1x_send()
902 u16 datalen; in ieee802_1x_receive() local
933 datalen = be_to_host16(hdr->length); in ieee802_1x_receive()
935 hdr->version, hdr->type, datalen); in ieee802_1x_receive()
937 if (len - sizeof(*hdr) < datalen) { in ieee802_1x_receive()
943 if (len - sizeof(*hdr) > datalen) { in ieee802_1x_receive()
[all …]

123