]> git.llucax.com Git - z.facultad/75.74/practicos.git/blobdiff - practicas/pipi/src/ipheader.cpp
Se implementa el Resolver.
[z.facultad/75.74/practicos.git] / practicas / pipi / src / ipheader.cpp
index facc22bbe5af525c0596970f81e8de4b49b3440f..60b16831c4ff328dc4570bc7cc381399a15a443b 100644 (file)
@@ -12,7 +12,7 @@ IPHeader::IPHeader(uint8_t version, uint16_t total_len, uint16_t id, bool df,
 
 IPHeader::IPHeader(const std::string& s)
 {
-    *this = *((IPHeader*)s.c_str());
+    *this = *((IPHeader*)s.data());
 }
 
 size_t IPHeader::header_len()