X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDefaultBundle%2FEthernetPacket.hh;h=8286e88fc1c180a054d3245c329cc1b5674e7741;hb=6165e70feef7199dc3fe96a881d055f6a2999b00;hp=df67feacf5fe991a4b5f69176ef68385193d1991;hpb=a1001797645cc68c869ef296f5e9ba13aa8e80c4;p=senf.git diff --git a/Packets/DefaultBundle/EthernetPacket.hh b/Packets/DefaultBundle/EthernetPacket.hh index df67fea..8286e88 100644 --- a/Packets/DefaultBundle/EthernetPacket.hh +++ b/Packets/DefaultBundle/EthernetPacket.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Thorsten Horstmann +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // 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 @@ -23,8 +23,8 @@ /** \file \brief EthernetPacket public header */ -#ifndef HH_EthernetPacket_ -#define HH_EthernetPacket_ 1 +#ifndef HH_SENF_Packets_DefaultBundle_EthernetPacket_ +#define HH_SENF_Packets_DefaultBundle_EthernetPacket_ 1 // Custom includes #include @@ -96,6 +96,7 @@ namespace senf { \par Fields: \ref EthernetPacketParser + \image html EthernetPacket.png \par Associated registries: \ref EtherTypes @@ -109,11 +110,10 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { -#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef EthernetPacketParser parser; -#endif + using mixin::nextPacketRange; using mixin::initSize; using mixin::init; @@ -152,7 +152,8 @@ namespace senf { \par Fields: \ref EthVLanPacketParser - + \image html EthVLanPacket.png + \par Associated registries: \ref EtherTypes @@ -165,11 +166,10 @@ namespace senf { : public PacketTypeBase, public PacketTypeMixin { -#ifndef DOXYGEN typedef PacketTypeMixin mixin; typedef ConcretePacket packet; typedef EthVLanPacketParser parser; -#endif + using mixin::nextPacketRange; using mixin::nextPacketType; using mixin::initSize; @@ -177,7 +177,7 @@ namespace senf { /** \todo Add LLC/SNAP support -> only use the registry for type() values >=1536, otherwise expect an LLC header */ - static registry_key_t nextPacketKey(packet p) + static key_t nextPacketKey(packet p) { return p->type(); } static void dump(packet p, std::ostream & os);