From 7250d49c49f7b2b776f50825c665e0f298f10e2e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 15 Jun 2000 04:23:06 +0000 Subject: Mark Clayton's patch to add support for capturing on ATM interfaces on Linux (call the until-now-unused "capture_clip()" routine for each packet). svn path=/trunk/; revision=2070 --- capture.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'capture.c') diff --git a/capture.c b/capture.c index bf582fe173..6c7ad30494 100644 --- a/capture.c +++ b/capture.c @@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.106 2000/05/26 22:08:13 guy Exp $ + * $Id: capture.c,v 1.107 2000/06/15 04:22:58 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -96,6 +96,7 @@ #include "prefs.h" #include "globals.h" +#include "packet-clip.h" #include "packet-eth.h" #include "packet-fddi.h" #include "packet-null.h" @@ -1001,6 +1002,9 @@ capture_pcap_cb(u_char *user, const struct pcap_pkthdr *phdr, case WTAP_ENCAP_RAW_IP: capture_raw(pd, &ld->counts); break; + case WTAP_ENCAP_LINUX_ATM_CLIP: + capture_clip(pd, &ld->counts); + break; /* XXX - FreeBSD may append 4-byte ATM pseudo-header to DLT_ATM_RFC1483, with LLC header following; we should implement it at some point. */ -- cgit v1.2.3