From 5b7f184296c4e10f933d0448f40d267fb1b583f7 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Wed, 3 Jan 2001 16:41:08 +0000 Subject: Ensure that all value_string arrays end in {0, NULL}. Dissectors got away with not terminating their arrays because they knew the limits of the value used to look up strings in the value_string array, but the dfilter_expr_dlg does not know these limits and must rely on the terminating {0, NULL} record. Also, in SNA fixed a bug in which a field should have been defined as FT_UINT8 but was defined as FT_BOOLEAN. In WTP, fixed a value string which had duplicate keys. svn path=/trunk/; revision=2817 --- packet-mip.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packet-mip.c') diff --git a/packet-mip.c b/packet-mip.c index 30839ecc2a..56a473df46 100644 --- a/packet-mip.c +++ b/packet-mip.c @@ -2,7 +2,7 @@ * Routines for Mobile IP dissection * Copyright 2000, Stefan Raab * - * $Id: packet-mip.c,v 1.10 2001/01/03 06:55:30 guy Exp $ + * $Id: packet-mip.c,v 1.11 2001/01/03 16:41:06 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -101,7 +101,8 @@ struct mip_reply_packet{ static const value_string mip_types[] = { {1, "Registration Request"}, - {3, "Registration Reply"} + {3, "Registration Reply"}, + {0, NULL}, }; static const value_string mip_reply_codes[]= { @@ -130,6 +131,7 @@ static const value_string mip_reply_codes[]= { {134, "Registration Denied by HA, poorly formed request"}, {135, "Registration Denied by HA, too many simul bindings"}, {136, "Registration Denied by HA, unknown HA address"}, + {0, NULL}, }; /* Code to actually dissect the packets */ -- cgit v1.2.3