Lines Matching defs:packet

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)
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 away!!\n");
1606 // gBufferModule->free(packet);
1613 NetBufferPrepend<uint8> bufferHeader(packet);
1624 NetBufferPrepend<uint16> bufferHeader(packet);
1637 // check if packet is too big for device
1638 uint32 length = packet->size;
1641 dprintf("packet too large!\n");
1642 gBufferModule->free(packet);
1649 return SendToNext(packet, 0);
1654 gBufferModule->free(packet);
1660 /*! \brief Receives a packet.
1668 \param packet The packet.
1669 \param protocolNumber The packet's protocol number.
1674 - \c PPP_REJECTED: No protocol handler could be found for this packet.
1675 - \c PPP_DISCARDED: The protocol handler(s) did not handle this packet.
1678 KPPPInterface::Receive(net_buffer *packet, uint16 protocolNumber)
1682 if (!packet)
1692 TRACE("%s::%s: receiving IP packet\n", __FILE__, __func__);
1696 return gStackModule->fifo_enqueue_buffer(&(dev->ppp_fifo), packet);
1707 // if (packet->m_flags & M_PKTHDR && Ifnet() != NULL)
1708 // packet->m_pkthdr.rcvif = Ifnet();
1710 // Find handler and let it parse the packet.
1712 // the handler might be upped by this packet.
1724 result = protocol->Receive(packet, protocolNumber);
1733 // maybe the parent interface can handle the packet
1735 return Parent()->Receive(packet, protocolNumber);
1738 gBufferModule->free(packet);
1741 StateMachine().RUCEvent(packet, protocolNumber);
1747 /*! \brief Receives a base PPP packet from the device.
1749 KPPPDevice should call this method when it receives a packet. \n
1752 \param packet The packet.
1757 - \c PPP_REJECTED: No protocol handler could be found for this packet.
1758 - \c PPP_DISCARDED: The protocol handler(s) did not handle this packet.
1761 KPPPInterface::ReceiveFromDevice(net_buffer *packet)
1765 if (!packet)
1769 gBufferModule->free(packet);
1773 uint32 length = packet->size;
1775 NetBufferHeaderReader<uint16> bufferHeader(packet);
1788 NetBufferPrepend<uint8> bufferprepend(packet);
1790 gBufferModule->free(packet);
1804 return Receive(packet, protocolNumber);