diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-08 22:35:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-08 22:35:30 +0000 |
commit | 22496138e97106218bcad8047b732f35352ac6c6 (patch) | |
tree | bf80dca00dfe10d6592fa23968a12fecc1ecb28a /packet-ipfc.c | |
parent | 854b819fabb3f3d7da6d083772083cc855cba502 (diff) | |
download | wireshark-22496138e97106218bcad8047b732f35352ac6c6.tar.gz wireshark-22496138e97106218bcad8047b732f35352ac6c6.tar.bz2 wireshark-22496138e97106218bcad8047b732f35352ac6c6.zip |
Add a capture routine for IP-over-FC, and call it from the capture code.
svn path=/trunk/; revision=6767
Diffstat (limited to 'packet-ipfc.c')
-rw-r--r-- | packet-ipfc.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/packet-ipfc.c b/packet-ipfc.c index f61143406d..f4d83b9b8c 100644 --- a/packet-ipfc.c +++ b/packet-ipfc.c @@ -2,7 +2,7 @@ * Routines for Decoding FC header for IP/FC * Copyright 2001, Dinesh G Dutt <ddutt@cisco.com> * - * $Id: packet-ipfc.c,v 1.3 2002/12/08 22:01:20 guy Exp $ + * $Id: packet-ipfc.c,v 1.4 2002/12/08 22:35:30 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -36,6 +36,8 @@ #include <epan/packet.h> #include "etypes.h" #include "packet-fc.h" +#include "packet-ipfc.h" +#include "packet-llc.h" /* Initialize the protocol and registered fields */ static int proto_ipfc = -1; @@ -46,6 +48,17 @@ static int hf_ipfc_network_sa = -1; static gint ett_ipfc = -1; static dissector_handle_t llc_handle; +void +capture_ipfc (const guchar *pd, int len, packet_counts *ld) +{ + if (!BYTES_ARE_IN_FRAME(0, len, 16)) { + ld->other++; + return; + } + + capture_llc(pd, 16, len, ld); +} + static void dissect_ipfc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { |