Multiply header field by 8 before comparing to current buffer length.
Signed-off-by: Michal Kubecek <mku...@su...>
---
src/net/ipv4.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index 53048b8..19b90ee 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -232,7 +232,7 @@ static struct io_buffer * ipv4_reassemble ( struct io_buffer * iobuf ) {
* the reassembled I/O buffer
*/
if ( iob_len ( fragbuf->frag_iob ) ==
- ( pkt_frags & IP_MASK_OFFSET ) ) {
+ ( ( pkt_frags & IP_MASK_OFFSET ) << 3 ) ) {
/**
* Append the contents of the fragment to the
* reassembled I/O buffer
--
1.7.7
|