]> git.llucax.com Git - z.facultad/75.74/practicos.git/blobdiff - practicas/pipi/src/ipheader.cpp
Se emprolija un poco el terreno:
[z.facultad/75.74/practicos.git] / practicas / pipi / src / ipheader.cpp
index 0fbfca2cefa4d2e07ca9bf2e55ecc22a2fa78766..facc22bbe5af525c0596970f81e8de4b49b3440f 100644 (file)
@@ -44,7 +44,7 @@ void IPHeader::do_checksum()
 std::ostream& operator<<(std::ostream& os, const IPHeader& iph)
 {
     return os
-        << "version=" << iph.version
+        << "version=" << unsigned(iph.version)
         << " total_len=" << iph.total_len
         << " id=" << iph.id
         << " DF=" << bool(iph.df)