From b461cd3ae7199389b6f6d80bb7b1d6904189b85f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 25 Apr 2011 07:15:57 +0200 Subject: [PATCH] Provide proper ca_table for meta selector table No idea why it was missing. --- doc/xdump | 5 +++-- src/lib/common/nsc.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/xdump b/doc/xdump index 7d46778e8..c7f2ba468 100644 --- a/doc/xdump +++ b/doc/xdump @@ -348,7 +348,8 @@ its meta-data: Because xdump table is referenced from elsewhere (xdump meta meta field table), the leftmost field must contain the key. Thus, the leftmost field's meta-data field table must be the table ID of xdump -table itself. Let's try it: +table itself. Indeed, its value matches the one we got in xdump meta +meta. Let's try to dump the table: [30:640] Command : xdump 26 * XDUMP table 1139556210 @@ -415,7 +416,7 @@ We now have complete meta-meta information: type d (const) 0 meta-type flags d (bits const) 0 meta-flags len d (const) 0 - table d (const) 0 + table d (const) 0 table Dumping the remaining tables is easy: just walk the table of tables. Here's the first one: diff --git a/src/lib/common/nsc.c b/src/lib/common/nsc.c index 6b85e2353..a5c439fa0 100644 --- a/src/lib/common/nsc.c +++ b/src/lib/common/nsc.c @@ -687,7 +687,7 @@ struct castr mdchr_ca[] = { {"flags", fldoff(ca_flags), NSC_UCHAR, 0, NULL, EF_META_FLAGS, NSC_CONST | NSC_BITS}, {"len", fldoff(ca_len), NSC_USHORT, 0, NULL, EF_BAD, NSC_CONST}, - {"table", fldoff(ca_table), NSC_INT, 0, NULL, EF_BAD, NSC_CONST}, + {"table", fldoff(ca_table), NSC_INT, 0, NULL, EF_TABLE, NSC_CONST}, {NULL, 0, NSC_NOTYPE, 0, NULL, EF_BAD, 0} #undef CURSTR }; -- 2.43.0