added init_fields for TransportPacket
[senf.git] / Packets / MPEGDVBBundle / TransportPacket.cc
index bd416fd..bb065ea 100644 (file)
@@ -1,9 +1,9 @@
-// $Id:DatagramSection.cc 327 2007-07-20 10:03:44Z tho $
+// $Id$
 //
 // Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+//     Thorsten Horstmann <tho@berlios.de>
 //
 // 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
@@ -20,7 +20,8 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Definition of non-inline non-template functions
+/** \file
+    \brief TransportPacket non-inline non-template implementation */
 
 #include "TransportPacket.hh"
 //#include "TransportPacket.ih"
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
 
+prefix_ void senf::TransportPacketParser::init_fields()
+    const
+{
+    sync_byte() = TransportPacketType::SYNC_BYTE;
+    transport_error_indicator() = 0;
+    transport_scrmbl_ctrl() = 0;
+    adaptation_field_ctrl() = 0x1u;
+}
+            
 prefix_ void senf::TransportPacketType::dump(packet p, std::ostream & os)
 {
     os << "TransportPacket:\n"