aboutsummaryrefslogtreecommitdiffstats
path: root/packet-arp.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-27 04:48:14 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-27 04:48:14 +0000
commita2eefd8f9fb15c3adc28743232fde71e01d6f709 (patch)
treee2392fe12761424f8f617b109a45ff643712a247 /packet-arp.h
parent9cabbe12a189686398909c132d5994067ea8c8f4 (diff)
Pull the code to dissect an ATM NSAP address out of "packet-q2931.c" and
put it into a subroutine in "packet-arp.c", and call it from "packet-q2931.c". Add a "packet-arp.h" header to hold declarations of routines exported by "packet-atm.c" (other than the ATM dissector itself), moving them out of "packet.h". Use the aforementioned NSAP dissector to display ATM addresses in NSAP format, and display E.164 addresses as ASCII text (under the assumption that they're presented as a string of IA5, i.e. ASCII, characters, just as they are in Q.931). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1124 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-arp.h')
-rw-r--r--packet-arp.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/packet-arp.h b/packet-arp.h
new file mode 100644
index 0000000000..ac32d16b24
--- /dev/null
+++ b/packet-arp.h
@@ -0,0 +1,35 @@
+/* packet-arp.h
+ * Definitions of routines for ARP packet disassembly that are used
+ * elsewhere
+ *
+ * $Id: packet-arp.h,v 1.1 1999/11/27 04:48:12 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PACKET_ARP_H__
+#define __PACKET_ARP_H__
+
+gchar *arphrdaddr_to_str(guint8 *ad, int ad_len, guint16 type);
+gchar *arphrdtype_to_str(guint16 hwtype, const char *fmt);
+
+void dissect_atm_nsap(const u_char *pd, int offset, int len, proto_tree *tree);
+
+#endif /* packet-atm.h */