Searched defs:pkt (Results 1 - 25 of 35) sorted by relevance

12

/external/qemu/
H A Dbt-vhci.c40 uint8_t *pkt; local
53 pkt = s->hdr;
55 switch (*pkt ++) {
60 pktlen = MIN(pkt[2] + 3, s->len);
61 s->info->cmd_send(s->info, pkt, pktlen);
63 pkt += pktlen;
70 pktlen = MIN(((pkt[3] << 8) | pkt[2]) + 4, s->len);
71 s->info->acl_send(s->info, pkt, pktlen);
73 pkt
[all...]
H A Dbt-host.c51 uint8_t pkt = type; local
55 iv[0].iov_base = (void *)&pkt;
93 uint8_t *pkt; local
106 pkt = s->hdr;
108 switch (*pkt ++) {
113 pktlen = MIN(pkt[1] + 2, s->len);
114 s->hci.evt_recv(s->hci.opaque, pkt, pktlen);
116 pkt += pktlen;
128 pktlen = MIN(((pkt[3] << 8) | pkt[
[all...]
/external/libvpx/examples/
H A Dencoder_tmpl.c93 const vpx_codec_cx_pkt_t *pkt)
98 if(pkt->kind != VPX_CODEC_CX_FRAME_PKT)
101 pts = pkt->data.frame.pts;
102 mem_put_le32(header, pkt->data.frame.sz);
157 const vpx_codec_cx_pkt_t *pkt; local
162 while( (pkt = vpx_codec_get_cx_data(&codec, &iter)) ) {
164 switch(pkt->kind) {
170 printf(pkt->kind == VPX_CODEC_CX_FRAME_PKT
171 && (pkt->data.frame.flags & VPX_FRAME_IS_KEY)? "K":".");
92 write_ivf_frame_header(FILE *outfile, const vpx_codec_cx_pkt_t *pkt) argument
/external/libvpx/nestegg/test/
H A Dtest.c81 nestegg_packet * pkt; local
157 r = nestegg_read_packet(ctx, &pkt);
159 nestegg_packet_track(pkt, &track);
160 nestegg_packet_count(pkt, &cnt);
161 nestegg_packet_tstamp(pkt, &tstamp);
165 nestegg_free_packet(pkt);
181 r = nestegg_read_packet(ctx, &pkt);
183 nestegg_packet_track(pkt, &track);
184 nestegg_packet_count(pkt, &cnt);
185 nestegg_packet_tstamp(pkt,
[all...]
/external/libvpx/vpx/src/
H A Dvpx_encoder.c148 const vpx_codec_cx_pkt_t *pkt = NULL; local
159 pkt = ctx->iface->enc.get_cx_data(ctx->priv->alg_priv, iter);
162 if (pkt && pkt->kind == VPX_CODEC_CX_FRAME_PKT)
171 && pkt->data.raw.buf != dst_buf
172 && pkt->data.raw.sz
180 pkt->data.raw.buf, pkt->data.raw.sz);
181 *modified_pkt = *pkt;
185 pkt
281 vpx_codec_pkt_list_add(struct vpx_codec_pkt_list *list, const struct vpx_codec_cx_pkt *pkt) argument
297 const vpx_codec_cx_pkt_t *pkt; local
[all...]
/external/ppp/pppd/
H A Ddemand.c138 struct packet *pkt, *nextpkt; local
148 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) {
149 nextpkt = pkt->next;
150 free(pkt);
273 struct packet *pkt; local
283 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
284 if (pkt != NULL) {
285 pkt
305 struct packet *pkt, *prev, *nextpkt; local
[all...]
H A Dchap-new.c121 unsigned char *pkt, int len);
127 unsigned char *pkt, int len);
129 unsigned char *pkt, int len);
131 static void chap_input(int unit, unsigned char *pkt, int pktlen);
311 unsigned char *pkt, int len)
328 response = pkt;
329 GETCHAR(response_len, pkt);
331 name = (char *)pkt + response_len;
424 unsigned char *pkt, int len)
435 if (len < 2 || len < pkt[
310 chap_handle_response(struct chap_server_state *ss, int id, unsigned char *pkt, int len) argument
423 chap_respond(struct chap_client_state *cs, int id, unsigned char *pkt, int len) argument
476 chap_handle_status(struct chap_client_state *cs, int code, int id, unsigned char *pkt, int len) argument
514 chap_input(int unit, unsigned char *pkt, int pktlen) argument
[all...]
H A Dlcp.c207 static void lcp_addci __P((fsm *, u_char *, int *)); /* Add our CI to pkt */
2279 u_char pkt[4], *pktp; local
2296 pktp = pkt;
2298 fsm_sdata(f, ECHOREQ, lcp_echo_number++ & 0xFF, pkt, pktp - pkt);
/external/ppp/pppd/include/
H A Dpcap-int.h89 u_char *pkt; member in struct:pcap
/external/bluetooth/bluez/compat/
H A Dbnep.c221 unsigned char pkt[BNEP_MTU]; local
224 r = recv(sk, pkt, BNEP_MTU, 0);
233 req = (void *) pkt;
239 rsp = (void *) pkt;
261 unsigned char pkt[BNEP_MTU]; local
265 req = (void *) pkt;
279 if (send(sk, pkt, sizeof(*req) + sizeof(*s), 0) < 0)
284 r = recv(sk, pkt, BNEP_MTU, 0);
298 rsp = (void *) pkt;
/external/ipsec-tools/src/libipsec/
H A Dkey_debug.c544 struct sadb_x_packet *pkt = (struct sadb_x_packet *)ext; local
550 printf("sadb_x_packet{ copylen=%u\n", pkt->sadb_x_packet_copylen);
552 ipsec_hexdump((caddr_t)pkt + sizeof(struct sadb_x_packet),
553 pkt->sadb_x_packet_copylen);
/external/bluetooth/bluez/network/
H A Dconnection.c230 char pkt[BNEP_MTU]; local
244 memset(pkt, 0, BNEP_MTU);
245 if (g_io_channel_read(chan, pkt, sizeof(pkt) - 1,
263 rsp = (void *) pkt;
334 unsigned char pkt[BNEP_MTU]; local
338 req = (void *) pkt;
352 if (send(fd, pkt, sizeof(*req) + sizeof(*s), 0) < 0)
/external/openssl/ssl/
H A Ds3_pkt.c134 unsigned char *pkt; local
159 pkt = rb->buf + rb->offset;
160 if (pkt[0] == SSL3_RT_APPLICATION_DATA
161 && (pkt[3]<<8|pkt[4]) >= 128)
170 memmove (rb->buf+align,pkt,left);
200 pkt = rb->buf+align;
204 if (s->packet != pkt) /* len > 0 */
206 memmove(pkt, s->packet, len+left);
207 s->packet = pkt;
[all...]
/external/qemu/hw/
H A Dbt-hci-csr.c182 static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt) argument
187 switch (*pkt ++) {
189 opc = le16_to_cpu(((struct hci_command_hdr *) pkt)->opcode);
192 pkt + sizeof(struct hci_command_hdr),
203 s->hci->cmd_send(s->hci, pkt, s->in_len - 1);
210 s->hci->acl_send(s->hci, pkt, s->in_len - 1);
214 s->hci->sco_send(s->hci, pkt, s->in_len - 1);
219 memcmp(pkt - 1, csrhci_neg_packet, s->in_hdr)) {
223 pkt += 2;
228 memcpy(rpkt, pkt,
255 csrhci_header_len(const uint8_t *pkt) argument
275 csrhci_data_len(const uint8_t *pkt) argument
337 uint8_t *pkt = csrhci_out_packet(s, (len + 2) & ~1); /* Align */ local
349 uint8_t *pkt = csrhci_out_packet(s, (len + 2) & ~1); /* Align */ local
[all...]
H A Dbt-hid.c185 uint8_t *pkt, hdr = (BT_DATA << 4) | type; local
190 pkt = ch->sdu_out(ch, plen + 1);
192 pkt[0] = hdr;
194 memcpy(pkt + 1, data, plen);
H A Dbt-l2cap.c190 uint8_t *pkt; local
198 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
200 hdr = (void *) (pkt + 0);
201 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
208 memcpy(pkt + L2CAP_CMD_HDR_SIZE + L2CAP_CMD_REJ_SIZE, data, plen);
227 uint8_t *pkt; local
231 pkt = l2cap->signalling_ch.params.sdu_out(&l2cap->signalling_ch.params,
233 hdr = (void *) (pkt + 0);
234 params = (void *) (pkt + L2CAP_CMD_HDR_SIZE);
251 uint8_t *pkt; local
279 uint8_t *pkt; local
304 uint8_t *pkt; local
326 uint8_t *pkt; local
347 uint8_t *pkt; local
[all...]
/external/dnsmasq/src/
H A Ddhcp.c291 struct in_pktinfo *pkt; local
295 pkt = (struct in_pktinfo *)CMSG_DATA(cmptr);
296 pkt->ipi_ifindex = iface_index;
297 pkt->ipi_spec_dst.s_addr = 0;
H A Dforward.c68 struct in_pktinfo *pkt = (struct in_pktinfo *)CMSG_DATA(cmptr); local
69 pkt->ipi_ifindex = 0;
70 pkt->ipi_spec_dst = source->addr.addr4;
85 struct in6_pktinfo *pkt = (struct in6_pktinfo *)CMSG_DATA(cmptr); local
86 pkt->ipi6_ifindex = iface; /* Need iface for IPv6 to handle link-local addrs */
87 pkt->ipi6_addr = source->addr.addr6;
/external/libpcap/
H A Dpcap-int.h179 u_char *pkt; member in struct:pcap
H A Dpcap.c122 const u_char *pkt; member in struct:singleton
127 pcap_oneshot(u_char *userData, const struct pcap_pkthdr *h, const u_char *pkt) argument
131 sp->pkt = pkt;
142 return (s.pkt);
147 const u_char **pkt; member in struct:pkt_for_fakecallback
152 const u_char *pkt)
157 *sp->pkt = pkt;
167 s.pkt
151 pcap_fakecallback(u_char *userData, const struct pcap_pkthdr *h, const u_char *pkt) argument
[all...]
/external/libvpx/vp8/
H A Dvp8_cx_iface.c742 vpx_codec_cx_pkt_t pkt; local
748 pkt.kind = VPX_CODEC_CX_FRAME_PKT;
749 pkt.data.frame.buf = cx_data;
750 pkt.data.frame.sz = size;
751 pkt.data.frame.pts =
754 pkt.data.frame.duration =
757 pkt.data.frame.flags = lib_flags << 16;
760 pkt.data.frame.flags |= VPX_FRAME_IS_KEY;
764 pkt.data.frame.flags |= VPX_FRAME_IS_INVISIBLE;
770 pkt
[all...]
/external/ppp/pppd/plugins/rp-pppoe/
H A Dif.c518 * pkt -- the packet to transmit
526 sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size) argument
529 if (write(sock, pkt, size) < 0) {
534 if (send(sock, pkt, size, 0) < 0) {
551 tmp_sap = htons(pkt->ethHdr.h_proto);
554 memcpy((char *)phys, (char *)pkt->ethHdr.h_dest, ETHERADDRL);
556 memcpy((char *)xmitbuf, (char *)pkt + sizeof(struct ethhdr), data_size);
583 if (sendto(sock, pkt, size, 0, &sa, sizeof(sa)) < 0) {
596 * pkt -- packet that needs its head clearing
607 clearPacketHeader(PPPoEPacket *pkt) argument
626 receivePacket(int sock, PPPoEPacket *pkt, int *size) argument
[all...]
/external/bluetooth/bluez/audio/
H A Dgstavdtpsink.c270 sbc_capabilities_t *pkt)
357 memcpy(pkt, cfg, sizeof(*pkt));
958 mpeg_capabilities_t *pkt)
977 pkt->layer = BT_MPEG_LAYER_1;
979 pkt->layer = BT_MPEG_LAYER_2;
981 pkt->layer = BT_MPEG_LAYER_3;
989 pkt->crc = self->mp3_using_crc;
998 pkt->channel_mode = self->channel_mode;
1006 pkt
268 gst_avdtp_sink_init_sbc_pkt_conf(GstAvdtpSink *sink, GstCaps *caps, sbc_capabilities_t *pkt) argument
956 gst_avdtp_sink_init_mp3_pkt_conf( GstAvdtpSink *self, GstCaps *caps, mpeg_capabilities_t *pkt) argument
[all...]
/external/bluetooth/bluez/test/
H A Dhciemu.c219 struct btsnoop_pkt pkt; local
232 pkt.size = htonl(size);
233 pkt.len = pkt.size;
234 pkt.flags = ntohl(incoming & 0x01);
235 pkt.drops = htonl(0);
236 pkt.ts = hton64(ts + 0x00E03AB44A676000ll);
239 pkt.flags |= ntohl(0x02);
241 err = write(fd, &pkt, BTSNOOP_PKT_SIZE);
/external/libvpx/
H A Dvpxdec.c198 nestegg_packet *pkt; member in struct:input_ctx
224 if(input->pkt)
225 nestegg_free_packet(input->pkt);
227 if(nestegg_read_packet(input->nestegg_ctx, &input->pkt) <= 0
228 || nestegg_packet_track(input->pkt, &track))
233 if(nestegg_packet_count(input->pkt, &input->chunks))
238 if(nestegg_packet_data(input->pkt, input->chunk, buf, buf_sz))
522 nestegg_packet * pkt; local
525 if(nestegg_read_packet(input->nestegg_ctx, &pkt) <= 0)
528 nestegg_packet_track(pkt,
567 nestegg_packet * pkt; local
[all...]

Completed in 334 milliseconds

12