moved Sniffer into new Examples directory
[senf.git] / Packets / UDPPacket.hh
index 75cdf79..2f54e93 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
@@ -32,9 +32,9 @@
 //#include "UDPPacket.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
 
-namespace satcom {
-namespace pkf {
-    
+namespace senf {
+
+    // See RFC768
     template <class Iterator=nil, class IPacket=nil>
     struct Parse_UDP : public ParserBase<Iterator,IPacket>
     {
@@ -49,8 +49,8 @@ namespace pkf {
 
         ///////////////////////////////////////////////////////////////////////////
 
-        typedef Parse_UInt16 < Iterator > Parse_16bit;  
-        
+        typedef Parse_UInt16 < Iterator > Parse_16bit;
+
         Parse_16bit source()          const { return Parse_16bit      (this->i()     ); }
         Parse_16bit destination()     const { return Parse_16bit      (this->i() + 2 ); }
         Parse_16bit length()          const { return Parse_16bit      (this->i() + 4 ); }
@@ -59,7 +59,7 @@ namespace pkf {
     };
 
     class UDPPacket
-        : public Packet, 
+        : public Packet,
           public Parse_UDP<Packet::iterator, UDPPacket>
     {
     public:
@@ -80,7 +80,7 @@ namespace pkf {
 
         friend class Packet;
     };
-}}
+}
 
 
 ///////////////////////////////hh.e////////////////////////////////////////
@@ -92,5 +92,8 @@ namespace pkf {
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
 // End: