17 #ifndef HH_SENF_Socket_Protocols_Raw_LinuxPacketSocketProtocol_ 18 #define HH_SENF_Socket_Protocols_Raw_LinuxPacketSocketProtocol_ 1 36 void mcAdd(std::string
const & interface,
MACAddress const & address)
const;
44 void mcDrop(std::string
const & interface,
MACAddress const & address)
const;
48 void promisc(std::string
const & interface,
bool mode)
const;
MACAddress public header.
unsigned txWrongFormat() const
packets dropped by kernel due to wrong format (too large) since last call
unsigned rxQueueDropped() const
packets dropped by kernel since last call
Socket Protocol base class.
virtual unsigned available() const =0
Return (maximum) number of bytes available for reading without < blocking.
void mcDrop(std::string const &interface, MACAddress const &address) const
Disable reception of a multicast group.
void init_packetSocket(SocketType type, int protocol) const
void promisc(std::string const &interface, bool mode) const
enable/disable promiscuous mode
SocketProtocol and ConcreteSocketProtocol public header.
void mcAdd(std::string const &interface, MACAddress const &address) const
Enable reception of a multicast group.
bool eof() const
Check for end-of-file condition.