wm: dnsparser

Download patch

ref: 784dcf63f74b671ad56bd8dfc2a287c2a38fa1e2
parent: 24acc31508fd9964b812962a0ff2c52864cb212f
author: mkf <mkf@cloud9p.org>
date: Wed Jul 31 09:02:29 EDT 2024

pkt: more fixes

--- a/pkt.c
+++ b/pkt.c
@@ -38,6 +38,12 @@
 	p->id = get2(pkt + pos);
 	pos += PKT_ID;
 	
+	p->flags = pkt[pos];
+	pos += PKT_FLAGS;
+	
+	p->fragoffset = get2(pkt + pos);
+	pos += PKT_FRAGOFFSET;
+	
 	p->ttl = pkt[pos];
 	pos += PKT_TTL;