aboutsummaryrefslogtreecommitdiffstats
path: root/capture_loop.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-03-21 03:55:50 +0000
committerGuy Harris <guy@alum.mit.edu>2005-03-21 03:55:50 +0000
commit839dd9002cb9559a2fa8f6d34dfa08fba639a44f (patch)
tree941b57614f751e99b05e1085f131dcd41165019f /capture_loop.c
parent7431ca3f58d1a7468d5ee738d79ea7e2f494e025 (diff)
Add a capture_fr() routine when capturing on Frame Relay.
svn path=/trunk/; revision=13845
Diffstat (limited to 'capture_loop.c')
-rw-r--r--capture_loop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capture_loop.c b/capture_loop.c
index 8c0611ea9b..88fe54241b 100644
--- a/capture_loop.c
+++ b/capture_loop.c
@@ -92,6 +92,7 @@
#include <epan/dissectors/packet-clip.h>
#include <epan/dissectors/packet-eth.h>
#include <epan/dissectors/packet-fddi.h>
+#include <epan/dissectors/packet-fr.h>
#include <epan/dissectors/packet-null.h>
#include <epan/dissectors/packet-ppp.h>
#include <epan/dissectors/packet-raw.h>
@@ -1475,6 +1476,10 @@ capture_loop_packet_cb(guchar *user, const struct pcap_pkthdr *phdr,
case WTAP_ENCAP_APPLE_IP_OVER_IEEE1394:
capture_ap1394(pd, 0, whdr.caplen, &ld->counts);
break;
+ case WTAP_ENCAP_FRELAY:
+ case WTAP_ENCAP_FRELAY_WITH_PHDR:
+ capture_fr(pd, 0, whdr.caplen, &ld->counts);
+ break;
/* XXX - some ATM drivers on FreeBSD might prepend a 4-byte ATM
pseudo-header to DLT_ATM_RFC1483, with LLC header following;
we might have to implement that at some point. */