X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FIpV4Packet.hh;h=b801426d726022ff8593839e234a18e24ba17d76;hb=33157146abaca548e145c577a0840cd1bd427789;hp=0f9e296f61c907caf7bc31bed26d5b1a28e91094;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/IpV4Packet.hh b/Packets/IpV4Packet.hh index 0f9e296..b801426 100644 --- a/Packets/IpV4Packet.hh +++ b/Packets/IpV4Packet.hh @@ -32,8 +32,8 @@ //#include "IpV4Packet.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -namespace satcom { -namespace pkf { +namespace senf { + template struct Parse_IpV4 : public ParserBase @@ -75,16 +75,18 @@ namespace pkf { Parse_32bit destination() const { return Parse_32bit (this->i() + 16 ); } }; - struct IpV4Types { + struct IpTypes { + // See http://www.iana.org/assignments/protocol-numbers + // Also used by IPv6 typedef boost::uint16_t key_t; }; class IpV4Packet : public Packet, public Parse_IpV4, - public PacketRegistryMixin + public PacketRegistryMixin { - using PacketRegistryMixin::registerInterpreter; + using PacketRegistryMixin::registerInterpreter; public: /////////////////////////////////////////////////////////////////////////// // Types @@ -103,7 +105,7 @@ namespace pkf { friend class Packet; }; -}} +} ///////////////////////////////hh.e//////////////////////////////////////// @@ -115,5 +117,5 @@ namespace pkf { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: