summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-24 12:51:45 +0100
committerFlorian Westphal <fw@strlen.de>2018-02-26 14:30:48 +0100
commit75191f7093bf636993087988657d0e32d1620138 (patch)
tree6ab4b58245bb69dba687bf58c619c65450746e7a /src
parent8c61fa70f3cebed06b23292a3467f1dbc1b96ce9 (diff)
payload: use integer_type when initializing a raw expression
The invalid type prints prominent "[invalid]", so prefer integer type in raw expressions. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r--src/payload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/payload.c b/src/payload.c
index 7ca170ed..a1e7e77e 100644
--- a/src/payload.c
+++ b/src/payload.c
@@ -172,6 +172,7 @@ void payload_init_raw(struct expr *expr, enum proto_bases base,
expr->payload.base = base;
expr->payload.offset = offset;
expr->len = len;
+ expr->dtype = &integer_type;
}
unsigned int payload_hdr_field(const struct expr *expr)