/* column-utils.c
* Routines for column utilities.
*
- * $Id: column-utils.c,v 1.19 2002/10/15 04:31:00 guy Exp $
+ * $Id: column-utils.c,v 1.20 2002/10/18 21:40:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
pinfo->cinfo->col_data[col] = pinfo->cinfo->col_buf[col];
break;
+ case AT_DLCI:
+ /* XXX - handle AT_DLCI */
+ break;
+
+ case AT_ARCNET:
+ snprintf(pinfo->cinfo->col_buf[col], COL_MAX_LEN, "%02X",
+ addr->data[0]);
+ pinfo->cinfo->col_buf[col][COL_MAX_LEN - 1] = '\0';
+ if (is_src)
+ strcpy(pinfo->cinfo->col_expr[col], "arcnet.src");
+ else
+ strcpy(pinfo->cinfo->col_expr[col], "arcnet.dst");
+ pinfo->cinfo->col_data[col] = pinfo->cinfo->col_buf[col];
+ strcpy(pinfo->cinfo->col_expr_val[col],pinfo->cinfo->col_buf[col]);
+ break;
+
default:
break;
}
/* packet_info.h
* Definitions for packet info structures and routines
*
- * $Id: packet_info.h,v 1.20 2002/10/15 04:31:00 guy Exp $
+ * $Id: packet_info.h,v 1.21 2002/10/18 21:40:13 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
AT_ATALK, /* Appletalk DDP */
AT_VINES, /* Banyan Vines */
AT_OSI, /* OSI NSAP */
- AT_DLCI /* Frame Relay DLCI */
+ AT_DLCI, /* Frame Relay DLCI */
+ AT_ARCNET /* ARCNET */
} address_type;
typedef struct _address {
* 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>
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