aboutsummaryrefslogtreecommitdiffstats
path: root/packet-llc.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-29 05:20:00 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-29 05:20:00 +0000
commit9b4e0a8dd3f2b4c15b63e1502558e667c2993107 (patch)
tree27fc13804612e16512cba644861ee65955d795ff /packet-llc.c
parentf92b3b74671f833a5bfd2604a12f35210bec25fd (diff)
Put a list of known OUIs in "oui.h", along with a declaration of
"value_string" array for OUIs. Add the OUI for the ATM Forum to that list. Handle the OUI for the ATM Forum in the layer 3 information for ISO TR 9577 in a Broadband Low Layer Information information element (for ATM LANE). Add an initial version of the dissection of TLV values in LANE LE Control frames (I have no frames with TLV values against which to test it, alas). svn path=/trunk/; revision=1385
Diffstat (limited to 'packet-llc.c')
-rw-r--r--packet-llc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/packet-llc.c b/packet-llc.c
index cbea2d434e..be89fa47b5 100644
--- a/packet-llc.c
+++ b/packet-llc.c
@@ -2,7 +2,7 @@
* Routines for IEEE 802.2 LLC layer
* Gilbert Ramirez <gramirez@tivoli.com>
*
- * $Id: packet-llc.c,v 1.35 1999/12/14 07:22:56 guy Exp $
+ * $Id: packet-llc.c,v 1.36 1999/12/29 05:20:00 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -34,6 +34,7 @@
#include <glib.h>
#include "packet.h"
+#include "oui.h"
#include "xdlc.h"
static int proto_llc = -1;
@@ -150,10 +151,7 @@ static const value_string llc_ctrl_vals[] = {
{ 0, NULL }
};
-#define OUI_ENCAP_ETHER 0x000000
-#define OUI_APPLE_ATALK 0x080007
-
-static const value_string llc_oui_vals[] = {
+const value_string oui_vals[] = {
{ OUI_ENCAP_ETHER, "Encapsulated Ethernet" },
/*
http://www.cisco.com/univercd/cc/td/doc/product/software/ios113ed/113ed_cr/ibm_r/brprt1/brsrb.htm
@@ -161,6 +159,7 @@ http://www.cisco.com/univercd/cc/td/doc/product/software/ios113ed/113ed_cr/ibm_r
{ 0x00000c, "Cisco" },
{ 0x0000f8, "Cisco 90-Compatible" },
{ 0x0080c2, "Bridged Frame-Relay" }, /* RFC 2427 */
+ { OUI_ATM_FORUM, "ATM Forum" },
{ OUI_APPLE_ATALK, "Apple (AppleTalk)" },
{ 0, NULL }
};
@@ -344,7 +343,7 @@ dissect_llc(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
etype = pntohs(&pd[offset+6]);
if (check_col(fd, COL_INFO)) {
col_add_fstr(fd, COL_INFO, "SNAP, OUI 0x%06X (%s), PID 0x%04X",
- oui, val_to_str(oui, llc_oui_vals, "Unknown"),
+ oui, val_to_str(oui, oui_vals, "Unknown"),
etype);
}
if (tree) {
@@ -444,7 +443,7 @@ proto_register_llc(void)
{ &hf_llc_oui,
{ "Organization Code", "llc.oui", FT_UINT24, BASE_HEX,
- VALS(llc_oui_vals), 0x0, ""}},
+ VALS(oui_vals), 0x0, ""}},
{ &hf_llc_pid,
{ "Protocol ID", "llc.pid", FT_UINT16, BASE_HEX,