eth.find<UDPPacket>() == udp; // true
udp.find<EthernetPacket>(); // throws InvalidPacketChainException
- udp.find<EthernetPacket>(senf::nothrow); // An in-valid senf::Packet which tests as 'false'
+ udp.find<EthernetPacket>(senf::nothrow); // An in-valid() senf::Packet which tests as 'false'
udp.find<UDPPacket()> == udp; // true
udp.first<IPv4Packet>(); // throws InvalidPacketChainException
\code
senf::PacketSocketHandle sock ("eth0");
- senf::EthernetPacket packet (senf::EthernetPacket::create(senf::Packet::noinit));
+ senf::EthernetPacket packet (senf::EthernetPacket::create(senf::noinit));
sock.read(packet.data(),0u);
\endcode