aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ndp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ndp.c')
-rw-r--r--epan/dissectors/packet-ndp.c239
1 files changed, 126 insertions, 113 deletions
diff --git a/epan/dissectors/packet-ndp.c b/epan/dissectors/packet-ndp.c
index 04183b7925..aba0a096ba 100644
--- a/epan/dissectors/packet-ndp.c
+++ b/epan/dissectors/packet-ndp.c
@@ -55,105 +55,105 @@ void proto_reg_handoff_ndp(void);
/* Last updated from version 229 ("200609010000Z") of SnpxChassisType in SYNOPTICS-ROOT-MIB.mib */
static const value_string ndp_chassis_val[] =
{
- {1, "other"},
- {2, "3000"},
- {3, "3030"},
- {4, "2310"},
- {5, "2810"},
- {6, "2912"},
- {7, "2914"},
- {8, "271x"},
- {9, "2813"},
- {10, "2814"},
- {11, "2915"},
- {12, "5000"},
- {13, "2813SA"},
- {14, "2814SA"},
- {15, "810M"},
- {16, "Ethercell"},
- {17, "5005"},
- {18, "Alcatel Ethernet workgroup conc."},
-
- {20, "2715SA"},
- {21, "2486"},
- {22, "28000 series"},
- {23, "23000 series"},
- {24, "5DN00x series"},
- {25, "BayStack Ethernet"},
- {26, "23100 series"},
- {27, "100Base-T Hub"},
- {28, "3000 Fast Ethernet"},
- {29, "Orion switch"},
+ { 1, "other"},
+ { 2, "3000"},
+ { 3, "3030"},
+ { 4, "2310"},
+ { 5, "2810"},
+ { 6, "2912"},
+ { 7, "2914"},
+ { 8, "271x"},
+ { 9, "2813"},
+ { 10, "2814"},
+ { 11, "2915"},
+ { 12, "5000"},
+ { 13, "2813SA"},
+ { 14, "2814SA"},
+ { 15, "810M"},
+ { 16, "Ethercell"},
+ { 17, "5005"},
+ { 18, "Alcatel Ethernet workgroup conc."},
+
+ { 20, "2715SA"},
+ { 21, "2486"},
+ { 22, "28000 series"},
+ { 23, "23000 series"},
+ { 24, "5DN00x series"},
+ { 25, "BayStack Ethernet"},
+ { 26, "23100 series"},
+ { 27, "100Base-T Hub"},
+ { 28, "3000 Fast Ethernet"},
+ { 29, "Orion switch"},
/* 30 is "not used" */
- {31, "DDS"},
- {32, "Centillion (6 slot)"},
- {33, "Centillion (12 slot)"},
- {34, "Centillion (1 slot)"},
- {35, "BayStack 301"},
- {36, "BayStack TokenRing Hub"},
- {37, "FVC Multimedia Switch"},
- {38, "Switch Node"},
- {39, "BayStack 302 Switch"},
- {40, "BayStack 350 Switch"},
- {41, "BayStack 150 Ethernet Hub"},
- {42, "Centillion 50N switch"},
- {43, "Centillion 50T switch"},
- {44, "BayStack 303 and 304 Switches"},
- {45, "BayStack 200 Ethernet Hub"},
- {46, "BayStack 250 10/100 Ethernet Hub"},
- /*{47, "StackProbe"}, XXX - No longer listed */
- {48, "BayStack 450 10/100/1000 Switches"},
- {49, "BayStack 410 10/100 Switches"},
- {50, "Passport 1200 L3 Switch"},
- {51, "Passport 1250 L3 Switch"},
- {52, "Passport 1100 L3 Switch"},
- {53, "Passport 1150 L3 Switch"},
- {54, "Passport 1050 L3 Switch"},
- {55, "Passport 1051 L3 Switch"},
- {56, "Passport 8610 L3 Switch"},
- {57, "Passport 8606 L3 Switch"},
- {58, "Passport 8010"},
- {59, "Passport 8006"},
- {60, "BayStack 670 wireless access point"},
- {61, "Passport 740"},
- {62, "Passport 750"},
- {63, "Passport 790"},
- {64, "Business Policy Switch 2000 10/100 Switches"},
- {65, "Passport 8110 L2 Switch"},
- {66, "Passport 8106 L2 Switch"},
- {67, "BayStack 3580 Gig Switch"},
- {68, "BayStack 10 Power Supply Unit"},
- {69, "BayStack 420 10/100 Switch"},
- {70, "OPTera Metro 1200 Ethernet Service Module"},
- {71, "OPTera 8010co"},
- {72, "OPTera 8610co L3 switch"},
- {73, "OPTera 8110co L2 switch"},
- {74, "OPTera 8003"},
- {75, "OPTera 8603 L3 switch"},
- {76, "OPTera 8103 L2 switch"},
- {77, "BayStack 380 10/100/1000 Switch"},
- {78, "Ethernet Switch 470-48T"},
- {79, "OPTera Metro 1450 Ethernet Service Module"},
- {80, "OPTera Metro 1400 Ethernet Service Module"},
- {81, "Alteon Switch Family"},
- {82, "Ethernet Switch 460-24T-PWR"},
- {83, "OPTera Metro 8010 OPM L2 Switch"},
- {84, "OPTera Metro 8010co OPM L2 Switch"},
- {85, "OPTera Metro 8006 OPM L2 Switch"},
- {86, "OPTera Metro 8003 OPM L2 Switch"},
- {87, "Alteon 180e"},
- {88, "Alteon AD3"},
- {89, "Alteon 184"},
- {90, "Alteon AD4"},
- {91, "Passport 1424 L3 switch"},
- {92, "Passport 1648 L3 switch"},
- {93, "Passport 1612 L3 switch"},
- {94, "Passport 1624 L3 switch"},
- {95, "BayStack 380-24F Fiber 1000 Switch"},
- {96, "Ethernet Routing Switch 5510-24T"},
- {97, "Ethernet Routing Switch 5510-48T"},
- {98, "Ethernet Switch 470-24T"},
- {99, "Nortel Networks Wireless LAN Access Point 2220"},
+ { 31, "DDS"},
+ { 32, "Centillion (6 slot)"},
+ { 33, "Centillion (12 slot)"},
+ { 34, "Centillion (1 slot)"},
+ { 35, "BayStack 301"},
+ { 36, "BayStack TokenRing Hub"},
+ { 37, "FVC Multimedia Switch"},
+ { 38, "Switch Node"},
+ { 39, "BayStack 302 Switch"},
+ { 40, "BayStack 350 Switch"},
+ { 41, "BayStack 150 Ethernet Hub"},
+ { 42, "Centillion 50N switch"},
+ { 43, "Centillion 50T switch"},
+ { 44, "BayStack 303 and 304 Switches"},
+ { 45, "BayStack 200 Ethernet Hub"},
+ { 46, "BayStack 250 10/100 Ethernet Hub"},
+ /*{ 47, "StackProbe"}, XXX - No longer listed */
+ { 48, "BayStack 450 10/100/1000 Switches"},
+ { 49, "BayStack 410 10/100 Switches"},
+ { 50, "Passport 1200 L3 Switch"},
+ { 51, "Passport 1250 L3 Switch"},
+ { 52, "Passport 1100 L3 Switch"},
+ { 53, "Passport 1150 L3 Switch"},
+ { 54, "Passport 1050 L3 Switch"},
+ { 55, "Passport 1051 L3 Switch"},
+ { 56, "Passport 8610 L3 Switch"},
+ { 57, "Passport 8606 L3 Switch"},
+ { 58, "Passport 8010"},
+ { 59, "Passport 8006"},
+ { 60, "BayStack 670 wireless access point"},
+ { 61, "Passport 740"},
+ { 62, "Passport 750"},
+ { 63, "Passport 790"},
+ { 64, "Business Policy Switch 2000 10/100 Switches"},
+ { 65, "Passport 8110 L2 Switch"},
+ { 66, "Passport 8106 L2 Switch"},
+ { 67, "BayStack 3580 Gig Switch"},
+ { 68, "BayStack 10 Power Supply Unit"},
+ { 69, "BayStack 420 10/100 Switch"},
+ { 70, "OPTera Metro 1200 Ethernet Service Module"},
+ { 71, "OPTera 8010co"},
+ { 72, "OPTera 8610co L3 switch"},
+ { 73, "OPTera 8110co L2 switch"},
+ { 74, "OPTera 8003"},
+ { 75, "OPTera 8603 L3 switch"},
+ { 76, "OPTera 8103 L2 switch"},
+ { 77, "BayStack 380 10/100/1000 Switch"},
+ { 78, "Ethernet Switch 470-48T"},
+ { 79, "OPTera Metro 1450 Ethernet Service Module"},
+ { 80, "OPTera Metro 1400 Ethernet Service Module"},
+ { 81, "Alteon Switch Family"},
+ { 82, "Ethernet Switch 460-24T-PWR"},
+ { 83, "OPTera Metro 8010 OPM L2 Switch"},
+ { 84, "OPTera Metro 8010co OPM L2 Switch"},
+ { 85, "OPTera Metro 8006 OPM L2 Switch"},
+ { 86, "OPTera Metro 8003 OPM L2 Switch"},
+ { 87, "Alteon 180e"},
+ { 88, "Alteon AD3"},
+ { 89, "Alteon 184"},
+ { 90, "Alteon AD4"},
+ { 91, "Passport 1424 L3 switch"},
+ { 92, "Passport 1648 L3 switch"},
+ { 93, "Passport 1612 L3 switch"},
+ { 94, "Passport 1624 L3 switch"},
+ { 95, "BayStack 380-24F Fiber 1000 Switch"},
+ { 96, "Ethernet Routing Switch 5510-24T"},
+ { 97, "Ethernet Routing Switch 5510-48T"},
+ { 98, "Ethernet Switch 470-24T"},
+ { 99, "Nortel Networks Wireless LAN Access Point 2220"},
{100, "Passport RBS 2402 L3 switch"},
{101, "Alteon Application Switch 2424"},
{102, "Alteon Application Switch 2224"},
@@ -224,15 +224,15 @@ static value_string_ext ndp_chassis_val_ext = VALUE_STRING_EXT_INIT(ndp_chassis_
/* from synro179.mib - SnpxBackplaneType */
static const value_string ndp_backplane_val[] =
{
- {1, "Other"},
- {2, "Ethernet"},
- {3, "Ethernet and Tokenring"},
- {4, "Ethernet and FDDI"},
- {5, "Ethernet, Tokenring and FDDI"},
- {6, "Ethernet and Tokenring with redundant power"},
- {7, "Ethernet, Tokenring, FDDI with redundant power"},
- {8, "Token Ring"},
- {9, "Ethernet, Tokenring and Fast Ethernet"},
+ { 1, "Other"},
+ { 2, "Ethernet"},
+ { 3, "Ethernet and Tokenring"},
+ { 4, "Ethernet and FDDI"},
+ { 5, "Ethernet, Tokenring and FDDI"},
+ { 6, "Ethernet and Tokenring with redundant power"},
+ { 7, "Ethernet, Tokenring, FDDI with redundant power"},
+ { 8, "Token Ring"},
+ { 9, "Ethernet, Tokenring and Fast Ethernet"},
{10, "Ethernet and Fast Ethernet"},
{11, "Ethernet, Tokenring, Fast Ethernet with redundant power"},
{12, "Ethernet, Fast Ethernet and Gigabit Ethernet"},
@@ -250,12 +250,12 @@ static const value_string ndp_state_val[] =
/* Offsets in NDP Hello structure. */
-#define NDP_IP_ADDRESS 0
-#define NDP_SEGMENT_IDENTIFIER 4
-#define NDP_CHASSIS_TYPE 7
-#define NDP_BACKPLANE_TYPE 8
-#define NDP_STATE 9
-#define NDP_NUMBER_OF_LINKS 10
+#define NDP_IP_ADDRESS 0
+#define NDP_SEGMENT_IDENTIFIER 4
+#define NDP_CHASSIS_TYPE 7
+#define NDP_BACKPLANE_TYPE 8
+#define NDP_STATE 9
+#define NDP_NUMBER_OF_LINKS 10
static int proto_ndp = -1;
static int hf_ndp_ip_address = -1;
@@ -382,3 +382,16 @@ proto_reg_handoff_ndp(void)
/* it uses a different packet format */
/* dissector_add_uint("llc.nortel_pid", 0x01a3, ndp_handle); */ /* Bridge hello */
}
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 8
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vi: set shiftwidth=8 tabstop=8 noexpandtab:
+ * :indentSize=8:tabSize=8:noTabs=false:
+ */