From 5eff022bd48251b57a6d450b4bd801746e862163 Mon Sep 17 00:00:00 2001 From: Keichi Takahashi Date: Thu, 15 Oct 2026 23:30:18 +0900 Subject: [PATCH] Rename IP flags field in ip example The 3-bit field preceding the fragment offset holds the flags (DF/MF), not an offset. --- example/ip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ip.ts b/example/ip.ts index ed4b63f5..04e895a4 100644 --- a/example/ip.ts +++ b/example/ip.ts @@ -7,7 +7,7 @@ const ipHeader = new Parser() .uint8("tos") .uint16("packetLength") .uint16("id") - .bit3("offset") + .bit3("flags") .bit13("fragOffset") .uint8("ttl") .uint8("protocol")