diff options
-rw-r--r-- | src/proto.c | 2 | ||||
-rw-r--r-- | tests/regression/inet/comp.t | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/proto.c b/src/proto.c index 7dc7b3e2..6302016c 100644 --- a/src/proto.c +++ b/src/proto.c @@ -272,7 +272,7 @@ const struct proto_desc proto_comp = { }, .templates = { [COMPHDR_NEXTHDR] = INET_PROTOCOL("nexthdr", struct ip_comp_hdr, nexthdr), - [COMPHDR_FLAGS] = COMPHDR_FIELD("flags", flags), + [COMPHDR_FLAGS] = HDR_TEMPLATE("flags", &bitmask_type, struct ip_comp_hdr, flags), [COMPHDR_CPI] = COMPHDR_FIELD("cpi", cpi), }, }; diff --git a/tests/regression/inet/comp.t b/tests/regression/inet/comp.t index afdc63f3..f4753bbc 100644 --- a/tests/regression/inet/comp.t +++ b/tests/regression/inet/comp.t @@ -12,7 +12,7 @@ comp nexthdr != esp;ok;comp nexthdr != 50 # comp flags ## 8-bit field. Reserved for future use. MUST be set to zero. # Bug comp flags: to list. List the decimal value. -comp flags 0x00;ok +comp flags 0x0;ok comp flags != 0x23;ok comp flags 0x33-0x45;ok comp flags != 0x33-0x45;ok |