summaryrefslogtreecommitdiffstats
path: root/src/exthdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exthdr.c')
-rw-r--r--src/exthdr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exthdr.c b/src/exthdr.c
index 718979a5..ee02cd53 100644
--- a/src/exthdr.c
+++ b/src/exthdr.c
@@ -227,7 +227,8 @@ static const struct symbol_table mh_type_tbl = {
static const struct datatype mh_type_type = {
.type = TYPE_MH_TYPE,
- .name = "Mobility Header Type",
+ .name = "mh_type",
+ .desc = "Mobility Header Type",
.basetype = &integer_type,
.sym_tbl = &mh_type_tbl,
};
@@ -243,3 +244,8 @@ const struct exthdr_desc exthdr_mh = {
[MHHDR_CHECKSUM] = MH_FIELD("checksum", ip6mh_cksum, &integer_type),
},
};
+
+static void __init exthdr_init(void)
+{
+ datatype_register(&mh_type_type);
+}