docu fix for Packet.as<>()
[senf.git] / Packets / DefaultBundle / EthernetPacket.cc
index 78fe56c..b3ba75b 100644 (file)
@@ -51,11 +51,11 @@ prefix_ void senf::EthernetPacketType::dump(packet p, std::ostream & os)
         os << "Ethernet II (DIX)";
     else
         os << "Ethernet 802.3 (bad ethertype >1500 and <1536)";
-    os << ": \n"
-       << "  destination : " << p->destination() << "\n"
-       << "  source      : " << p->source() << "\n"
-       << "  type/length : 0x" 
-       << std::hex << std::setw(4) << std::setfill('0') << p->type_length() << "\n";
+    os <<     ": \n"
+       <<     "  destination             : " << p->destination() << "\n"
+       <<     "  source                  : " << p->source() << "\n"
+       <<     "  type/length             : 0x" 
+       <<     std::hex << std::setw(4) << std::setfill('0') << p->type_length() << "\n";
 }
 
 prefix_ senf::PacketInterpreterBase::factory_t senf::EthernetPacketType::nextPacketType(packet p)
@@ -81,12 +81,12 @@ prefix_ void senf::EthernetPacketType::finalize(packet p)
 prefix_ void senf::EthVLanPacketType::dump(packet p, std::ostream & os)
 {
     boost::io::ios_all_saver ias(os);
-    os << "Ethernet 802.1q (VLAN):\n"
-       << "  priority      : " << p->priority() << "\n"
-       << "  cfi           : " << p->cfi() << "\n"
-       << "  vlan-ID       : " << p->vlanId() << "\n"
-       << "  ethertype     : 0x" 
-       << std::hex << std::setw(4) << std::setfill('0') << p->type() << "\n";
+    os <<     "Ethernet 802.1q (VLAN):\n"
+       <<     "  priority                : " << p->priority() << "\n"
+       <<     "  cfi                     : " << p->cfi() << "\n"
+       <<     "  vlan-ID                 : " << p->vlanId() << "\n"
+       <<     "  ethertype               : 0x" 
+       <<     std::hex << std::setw(4) << std::setfill('0') << p->type() << "\n";
 }
 
 prefix_ void senf::EthVLanPacketType::finalize(packet p)