We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ad5e1 commit c0b80b3Copy full SHA for c0b80b3
2 files changed
api/net/ip4/packet_ip4.hpp
@@ -57,9 +57,8 @@ namespace net {
57
uint16_t ip_data_length() const noexcept
58
{ return ip_segment_length() - ip_header_length(); }
59
60
- // TODO: Remove Ethernet dependency, some day...
61
uint16_t ip_capacity() const noexcept
62
- { return capacity() - ip_full_header_length() - sizeof(LinkLayer::trailer); }
+ { return capacity() - ip_header_length(); }
63
64
void set_ip_data_length(uint16_t length) {
65
Expects(data_end() >= layer_begin());
api/net/packet.hpp
@@ -20,6 +20,7 @@
20
21
#include "buffer_store.hpp"
22
#include "ip4/addr.hpp"
23
+#include <gsl/gsl_assert>
24
#include <delegate>
25
#include <cassert>
26
0 commit comments