diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-01-03 16:41:08 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-01-03 16:41:08 +0000 |
commit | 5b7f184296c4e10f933d0448f40d267fb1b583f7 (patch) | |
tree | e67e6a292cf66edf79431f30778f239fc9468f4e /packet-mip.c | |
parent | b151ddecbb6800271e1cc2b8b0d2bb355dadbe89 (diff) |
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
Diffstat (limited to 'packet-mip.c')
-rw-r--r-- | packet-mip.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <Stefan.Raab@nextel.com> * - * $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 <gerald@unicom.net> @@ -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 */ |