diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-15 04:23:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-15 04:23:06 +0000 |
commit | 7250d49c49f7b2b776f50825c665e0f298f10e2e (patch) | |
tree | 623cf46d8b0d8f60893597093bb79a328bacc5ab /capture.c | |
parent | 72ad5b91d655db2807a0e743107ddb50c2a49bd0 (diff) |
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
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 <gerald@zing.org> @@ -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. */ |