浏览代码

+ Wrong size for flags fields as reported by [email protected]

michael 20 年之前
父节点
当前提交
6caa028202
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/base/libc/niph.inc

+ 2 - 2
packages/base/libc/niph.inc

@@ -10,7 +10,7 @@ Type
 
    Piphdr = ^iphdr;
    iphdr = record
-        flag0 : word;
+        flag0 : byte;
         tos : u_int8_t;
         tot_len : u_int16_t;
         id : u_int16_t;
@@ -24,7 +24,7 @@ Type
 
    Pip = ^ip;
    ip = record
-        flag0 : dword;
+        flag0 : byte;
         ip_tos : u_int8_t;
         ip_len : u_short;
         ip_id : u_short;