// Custom includes
#include <sys/socket.h>
#include <netpacket/packet.h>
-#include "Socket/SocketPolicy.hh"
-#include "Socket/FileHandle.hh"
-#include "Socket/Protocols/GenericAddressingPolicy.hh"
+#include "../../../Socket/SocketPolicy.hh"
+#include "../../../Socket/FileHandle.hh"
+#include "../../../Socket/Protocols/GenericAddressingPolicy.hh"
#include "MACAddress.hh"
//#include "LLAddressing.mpp"
class only allows changing those fields which need to be changed. The other fields are
read-only. They are filled by the operating system when receiving a packet
+ \nosubgrouping
*/
class LLSocketAddress
{
public:
/** \brief Valid pkttype() values
- These are the possible values returned by arptype()
+ These are the possible values returned by pkttype()
*/
enum PktType { Undefined = 0
, Host = PACKET_HOST /**< Packet destined for this host */
, Outgoing = PACKET_OUTGOING /**< Packet sent out from this host */
};
+ ///////////////////////////////////////////////////////////////////////////
+ ///\name Structors and default members
+ ///@{
+
LLSocketAddress(); ///< Create empty address
explicit LLSocketAddress(unsigned proto, std::string const & iface="");
///< Create address for \c bind()
\param addr Address to send data to
\param iface Interface to send packet from */
+ ///@}
+ ///////////////////////////////////////////////////////////////////////////
+
void clear(); ///< Clear the address
unsigned protocol() const; ///< Return address protocol (ethertype)