/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | KPPPDevice.cpp | 10 It encapsulates the packet and sends it over a line to the other end. 11 The device is the first layer that receives a packet. 24 \param overhead Length of the header that is prepended to each packet. 92 KPPPDevice::Receive(net_buffer *packet, uint16 protocolNumber) argument 94 // let the interface handle the packet 96 return Interface().ReceiveFromDevice(packet); 98 return Interface().Receive(packet, protocolNumber);
|
H A D | KPPPConfigurePacket.cpp | 24 \param code The code value (e.g.: PPP_CONFIGURE_REQUEST) of this packet. 33 //! Decodes a packet and adds its items to this object. 34 KPPPConfigurePacket::KPPPConfigurePacket(net_buffer *packet) argument 36 // decode packet 37 NetBufferHeaderReader<ppp_lcp_packet> bufferhead(packet); 48 if (length < 6 || length > packet->size) 75 //! Sets the packet's code value (e.g.: PPP_CONFIGURE_REQUEST). 89 /*! \brief Adds a new configure item to this packet. 124 //! Removes an item. The item \e must belong to this packet. 167 /*! \brief Converts this packet int [all...] |
H A D | KPPPInterface.cpp | 1535 /*! \brief Sends a packet to the device. 1543 \param packet The packet. 1544 \param protocolNumber The packet's protocol number. 1551 KPPPInterface::Send(net_buffer *packet, uint16 protocolNumber) argument 1555 if (!packet) 1563 gBufferModule->free(packet); 1576 // gBufferModule->free(packet); 1602 TRACE("send IP packet!\n"); 1605 ERROR("KPPPInterface::Send(): Device is down, throw packet awa 1678 Receive(net_buffer *packet, uint16 protocolNumber) argument 1761 ReceiveFromDevice(net_buffer *packet) argument [all...] |
/haiku/src/add-ons/kernel/network/ppp/pppoe/ |
H A D | pppoe.cpp | 161 pppoe_input(void *cookie, net_device *_device, net_buffer *packet) argument 163 if (!packet) 166 NetBufferHeaderReader<pppoe_header> bufferheader(packet); 174 TRACE("PADI packet received, ignoreing!\n"); 175 gBufferModule->free(packet); 182 struct sockaddr_dl& source = *(struct sockaddr_dl*)packet->source; 199 sockaddr_dl& linkAddress = *(sockaddr_dl*)packet->source; 212 DiscoveryPacket discovery(packet, ETHER_HDR_LEN); 214 ERROR("PPPoE: received corrupted discovery packet!\n"); 215 // gBufferModule->free(packet); [all...] |
H A D | PPPoEDevice.h | 56 virtual status_t Send(net_buffer *packet, uint16 protocolNumber = 0); 57 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber = 0);
|
H A D | PPPoE.h | 75 extern void dump_packet(net_buffer *packet);
|
H A D | DiscoveryPacket.h | 47 DiscoveryPacket(net_buffer *packet, uint32 start = 0);
|
/haiku/headers/private/kernel/boot/net/ |
H A D | RemoteDisk.h | 41 uint8 expectedReply, UDPPacket **packet); 43 uint8 expectedReply, UDPPacket **packet);
|
H A D | TCP.h | 35 void SetNext(TCPPacket* packet); 76 void ProcessPacket(TCPPacket* packet); 81 status_t _Send(TCPPacket* packet, bool enqueue = true); 83 void _EnqueueOutgoingPacket(TCPPacket* packet);
|
H A D | UDP.h | 61 status_t Receive(UDPPacket **packet, bigtime_t timeout = 0); 63 void PushPacket(UDPPacket *packet);
|
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/ |
H A D | KPPPDevice.h | 96 /*! \brief Sends a packet. 98 This should enqueue the packet and return immediately (never block). 99 The device is responsible for freeing the packet by calling \c m_freem(). 101 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0; 102 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
|
H A D | KPPPLCPExtension.h | 45 //! Returns the LCP packet code this extension can handle. 53 //! Must be overridden. Called when an LCP packet with your code is received. 54 virtual status_t Receive(net_buffer *packet, uint8 code) = 0;
|
H A D | KPPPConfigurePacket.h | 31 KPPPConfigurePacket(net_buffer *packet); 35 //! Returns this packet's code value. 39 //! Sets the packet's (unique) ID. Use KPPPLCP::NextID() to get a unique ID. 42 //! Returns this packet's ID. 48 //! Returns number of items in this packet.
|
H A D | KPPPProtocol.h | 107 //! Encapsulate the packet with the given protocol number. 108 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0; 109 //! Receive a packet with the given protocol number. 110 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber) = 0;
|
H A D | KPPPLCP.h | 30 //! LCP packet header structure. 81 //! Returns the LCP packet handler or \c NULL. 88 virtual status_t Send(net_buffer *packet, 90 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber);
|
H A D | KPPPInterface.h | 103 //! Used for reporting that a packet was send/received (updates idle time). 106 //! Returns the time in seconds when the last packet was received. 231 virtual status_t Send(net_buffer *packet, uint16 protocolNumber); 232 // sends the packet to the next handler (normally the device) 233 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber); 235 status_t ReceiveFromDevice(net_buffer *packet);
|
/haiku/src/add-ons/kernel/network/ppp/modem/ |
H A D | ModemDevice.h | 62 virtual status_t Send(net_buffer *packet, uint16 protocolNumber = 0); 65 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber = 0);
|
/haiku/src/add-ons/kernel/network/devices/dialup/ |
H A D | dialup.cpp | 376 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/add-ons/kernel/bus_managers/ata/ |
H A D | ATAPIDevice.cpp | 54 TRACE_ERROR("failed to send packet request\n"); 60 // wait for device to get ready for packet transmission 71 // make sure device really asks for command packet 77 TRACE_ERROR("device doesn't ask for packet\n"); 85 // some old drives need a delay before submitting the packet 88 // write packet 90 TRACE_ERROR("failed to write packet\n"); 216 fTaskFile.packet.lun = 0; 235 fTaskFile.packet.dma = request->UseDMA() ? 1 : 0; 236 fTaskFile.packet [all...] |
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | devices.cpp | 185 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 D | TransportStreamDemux.cpp | 99 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 D | TransportStreamDemux.h | 45 void AddData(Packet *packet);
|
H A D | DVBMediaNode.cpp | 1500 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/media/plugins/ffmpeg/ |
H A D | AVCodecEncoder.cpp | 588 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/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_keyboard.cpp | 239 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...] |