Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 25 of 102) sorted by relevance

12345

/external/ppp/pppd/
Ddemand.c138 struct packet *pkt, *nextpkt; in demand_discard() local
148 for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { in demand_discard()
149 nextpkt = pkt->next; in demand_discard()
150 free(pkt); in demand_discard()
273 struct packet *pkt; local
283 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
284 if (pkt != NULL) {
285 pkt->length = len;
286 pkt->next = NULL;
287 memcpy(pkt->data, frame, len);
[all …]
Dchap-new.c123 unsigned char *pkt, int len);
129 unsigned char *pkt, int len);
131 unsigned char *pkt, int len);
133 static void chap_input(int unit, unsigned char *pkt, int pktlen);
310 unsigned char *pkt, int len) in chap_handle_response() argument
324 response = pkt; in chap_handle_response()
325 GETCHAR(response_len, pkt); in chap_handle_response()
327 name = (char *)pkt + response_len; in chap_handle_response()
439 unsigned char *pkt, int len) in chap_respond() argument
450 if (len < 2 || len < pkt[0] + 1) in chap_respond()
[all …]
/external/autotest/client/deps/lansim/src/py/
Dhost.py72 def arp_request(self, pkt): argument
78 self.add_arp(hw_addr=pkt.arp.sha, ip_addr=pkt.arp.spa)
83 tpa = pkt.arp.spa, # Target Protocol Address.
84 tha = pkt.arp.sha, # Target Hardware Address.
88 dst = pkt.arp.sha,
136 def send_ip(self, pkt): argument
143 hw_dst = self._resolve_mac_address(pkt.dst)
145 pkt.src = self._bin_ip_addr
147 pkt.len = len(pkt)
148 pkt.sum = 0
[all …]
/external/mdnsresponder/mDNSShared/
Ddnsextd.c104 PktMsg pkt; member
113 PktMsg pkt; member
205 mDNSlocal void HdrNToH(PktMsg *pkt) in HdrNToH() argument
208 mDNSu8 *ptr = (mDNSu8 *)&pkt->msg.h.numQuestions; in HdrNToH()
209 pkt->msg.h.numQuestions = (mDNSu16)((mDNSu16)ptr[0] << 8 | ptr[1]); in HdrNToH()
210 pkt->msg.h.numAnswers = (mDNSu16)((mDNSu16)ptr[2] << 8 | ptr[3]); in HdrNToH()
211 pkt->msg.h.numAuthorities = (mDNSu16)((mDNSu16)ptr[4] << 8 | ptr[5]); in HdrNToH()
212 pkt->msg.h.numAdditionals = (mDNSu16)((mDNSu16)ptr[6] << 8 | ptr[7]); in HdrNToH()
216 mDNSlocal void HdrHToN(PktMsg *pkt) in HdrHToN() argument
218 mDNSu16 numQuestions = pkt->msg.h.numQuestions; in HdrHToN()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dfec_receiver_impl.cc94 received_packet->pkt = new ForwardErrorCorrection::Packet; in AddReceivedRedPacket()
147 memcpy(received_packet->pkt->data, incoming_rtp_packet, in AddReceivedRedPacket()
151 received_packet->pkt->data[1] &= 0x80; // reset the payload in AddReceivedRedPacket()
152 received_packet->pkt->data[1] += in AddReceivedRedPacket()
157 received_packet->pkt->data + header.headerLength, in AddReceivedRedPacket()
161 received_packet->pkt->length = blockLength; in AddReceivedRedPacket()
164 second_received_packet->pkt = new ForwardErrorCorrection::Packet; in AddReceivedRedPacket()
171 memcpy(second_received_packet->pkt->data, in AddReceivedRedPacket()
176 second_received_packet->pkt->length = in AddReceivedRedPacket()
183 received_packet->pkt->data, in AddReceivedRedPacket()
[all …]
Dforward_error_correction.cc58 rtc::scoped_refptr<ForwardErrorCorrection::Packet> pkt; member in webrtc::ProtectedPacket
71 rtc::scoped_refptr<ForwardErrorCorrection::Packet> pkt; member in webrtc::FecPacket
492 rx_packet->pkt = NULL; in InsertMediaPacket()
502 recoverd_packet_to_insert->pkt = rx_packet->pkt; in InsertMediaPacket()
503 recoverd_packet_to_insert->pkt->length = rx_packet->pkt->length; in InsertMediaPacket()
522 (*protected_it)->pkt = packet->pkt; in UpdateCoveringFECPackets()
537 rx_packet->pkt = NULL; in InsertFECPacket()
543 fec_packet->pkt = rx_packet->pkt; in InsertFECPacket()
548 ByteReader<uint16_t>::ReadBigEndian(&fec_packet->pkt->data[2]); in InsertFECPacket()
549 const uint16_t maskSizeBytes = (fec_packet->pkt->data[0] & 0x40) in InsertFECPacket()
[all …]
/external/libvpx/libvpx/test/
Dsuperframe_test.cc54 const vpx_codec_cx_pkt_t *pkt) { in MutateEncoderOutputHook() argument
55 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in MutateEncoderOutputHook()
56 return pkt; in MutateEncoderOutputHook()
58 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); in MutateEncoderOutputHook()
59 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; in MutateEncoderOutputHook()
65 pkt->data.frame.sz >= index_sz && in MutateEncoderOutputHook()
66 buffer[pkt->data.frame.sz - index_sz] == marker) { in MutateEncoderOutputHook()
70 modified_buf_ = new uint8_t[pkt->data.frame.sz - index_sz]; in MutateEncoderOutputHook()
71 memcpy(modified_buf_, pkt->data.frame.buf, in MutateEncoderOutputHook()
72 pkt->data.frame.sz - index_sz); in MutateEncoderOutputHook()
[all …]
Dresize_test.cc64 static void write_ivf_frame_header(const vpx_codec_cx_pkt_t *const pkt, in write_ivf_frame_header() argument
69 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in write_ivf_frame_header()
72 pts = pkt->data.frame.pts; in write_ivf_frame_header()
73 mem_put_le32(header, static_cast<unsigned int>(pkt->data.frame.sz)); in write_ivf_frame_header()
223 virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) { in PSNRPktHook() argument
225 frame0_psnr_ = pkt->data.psnr.psnr[0]; in PSNRPktHook()
226 EXPECT_NEAR(pkt->data.psnr.psnr[0], frame0_psnr_, 2.0); in PSNRPktHook()
230 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
234 if (pkt->data.frame.pts == 0) in FramePktHook()
238 write_ivf_frame_header(pkt, outfile_); in FramePktHook()
[all …]
Dencode_test_driver.cc73 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in EncodeFrame() local
74 if (pkt->kind != VPX_CODEC_STATS_PKT) in EncodeFrame()
77 stats_->Append(*pkt); in EncodeFrame()
218 while (const vpx_codec_cx_pkt_t *pkt = iter.Next()) { in RunLoop() local
219 pkt = MutateEncoderOutputHook(pkt); in RunLoop()
221 switch (pkt->kind) { in RunLoop()
226 (const uint8_t*)pkt->data.frame.buf, pkt->data.frame.sz); in RunLoop()
233 ASSERT_GE(pkt->data.frame.pts, last_pts_); in RunLoop()
234 last_pts_ = pkt->data.frame.pts; in RunLoop()
235 FramePktHook(pkt); in RunLoop()
[all …]
Dtile_independence_test.cc58 void UpdateMD5(::libvpx_test::Decoder *dec, const vpx_codec_cx_pkt_t *pkt, in UpdateMD5() argument
61 reinterpret_cast<uint8_t*>(pkt->data.frame.buf), pkt->data.frame.sz); in UpdateMD5()
70 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
71 UpdateMD5(fw_dec_, pkt, &md5_fw_order_); in FramePktHook()
72 UpdateMD5(inv_dec_, pkt, &md5_inv_order_); in FramePktHook()
Dvp9_arf_freq_test.cc116 int GetNumFramesInPkt(const vpx_codec_cx_pkt_t *pkt) { in GetNumFramesInPkt() argument
117 const uint8_t *buffer = reinterpret_cast<uint8_t*>(pkt->data.frame.buf); in GetNumFramesInPkt()
118 const uint8_t marker = buffer[pkt->data.frame.sz - 1]; in GetNumFramesInPkt()
127 pkt->data.frame.sz >= index_sz && in GetNumFramesInPkt()
128 buffer[pkt->data.frame.sz - index_sz] == marker)) { in GetNumFramesInPkt()
134 virtual void FramePktHook(const vpx_codec_cx_pkt_t *pkt) { in FramePktHook() argument
135 if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) in FramePktHook()
137 const int frames = GetNumFramesInPkt(pkt); in FramePktHook()
/external/libvpx/libvpx/vpx/src/
Dvpx_encoder.c256 const vpx_codec_cx_pkt_t *pkt = NULL; in vpx_codec_get_cx_data() local
266 pkt = ctx->iface->enc.get_cx_data(get_alg_priv(ctx), iter); in vpx_codec_get_cx_data()
269 if (pkt && pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in vpx_codec_get_cx_data()
277 pkt->data.raw.buf != dst_buf && in vpx_codec_get_cx_data()
278 pkt->data.raw.sz + priv->enc.cx_data_pad_before + in vpx_codec_get_cx_data()
282 memcpy(dst_buf + priv->enc.cx_data_pad_before, pkt->data.raw.buf, in vpx_codec_get_cx_data()
283 pkt->data.raw.sz); in vpx_codec_get_cx_data()
284 *modified_pkt = *pkt; in vpx_codec_get_cx_data()
288 pkt = modified_pkt; in vpx_codec_get_cx_data()
291 if (dst_buf == pkt->data.raw.buf) { in vpx_codec_get_cx_data()
[all …]
/external/libvpx/libvpx/examples/
Dtwopass_encoder.c76 const vpx_codec_cx_pkt_t *pkt = NULL; in get_frame_stats() local
82 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in get_frame_stats()
85 if (pkt->kind == VPX_CODEC_STATS_PKT) { in get_frame_stats()
86 const uint8_t *const pkt_buf = pkt->data.twopass_stats.buf; in get_frame_stats()
87 const size_t pkt_size = pkt->data.twopass_stats.sz; in get_frame_stats()
106 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
112 while ((pkt = vpx_codec_get_cx_data(ctx, &iter)) != NULL) { in encode_frame()
114 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
115 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
117 if (!vpx_video_writer_write_frame(writer, pkt->data.frame.buf, in encode_frame()
[all …]
Dvp9_lossless_encoder.c37 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
43 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
46 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
47 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
49 pkt->data.frame.buf, in encode_frame()
50 pkt->data.frame.sz, in encode_frame()
51 pkt->data.frame.pts)) { in encode_frame()
Dvp8cx_set_ref.c73 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
79 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
82 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
83 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
85 pkt->data.frame.buf, in encode_frame()
86 pkt->data.frame.sz, in encode_frame()
87 pkt->data.frame.pts)) { in encode_frame()
Dsimple_encoder.c125 const vpx_codec_cx_pkt_t *pkt = NULL; in encode_frame() local
131 while ((pkt = vpx_codec_get_cx_data(codec, &iter)) != NULL) { in encode_frame()
134 if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) { in encode_frame()
135 const int keyframe = (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0; in encode_frame()
137 pkt->data.frame.buf, in encode_frame()
138 pkt->data.frame.sz, in encode_frame()
139 pkt->data.frame.pts)) { in encode_frame()
/external/libvncserver/client_examples/
Dvnc2mpg.c196 AVPacket pkt; in write_video_frame() local
197 av_init_packet(&pkt); in write_video_frame()
199 pkt.flags |= PKT_FLAG_KEY; in write_video_frame()
200 pkt.stream_index= st->index; in write_video_frame()
201 pkt.data= (uint8_t *)picture_ptr; in write_video_frame()
202 pkt.size= sizeof(AVPicture); in write_video_frame()
204 ret = av_write_frame(oc, &pkt); in write_video_frame()
210 AVPacket pkt; in write_video_frame() local
211 av_init_packet(&pkt); in write_video_frame()
213 pkt.pts= c->coded_frame->pts; in write_video_frame()
[all …]
/external/mdnsresponder/mDNSPosix/
DNetMonitor.c461 DNSQuestion *q, LargeCacheRecord *pkt) in FindUpdate() argument
467 ptr = GetLargeResourceRecord(m, query, ptr, end, q->InterfaceID, kDNSRecordTypePacketAuth, pkt); in FindUpdate()
469 …cordType != kDNSRecordTypePacketNegative && ResourceRecordAnswersQuestion(&pkt->r.resrec, q)) retu… in FindUpdate()
617 LargeCacheRecord pkt; in DisplayQuery() local
633 p2 = (mDNSu8 *)FindUpdate(m, msg, auth, end, &q, &pkt); in DisplayQuery()
637 DisplayResourceRecord(srcaddr, ucbit ? "(PU)" : "(PM)", &pkt.r.resrec); in DisplayQuery()
656 ptr = GetLargeResourceRecord(m, msg, ptr, end, InterfaceID, kDNSRecordTypePacketAns, &pkt); in DisplayQuery()
658 DisplayResourceRecord(srcaddr, "(KA)", &pkt.r.resrec); in DisplayQuery()
664 recordstat(entry, pkt.r.resrec.name, OP_query, pkt.r.resrec.rrtype); in DisplayQuery()
670 ptr = GetLargeResourceRecord(m, msg, ptr, end, InterfaceID, kDNSRecordTypePacketAuth, &pkt); in DisplayQuery()
[all …]
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c204 sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size) in sendPacket() argument
209 pppoe_log_packet("Send ", pkt); in sendPacket()
211 err = send(sock, pkt, size, 0); in sendPacket()
216 err = sendto(sock, pkt, size, 0, &sa, sizeof(sa)); in sendPacket()
237 receivePacket(int sock, PPPoEPacket *pkt, int *size) in receivePacket() argument
239 if ((*size = recv(sock, pkt, sizeof(PPPoEPacket), 0)) < 0) { in receivePacket()
244 pppoe_log_packet("Recv ", pkt); in receivePacket()
/external/webrtc/webrtc/modules/rtp_rtcp/test/testFec/
Dtest_fec.cc72 duplicatePacket->pkt = new ForwardErrorCorrection::Packet; in ReceivePackets()
73 memcpy(duplicatePacket->pkt->data, receivedPacket->pkt->data, in ReceivePackets()
74 receivedPacket->pkt->length); in ReceivePackets()
75 duplicatePacket->pkt->length = receivedPacket->pkt->length; in ReceivePackets()
292 receivedPacket->pkt = new ForwardErrorCorrection::Packet; in TEST()
295 receivedPacket->pkt->length = mediaPacket->length; in TEST()
296 memcpy(receivedPacket->pkt->data, mediaPacket->data, in TEST()
316 receivedPacket->pkt = new ForwardErrorCorrection::Packet; in TEST()
320 receivedPacket->pkt->length = fecPacket->length; in TEST()
321 memcpy(receivedPacket->pkt->data, fecPacket->data, in TEST()
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/jni-headers/
DjdwpTransport.h161 jdwpPacket *pkt);
165 const jdwpPacket* pkt);
216 jdwpTransportError ReadPacket(jdwpPacket *pkt) { in ReadPacket()
217 return functions->ReadPacket(this, pkt); in ReadPacket()
220 jdwpTransportError WritePacket(const jdwpPacket* pkt) { in WritePacket()
221 return functions->WritePacket(this, pkt); in WritePacket()
/external/libgdx/extensions/gdx-freetype/jni/jni-headers/
DjdwpTransport.h161 jdwpPacket *pkt);
165 const jdwpPacket* pkt);
216 jdwpTransportError ReadPacket(jdwpPacket *pkt) { in ReadPacket()
217 return functions->ReadPacket(this, pkt); in ReadPacket()
220 jdwpTransportError WritePacket(const jdwpPacket* pkt) { in WritePacket()
221 return functions->WritePacket(this, pkt); in WritePacket()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/jni-headers/
DjdwpTransport.h161 jdwpPacket *pkt);
165 const jdwpPacket* pkt);
216 jdwpTransportError ReadPacket(jdwpPacket *pkt) { in ReadPacket()
217 return functions->ReadPacket(this, pkt); in ReadPacket()
220 jdwpTransportError WritePacket(const jdwpPacket* pkt) { in WritePacket()
221 return functions->WritePacket(this, pkt); in WritePacket()
/external/libgdx/gdx/jni/jni-headers/
DjdwpTransport.h161 jdwpPacket *pkt);
165 const jdwpPacket* pkt);
216 jdwpTransportError ReadPacket(jdwpPacket *pkt) { in ReadPacket()
217 return functions->ReadPacket(this, pkt); in ReadPacket()
220 jdwpTransportError WritePacket(const jdwpPacket* pkt) { in WritePacket()
221 return functions->WritePacket(this, pkt); in WritePacket()
/external/libgdx/extensions/gdx-bullet/jni/jni-headers/
DjdwpTransport.h161 jdwpPacket *pkt);
165 const jdwpPacket* pkt);
216 jdwpTransportError ReadPacket(jdwpPacket *pkt) { in ReadPacket()
217 return functions->ReadPacket(this, pkt); in ReadPacket()
220 jdwpTransportError WritePacket(const jdwpPacket* pkt) { in WritePacket()
221 return functions->WritePacket(this, pkt); in WritePacket()

12345