Searched refs:packet (Results 1 - 25 of 65) sorted by last modified time

123

/haiku/src/add-ons/kernel/busses/usb/
H A Dohci.cpp1209 // this is the last td of the transfer or a short packet
1328 uint32 packet = 0; local
1371 for (size_t i = 0; i < frameCount; i++, packet++) {
1373 = &isochronousData->packet_descriptors[packet];
1885 // Set the maximum packet size
2234 // the last packet may be shorter than other ones in this transfer
H A Dehci.cpp1003 // a short packet condition existed on this descriptor
1959 // a short packet condition existed on this descriptor,
2949 uint32 packet = 0; local
2959 && packet < isochronousData->packet_count; j++) {
2967 isochronousData->packet_descriptors[packet].actual_length
2971 isochronousData->packet_descriptors[packet].status = B_OK;
2973 isochronousData->packet_descriptors[packet].status = B_ERROR;
3002 // skip to next packet offset
3023 packet++;
3027 TRACE("ReadIsochronousDescriptorChain packet coun
[all...]
/haiku/src/bin/network/traceroute/
H A Dtraceroute.c25 * Attempt to trace the route an ip packet would follow to some
277 /* What a GRE packet header looks like */
288 /* For GRE, we prepare what looks like a PPTP packet */
298 /* Data section of the probe packet */
300 u_char seq; /* sequence number of this packet */
301 u_char ttl; /* ttl packet left with */
302 struct timeval tv; /* time packet left */
305 u_char packet[512]; /* last inbound (icmp) packet */ variable
307 struct ip *outip; /* last output ip packet */
1844 sctp_crc32c(const void *packet, u_int32_t len) argument
[all...]
/haiku/src/bin/network/ping/
H A Dping6.c70 * measure round-trip-delays and packet loss across network paths.
211 static struct sockaddr_in6 src; /* src addr of this packet */
227 static u_char *packet = NULL; variable
237 static int waittime = MAXWAIT; /* timeout for each packet */
536 case 's': /* size of packet to send */
786 if (!(packet = (u_char *)malloc((u_int)packlen)))
787 err(1, "Unable to allocate packet");
920 /* set IP6 packet options */
1207 iov[0].iov_base = (caddr_t)packet;
1242 pr_pack(packet, c
[all...]
H A Dping.c39 * measure round-trip-delays and packet loss across network paths.
191 static int waittime = MAXWAIT; /* timeout for each packet */
221 u_char *datap, packet[IP_MAXPACKET] __aligned(4);
337 case 'G': /* Maximum packet size for ping sweep */
340 errx(EX_USAGE, "invalid packet size: `%s'",
346 "packet size too large: %d > %u",
351 case 'g': /* Minimum packet size for ping sweep */
354 errx(EX_USAGE, "invalid packet size: `%s'",
360 "packet size too large: %d > %u",
371 errx(EX_USAGE, "invalid packet siz
1047 u_char *packet; local
[all...]
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6.cpp55 // slots in the fragment packet's hash
469 panic("ipv6 packet reassembly did not work correctly.");
481 FragmentPacket* packet = (FragmentPacket*)data; local
482 TRACE("Assembling FragmentPacket %p timed out!", packet);
485 sFragmentHash.Remove(packet);
488 if (!packet->fFragments.IsEmpty()) {
490 sDomain->module->error_reply(NULL, packet->fFragments.First(),
494 delete packet;
533 \return B_OK if everything went well; if it could reassemble the packet,
560 FragmentPacket* packet local
[all...]
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4.cpp54 // slots in the fragment packet's hash
430 panic("ipv4 packet reassembly did not work correctly.");
442 FragmentPacket* packet = (FragmentPacket*)data; local
443 TRACE("Assembling FragmentPacket %p timed out!", packet);
446 sFragmentHash.Remove(packet);
449 if (!packet->fFragments.IsEmpty()) {
451 sDomain->module->error_reply(NULL, packet->fFragments.First(),
455 delete packet;
534 \return B_OK if everything went well; if it could reassemble the packet, \a _buffer
553 FragmentPacket* packet local
[all...]
/haiku/src/add-ons/media/plugins/ffmpeg/
H A DAVCodecEncoder.cpp588 AVPacket* packet = av_packet_alloc(); local
591 packet->data = NULL;
592 packet->size = 0;
605 av_packet_free(&packet);
615 gotPacket = avcodec_receive_packet(fCodecContext, packet) == 0;
619 ret = avcodec_receive_packet(fCodecContext, packet);
628 av_packet_free(&packet);
636 info->start_time = packet->pts;
638 if (packet->flags & AV_PKT_FLAG_KEY)
643 // We got a packet ou
[all...]
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp1038 // #pragma mark - packet capture
1605 uint32 packet = strtoul(argv[i], NULL, 0); local
1606 if (packet == 0) {
1607 fprintf(stderr, "invalid packet number: %s\n", argv[i]);
1611 sDropList.insert(packet);
1615 puts("usage: drop <packet-number> [...]\n"
1618 "Specifiying -f flushes the drop list, -r sets the probability a packet\n"
1662 uint32 packet = strtoul(argv[i], NULL, 0); local
1663 if (packet == 0) {
1664 fprintf(stderr, "invalid packet numbe
[all...]
/haiku/src/add-ons/kernel/network/devices/dialup/
H A Ddialup.cpp376 dprintf("try to send HDLC packet of %" B_PRIu32 " bytes "
384 uint8* packet = NULL; local
402 // encode HDLC packet
405 packet = (uint8*)malloc(2 + 2 * buffer->size);
406 if (packet == NULL) {
418 packet[packetSize++] = HDLC_FLAG_SEQUENCE;
430 packet[packetSize++] = HDLC_CONTROL_ESCAPE;
431 packet[packetSize++] = data[i] ^ 0x20;
433 packet[packetSize++] = data[i];
440 packet[packetSiz
477 uint8* packet = (uint8*)malloc(2 + 2 * buffer->size); local
[all...]
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp185 specification_packet *packet = (specification_packet *)kDataSegmentScratch;
186 if (packet->media_type != 0)
191 dprintf(" size: %#x\n", packet->size);
192 dprintf(" media type: %u\n", packet->media_type);
193 dprintf(" drive_number: %u\n", packet->drive_number);
194 dprintf(" controller index: %u\n", packet->controller_index);
195 dprintf(" start emulation: %lu\n", packet->start_emulation);
196 dprintf(" device_specification: %u\n", packet->device_specification);
213 && (regs.ecx & 0x01 /* supports device access using packet */) != 0;
647 struct disk_address_packet *packet local
774 struct disk_address_packet* packet local
[all...]
/haiku/src/add-ons/media/media-add-ons/dvb/
H A DTransportStreamDemux.cpp99 printf("packet %lld sync byte error "
111 // printf("invalid packet %lld (transport_error_indicator)\n", fCount);
176 // flush old packet
230 printf("error in audio packet %02x %02x %02x %02x\n", data[0], data[1], data[2], data[3]);
236 printf("invalid audio packet %02x %02x %02x %02x\n", data[0], data[1], data[2], data[3]);
280 // flush old packet
341 printf("error in video packet %02x %02x %02x %02x\n", data[0], data[1], data[2], data[3]);
347 printf("invalid video packet %02x %02x %02x %02x\n", data[0], data[1], data[2], data[3]);
414 TransportStreamDemux::AddData(Packet *packet) argument
416 bigtime_t end_time = packet
[all...]
H A DDVBMediaNode.cpp1500 Packet *packet = new Packet(data, size, end_time); local
1502 err = fCardDataQueue->Insert(packet);
1504 delete packet;
1517 Packet *packet; local
1518 err = fCardDataQueue->Remove(&packet);
1524 // packet->TimeStamp() is the end time of the capture
1525 fDemux->AddData(packet);
1535 Packet *packet; local
1536 err = fMpegTsQueue->Remove(&packet);
1542 // TRACE("mpeg ts packet, siz
1561 Packet *packet; local
1602 Packet *packet; local
2134 Packet *packet; local
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_keyboard.cpp239 read_keyboard_packet(raw_key_info *packet, bool isDebugger) argument
258 // Give the debugger a chance to read this packet
263 if (packet_buffer_read(sKeyBuffer, (uint8 *)packet, sizeof(*packet)) == 0) {
264 TRACE("ps2: read_keyboard_packet, Error reading packet: %s\n",
270 packet->keycode, packet->is_keydown ? "true" : "false");
491 raw_key_info packet;
492 status_t status = read_keyboard_packet(&packet,
498 return user_memcpy(buffer, &packet, sizeo
[all...]
H A Dps2_elantech.cpp71 uint8 packet[PS2_PACKET_ELANTECH]; local
83 if (packet_buffer_read(cookie->ring_buffer, packet,
89 if (cookie->crcEnabled && (packet[3] & 0x08) != 0) {
92 } else if (!cookie->crcEnabled && ((packet[0] & 0x0c) != 0x04
93 || (packet[3] & 0x1c) != 0x10)) {
98 uint8 packet_type = packet[3] & 3;
99 TRACE("ELANTECH: packet type %d\n", packet_type);
100 TRACE("ELANTECH: packet content 0x%02x%02x%02x%02x%02x%02x\n",
101 packet[0], packet[
[all...]
H A Dps2_standard_mouse.cpp31 A packet read from the mouse data port is composed of
45 Intellimouse mice send a four byte packet, where the first three
98 //! Converts a packet received by the mouse to a "movement".
100 ps2_packet_to_movement(standard_mouse_cookie* cookie, uint8 packet[], argument
103 int buttons = packet[0] & 7;
104 int xDelta = ((packet[0] & 0x10) ? ~0xff : 0) | packet[1];
105 int yDelta = ((packet[0] & 0x20) ? ~0xff : 0) | packet[2];
122 yDeltaWheel = packet[
166 uint8 packet[PS2_MAX_PACKET_SIZE]; local
[all...]
/haiku/src/add-ons/kernel/file_systems/nfs/
H A Dnfs_add_on.h89 extern uint8 *send_rpc_call(fs_nspace *ns, const struct sockaddr_in *addr, int32 prog, int32 vers, int32 proc, const struct XDROutPacket *packet);
H A Dnfs_add_on.c246 int32 vers, int32 proc, const struct XDROutPacket *packet)
287 XDROutPacketAppend (&rpc_call, packet);
245 send_rpc_call(fs_nspace *ns, const struct sockaddr_in *addr, int32 prog, int32 vers, int32 proc, const struct XDROutPacket *packet) argument
H A DXDROutPacket.c13 XDROutPacketBuffer(struct XDROutPacket *packet) argument
15 return packet->fBuffer;
19 XDROutPacketLength(struct XDROutPacket *packet) argument
21 return packet->fLength;
25 XDROutPacketInit(struct XDROutPacket *packet) argument
27 packet->fBuffer=NULL;
28 packet->fSize=packet->fLength=0;
32 XDROutPacketDestroy(struct XDROutPacket *packet) argument
34 free (packet
38 XDROutPacketGrow(struct XDROutPacket *packet, size_t size) argument
50 XDROutPacketAddInt32(struct XDROutPacket *packet, int32 val) argument
59 XDROutPacketAddDynamic(struct XDROutPacket *packet, const void *data, size_t size) argument
67 XDROutPacketAddFixed(struct XDROutPacket *packet, const void *data, size_t size) argument
82 XDROutPacketAddString(struct XDROutPacket *packet, const char *string) argument
89 XDROutPacketAppend(struct XDROutPacket *me, const struct XDROutPacket *packet) argument
97 XDROutPacketClear(struct XDROutPacket *packet) argument
[all...]
H A DXDRInPacket.c14 XDRInPacketInit(struct XDRInPacket *packet) argument
16 packet->fBuffer=NULL;
17 packet->fOffset=0;
21 XDRInPacketDestroy(struct XDRInPacket *packet) argument
23 free (packet->fBuffer);
27 XDRInPacketGetInt32(struct XDRInPacket *packet) argument
29 int32 val=B_BENDIAN_TO_HOST_INT32(*((int32 *)&packet->fBuffer[packet->fOffset]));
31 packet->fOffset+=4;
38 XDRInPacketGetFixed(struct XDRInPacket *packet, voi argument
51 XDRInPacketGetDynamic(struct XDRInPacket *packet, void *buffer, size_t *len) argument
59 XDRInPacketGetString(struct XDRInPacket *packet) argument
70 XDRInPacketSetTo(struct XDRInPacket *packet, uint8 *buffer, size_t offset) argument
[all...]
H A DXDROutPacket.h16 void XDROutPacketInit (struct XDROutPacket *packet);
17 void XDROutPacketDestroy (struct XDROutPacket *packet);
19 void XDROutPacketGrow (struct XDROutPacket *packet, size_t size);
20 void XDROutPacketAddInt32 (struct XDROutPacket *packet, int32 val);
21 status_t XDROutPacketAddDynamic (struct XDROutPacket *packet, const void *data, size_t size);
22 status_t XDROutPacketAddFixed (struct XDROutPacket *packet, const void *data, size_t size);
23 status_t XDROutPacketAddString (struct XDROutPacket *packet, const char *string);
24 void XDROutPacketAppend (struct XDROutPacket *me, const struct XDROutPacket *packet);
26 const uint8 *XDROutPacketBuffer (struct XDROutPacket *packet);
27 size_t XDROutPacketLength (struct XDROutPacket *packet);
[all...]
H A DXDRInPacket.h13 void XDRInPacketInit (struct XDRInPacket *packet);
14 void XDRInPacketDestroy (struct XDRInPacket *packet);
15 int32 XDRInPacketGetInt32 (struct XDRInPacket *packet);
16 status_t XDRInPacketGetFixed (struct XDRInPacket *packet, void *buffer, size_t len);
17 status_t XDRInPacketGetDynamic (struct XDRInPacket *packet, void *buffer, size_t *_len);
18 char *XDRInPacketGetString (struct XDRInPacket *packet);
19 void XDRInPacketSetTo (struct XDRInPacket *packet, uint8 *buffer, size_t offset);
/haiku/src/add-ons/print/transports/ipp/
H A DIpp.cpp87 char packet[1541]; local
92 while ((len=fEndpoint->ReceiveFrom(packet, sizeof(packet) -1, srcAddress)) > 0) {
93 packet[len] = '\0';
95 // Verify packet format
96 if (sscanf(packet, "%" B_SCNx32 "%" B_SCNx32 "%1023s", &type, &state,
107 if ((pos=strchr(packet, '"')) != NULL) {
/haiku/src/add-ons/kernel/network/stack/
H A Dlink.cpp86 LocalDatagramSocket("packet capture", socket),
247 LinkProtocol::_MonitorData(net_device_monitor* monitor, net_buffer* packet) argument
249 return ((LinkProtocol*)monitor->cookie)->EnqueueClone(packet);
/haiku/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/
H A Dbwimac.c703 const uint32_t *packet; local
709 packet = packet_11a;
713 packet = packet_11bg;
718 TMPLT_WRITE_4(mac, i * 4, packet[i]);

Completed in 150 milliseconds

123