In <sys/param.h> on AIX, we have:
#define GOOD 0
#define BAD (-1)
This causes a problem in epan/dissectors/packet-mip6.h with:
/* Mobility Option types */
typedef enum {
PAD1 = 0,
PADN = 1,
BRA = 2,
ACOA = 3,
NI = 4,
BAD = 5,
MNP = 6,
LLA = 7,
MNID = 8,
HNP = 9, /* temporary value, not yet defined by IANA */
TS = 10 /* temporary value, not yet defined by IANA */
} optTypes;
Patch attached.
--
albert chin (china@xxxxxxxxxxxxxxxxxx)
Index: epan/dissectors/packet-mip6.h
===================================================================
--- epan/dissectors/packet-mip6.h (revision 28913)
+++ epan/dissectors/packet-mip6.h (working copy)
@@ -71,7 +71,7 @@
BRA = 2,
ACOA = 3,
NI = 4,
- BAD = 5,
+ MBAD = 5,
MNP = 6,
LLA = 7,
MNID = 8,
Index: epan/dissectors/packet-mip6.c
===================================================================
--- epan/dissectors/packet-mip6.c (revision 28913)
+++ epan/dissectors/packet-mip6.c (working copy)
@@ -668,7 +668,7 @@
dissect_mip6_opt_ni
},
{
- BAD,
+ MBAD,
"Binding Authorization Data",
&ett_mip6_opt_bad,
VARIABLE_LENGTH,