X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FRaw%2FLLAddressing.hh;h=e910b95e144b7d3f6e823a9cac1ddd21069f32d2;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=90bbafcf657f68c340c916e7a0e17992b546853b;hpb=ced8f321adf904c31149162de5f6258c971c7466;p=senf.git diff --git a/Socket/Protocols/Raw/LLAddressing.hh b/Socket/Protocols/Raw/LLAddressing.hh index 90bbafc..e910b95 100644 --- a/Socket/Protocols/Raw/LLAddressing.hh +++ b/Socket/Protocols/Raw/LLAddressing.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -30,9 +30,9 @@ // Custom includes #include #include -#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" @@ -51,13 +51,14 @@ namespace senf { 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 */ @@ -68,6 +69,10 @@ namespace senf { , 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() @@ -90,6 +95,9 @@ namespace senf { \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)