From 4ffa6882a5eafa50625d0e4d49cdaafe69d7877c Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 31 Mar 2009 04:57:48 +0200 Subject: datatype: add/move size and byte order information into data types Add size and type information to non-basetype types and remove the now redundant information from the symbol tables. This will be used to determine size and byteorder of set members without analyzing the ruleset for incremental update operations. Signed-off-by: Patrick McHardy --- src/exthdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/exthdr.c') diff --git a/src/exthdr.c b/src/exthdr.c index ee02cd53..3d01c3ab 100644 --- a/src/exthdr.c +++ b/src/exthdr.c @@ -205,8 +205,6 @@ const struct exthdr_desc exthdr_dst = { HDR_TEMPLATE(__name, __dtype, struct ip6_mh, __member) static const struct symbol_table mh_type_tbl = { - .byteorder = BYTEORDER_BIG_ENDIAN, - .size = BITS_PER_BYTE, .symbols = { SYMBOL("binding-refresh-request", IP6_MH_TYPE_BRR), SYMBOL("home-test-init", IP6_MH_TYPE_HOTI), @@ -229,6 +227,8 @@ static const struct datatype mh_type_type = { .type = TYPE_MH_TYPE, .name = "mh_type", .desc = "Mobility Header Type", + .byteorder = BYTEORDER_BIG_ENDIAN, + .size = BITS_PER_BYTE, .basetype = &integer_type, .sym_tbl = &mh_type_tbl, }; -- cgit v1.2.3