diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-18 21:40:13 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-18 21:40:13 +0000 |
commit | 5d9c760a1f8a2e1ddaf43650ce7df3cb317e7ec0 (patch) | |
tree | 1d0161764112eb5c454d950fe062411f7edb6734 /packet-arcnet.c | |
parent | eaee39ac7d604416de4189b01aef80fd75a2ab93 (diff) |
Add an AT_ARCNET address type for ARCNET addresses, and have the ARCNET
dissector set the source and destination link-layer addresses.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6452 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-arcnet.c')
-rw-r--r-- | packet-arcnet.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packet-arcnet.c b/packet-arcnet.c index c6acd41e5e..547c578597 100644 --- a/packet-arcnet.c +++ b/packet-arcnet.c @@ -2,7 +2,7 @@ * Routines for arcnet dissection * Copyright 2001-2002, Peter Fales <ethereal@fales-lorenz.net> * - * $Id: packet-arcnet.c,v 1.2 2002/10/18 21:10:38 guy Exp $ + * $Id: packet-arcnet.c,v 1.3 2002/10/18 21:40:12 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -68,6 +68,11 @@ dissect_arcnet (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) src = tvb_get_guint8 (tvb, 0); dst = tvb_get_guint8 (tvb, 1); + SET_ADDRESS(&pinfo->dl_src, AT_ARCNET, 1, tvb_get_ptr(tvb, 0, 1)); + SET_ADDRESS(&pinfo->src, AT_ARCNET, 1, tvb_get_ptr(tvb, 0, 1)); + SET_ADDRESS(&pinfo->dl_dst, AT_ARCNET, 1, tvb_get_ptr(tvb, 1, 1)); + SET_ADDRESS(&pinfo->dst, AT_ARCNET, 1, tvb_get_ptr(tvb, 1, 1)); + protID = tvb_get_guint8 (tvb, 4); /* In the interest of speed, if "tree" is NULL, don't do any work not |