9 /// Dispositivo de red (capa de enlace)
19 uint16_t reserved_flag: 1;
29 IPHeader(uint8_t version, uint16_t total_len, uint16_t id, bool df,
30 bool mf, uint16_t offset, uint8_t ttl, uint8_t proto,
31 const IPAddr& src, const IPAddr& dst);
33 IPHeader(const std::string& s);
35 static size_t header_len();
37 bool check_checksum() const;
43 std::ostream& operator<<(std::ostream& os, const IPHeader& iph);
45 #endif // _IPHEADER_H_
47 // vim: set et sw=4 sts=4 :