ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Building 1.0.8 on AIX

Date: Wed, 1 Jul 2009 18:33:19 -0500
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,