/haiku/src/add-ons/kernel/file_systems/nfs/ |
H A D | XDROutPacket.c | 13 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 D | XDRInPacket.c | 14 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 D | XDROutPacket.h | 16 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 D | XDRInPacket.h | 13 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/system/boot/loader/net/ |
H A D | TCP.cpp | 181 TCPPacket::SetNext(TCPPacket* packet) argument 183 fNext = packet; 219 for (TCPPacket* packet = fFirstPacket; 220 packet != NULL && windowSize > packet->DataSize(); 221 packet = packet->Next()) 222 windowSize -= packet->DataSize(); 246 TCPPacket* packet = new(nothrow) TCPPacket(); 247 if (packet 278 TCPPacket* packet = new(nothrow) TCPPacket(); local 310 TCPPacket* packet = NULL; local 420 ProcessPacket(TCPPacket* packet) argument 535 TCPPacket* packet = fFirstPacket; local 566 _Send(TCPPacket* packet, bool enqueue) argument 602 _EnqueueOutgoingPacket(TCPPacket* packet) argument 639 TCPPacket* packet = new(nothrow) TCPPacket(); local 770 TCPPacket* packet = new(nothrow) TCPPacket(); local [all...] |
H A D | RemoteDisk.cpp | 109 // Check whether the current packet already contains the beginning of the 125 UDPPacket *packet; local 127 &packet); 132 int16 packetSize = ntohs(((remote_disk_header*)packet->Data())->size); 141 // make the reply packet the current packet 143 fPacket = packet; 145 // read from the packet 216 UDPPacket *packet; local 218 &request, sizeof(request), REMOTE_DISK_HELLO_REPLY, &packet); 284 UDPPacket *packet; local 312 _SendRequest(remote_disk_header *request, size_t size, uint8 expectedReply, UDPPacket **packet) argument [all...] |
H A D | UDP.cpp | 234 UDPSocket::PushPacket(UDPPacket *packet) argument 237 fLastPacket->SetNext(packet); 239 fFirstPacket = packet; 241 fLastPacket = packet; 242 packet->SetNext(NULL); 252 UDPPacket *packet = fFirstPacket; 253 fFirstPacket = packet->Next(); 258 packet->SetNext(NULL); 259 return packet; 325 TRACE(("UDPService::HandleIPPacket(): dropping packet [all...] |
/haiku/src/add-ons/kernel/network/ppp/ipcp/ |
H A D | Protocol.h | 76 virtual status_t Send(net_buffer *packet, 78 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber); 79 status_t ReceiveIPPacket(net_buffer *packet, uint16 protocolNumber); 95 void RCREvent(net_buffer *packet); 96 void RCRGoodEvent(net_buffer *packet); 98 void RCAEvent(net_buffer *packet); 99 void RCNEvent(net_buffer *packet); 100 void RTREvent(net_buffer *packet); 101 void RTAEvent(net_buffer *packet); 102 void RUCEvent(net_buffer *packet); [all...] |
H A D | Protocol.cpp | 47 dump_packet(net_buffer *packet, const char *direction) argument 49 if (!packet) 52 uint8 *data = mtod(packet, uint8*); 56 sprintf((char*) buffer, "Dumping %s packet;len=%ld;pkthdr.len=%d\n", direction, 57 packet->m_len, packet->m_flags & M_PKTHDR ? packet->m_pkthdr.len : -1); 60 for (uint32 index = 0; index < packet->m_len; index++) { 63 if (bufferIndex == 32 || index == packet->m_len - 1) { 231 IPCP::Send(net_buffer *packet, uint1 argument 252 Receive(net_buffer *packet, uint16 protocolNumber) argument 311 ReceiveIPPacket(net_buffer *packet, uint16 protocolNumber) argument 725 RCREvent(net_buffer *packet) argument 835 RCRGoodEvent(net_buffer *packet) argument 929 RCAEvent(net_buffer *packet) argument 1036 RCNEvent(net_buffer *packet) argument 1154 RTREvent(net_buffer *packet) argument 1198 RTAEvent(net_buffer *packet) argument 1242 RUCEvent(net_buffer *packet) argument 1251 RXJBadEvent(net_buffer *packet) argument 1399 SendConfigureAck(net_buffer *packet) argument 1475 SendConfigureNak(net_buffer *packet) argument 1510 net_buffer *packet = gBufferModule->create(256); local 1564 SendCodeReject(net_buffer *packet) argument [all...] |
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/ |
H A D | KPPPLayer.cpp | 9 All packet handlers should derive from this class. It does not define a protocol 59 //! Sends a packet to the next layer in the chain. 61 KPPPLayer::SendToNext(net_buffer *packet, uint16 protocolNumber) const argument 63 if (!packet) 66 // Find the next possible handler for this packet. 70 return Next()->Send(packet, protocolNumber); 72 return Next()->SendToNext(packet, protocolNumber); 75 gBufferModule->free(packet);
|
H A D | KPPPLCP.cpp | 12 settings like the packet MRU. These settings are handled by the KPPPOptionHandler 220 //! Sends a packet to the target (if there is one) or to the interface. 222 KPPPLCP::Send(net_buffer *packet, uint16 protocolNumber) argument 225 return Target()->Send(packet, PPP_LCP_PROTOCOL); 227 return Interface().Send(packet, PPP_LCP_PROTOCOL); 231 //! Decodes the LCP packet and passes it to the KPPPStateMachine or an LCP extension. 233 KPPPLCP::Receive(net_buffer *packet, uint16 protocolNumber) argument 235 if (!packet) 243 NetBufferHeaderReader<ppp_lcp_packet> bufferHeader(packet); 251 net_buffer *copy = gBufferModule->duplicate(packet); [all...] |
H A D | KPPPStateMachine.cpp | 71 //! Creates an ID for the next LCP packet. 172 //! Sends an echo request packet. 181 net_buffer *packet = gBufferModule->create(256); 182 if (packet == NULL) 186 status_t status = gBufferModule->append_size(packet, 1492, &data); 188 gBufferModule->free(packet); 202 status = gBufferModule->trim(packet, sizeof(request) + sizeof(fMagicNumber)); 204 gBufferModule->free(packet); 208 return LCP().Send(packet) == B_OK; 212 //! Sends a discard request packet 218 net_buffer *packet = gBufferModule->create(256); local 925 RCRGoodEvent(net_buffer *packet) argument 1057 RCAEvent(net_buffer *packet) argument 1132 RCNEvent(net_buffer *packet) argument 1210 RTREvent(net_buffer *packet) argument 1260 RTAEvent(net_buffer *packet) argument 1316 RUCEvent(net_buffer *packet, uint16 protocolNumber, uint8 code) argument 1336 RXJGoodEvent(net_buffer *packet) argument 1361 RXJBadEvent(net_buffer *packet) argument 1406 RXREvent(net_buffer *packet) argument 1482 RCREvent(net_buffer *packet) argument 1587 RXJEvent(net_buffer *packet) argument 1755 SendConfigureAck(net_buffer *packet) argument 1788 SendConfigureNak(net_buffer *packet) argument 1873 SendCodeReject(net_buffer *packet, uint16 protocolNumber, uint8 code) argument [all...] |
/haiku/src/add-ons/kernel/network/ppp/pap/ |
H A D | Protocol.cpp | 170 PAP::Send(net_buffer *packet, uint16 protocolNumber) argument 173 TRACE("PAP: we should not send packet!\n"); 174 if (packet != NULL) 175 gBufferModule->free(packet); 181 PAP::Receive(net_buffer *packet, uint16 protocolNumber) argument 183 if (!packet) 189 NetBufferHeaderReader<ppp_lcp_packet> bufferheader(packet); 194 // check if the packet is meant for us: 204 int32 length = packet->size; 210 // packet i 332 RREvent(net_buffer *packet) argument 372 RAEvent(net_buffer *packet) argument 405 RNEvent(net_buffer *packet) argument 452 net_buffer *packet = gBufferModule->create(256); local 479 SendAck(net_buffer *packet) argument 503 SendNak(net_buffer *packet) argument [all...] |
H A D | Protocol.h | 61 virtual status_t Send(net_buffer *packet, uint16 protocolNumber); 62 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber); 74 void RREvent(net_buffer *packet); 75 void RAEvent(net_buffer *packet); 76 void RNEvent(net_buffer *packet); 84 bool SendAck(net_buffer *packet); 85 bool SendNak(net_buffer *packet);
|
/haiku/src/add-ons/media/media-add-ons/dvb/ |
H A D | PacketQueue.h | 38 status_t Insert(Packet *packet); 39 status_t Remove(Packet **packet); 42 status_t Peek(Packet **packet);
|
H A D | PacketQueue.cpp | 41 , fSem(create_sem(0, "packet queue sem")) 70 PacketQueue::Insert(Packet *packet) argument 79 fQueue[fWriteIndex] = packet; 87 PacketQueue::Remove(Packet **packet) argument 97 *packet = fQueue[fReadIndex]; 117 Packet *packet = fQueue[fReadIndex]; local 120 delete packet; 127 PacketQueue::Peek(Packet **packet) argument 137 *packet = new Packet(*fQueue[fReadIndex]); 157 fSem = create_sem(0, "packet queu [all...] |
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/ |
H A D | KPPPStateMachine.h | 120 void RCRGoodEvent(net_buffer *packet); 122 void RCAEvent(net_buffer *packet); 123 void RCNEvent(net_buffer *packet); 124 void RTREvent(net_buffer *packet); 125 void RTAEvent(net_buffer *packet); 126 void RUCEvent(net_buffer *packet, uint16 protocolNumber, 128 void RXJGoodEvent(net_buffer *packet); 129 void RXJBadEvent(net_buffer *packet); 130 void RXREvent(net_buffer *packet); 134 void RCREvent(net_buffer *packet); [all...] |
H A D | KPPPLayer.h | 51 //! Send a packet with the given protocol number. 52 virtual status_t Send(net_buffer *packet, uint16 protocolNumber) = 0; 53 //! Receive a packet with the given protocol number. 54 virtual status_t Receive(net_buffer *packet, uint16 protocolNumber) = 0; 56 status_t SendToNext(net_buffer *packet, uint16 protocolNumber) const; 57 // send the packet to the next layer
|
/haiku/src/add-ons/kernel/network/ppp/pppoe/ |
H A D | PPPoEDevice.cpp | 25 pppoe_input(void *cookie, net_device *_device, net_buffer *packet); 30 dump_packet(net_buffer *packet) argument 32 if (!packet) 35 BufferHeaderReader<uint8> bufferheader(packet); 43 TRACE("Dumping packet;len=%ld;pkthdr.len=%d\n", packet->m_len, 44 packet->m_flags & M_PKTHDR ? packet->m_pkthdr.len : -1); 46 for (uint32 index = 0; index < packet->m_len; index++) { 49 if (bufferIndex == 32 || index == packet 174 net_buffer *packet = discovery.ToNetBuffer(MTU()); local 258 net_buffer *packet = discovery.ToNetBuffer(MTU()); local 279 EthernetIfnet()->module->send_data(EthernetIfnet(), packet); local 310 Send(net_buffer *packet, uint16 protocolNumber) argument 372 Receive(net_buffer *packet, uint16 protocolNumber) argument [all...] |
H A D | DiscoveryPacket.cpp | 20 DiscoveryPacket::DiscoveryPacket(net_buffer *packet, uint32 start) argument 22 // decode packet 23 NetBufferHeaderReader<pppoe_header> bufferheader(packet); 35 if(length > packet->size - PPPoE_HEADER_SIZE) { 36 dprintf("packet size less than pppoe payload\n"); 39 dprintf("packet->size: %" B_PRIu32 "\n", packet->size); 131 net_buffer *packet = gBufferModule->create(256); local 132 if (packet == NULL) { 138 status_t status = gBufferModule->append_size(packet, 149 [all...] |
/haiku/src/add-ons/kernel/network/ppp/modem/ |
H A D | ModemDevice.cpp | 23 dump_packet(net_buffer *packet) argument 25 if (!packet) 28 uint8 *data = mtod(packet, uint8*); 32 TRACE("Dumping packet;len=%ld;pkthdr.len=%d\n", packet->m_len, 33 packet->m_flags & M_PKTHDR ? packet->m_pkthdr.len : -1); 35 for (uint32 index = 0; index < packet->m_len; index++) { 38 if (bufferIndex == 32 || index == packet->m_len - 1) { 142 // decode the packet 406 Send(net_buffer *packet, uint16 protocolNumber) argument 496 net_buffer* packet = gBufferModule->create(length - 2); local 507 Receive(net_buffer *packet, uint16 protocolNumber) argument [all...] |
H A D | Modem.h | 40 extern void dump_packet(net_buffer *packet);
|
/haiku/src/add-ons/kernel/bus_managers/ps2/ |
H A D | ps2_standard_mouse.cpp | 31 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...] |
H A D | ps2_elantech.cpp | 71 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...] |
/haiku/src/add-ons/print/transports/ipp/ |
H A D | Ipp.cpp | 87 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) {
|