From a2b30d028c225a301eaddaeeee9ee55a24415725 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 28 May 2000 21:21:23 +0000 Subject: Use "tvb_get_ntoh24()" to extract the OUI from a SNAP header, rather than extracting each byte with "tvb_get_guint8()" and then putting them together. svn path=/trunk/; revision=2020 --- packet-llc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'packet-llc.c') diff --git a/packet-llc.c b/packet-llc.c index 4b143a3ac9..df9a7a6394 100644 --- a/packet-llc.c +++ b/packet-llc.c @@ -2,7 +2,7 @@ * Routines for IEEE 802.2 LLC layer * Gilbert Ramirez * - * $Id: packet-llc.c,v 1.61 2000/05/19 04:54:33 gram Exp $ + * $Id: packet-llc.c,v 1.62 2000/05/28 21:21:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -327,9 +327,7 @@ dissect_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * than overwriting it? */ if (is_snap) { - oui = tvb_get_guint8(tvb, 3) << 16 | - tvb_get_guint8(tvb, 4) << 8 | - tvb_get_guint8(tvb, 5); + oui = tvb_get_ntoh24(tvb, 3); etype = tvb_get_ntohs(tvb, 6); if (check_col(pinfo->fd, COL_INFO)) { -- cgit v1.2.1