aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-22 02:29:40 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-22 02:29:40 +0000
commit4b9ab6d1fce496323994ad288599e0f716be3449 (patch)
treeb2848d90e752e28925e1506f98136d732c256877 /capture.c
parent63a69a5ccaa96027d68119d36dda72480f5e9c29 (diff)
downloadwireshark-4b9ab6d1fce496323994ad288599e0f716be3449.tar.gz
wireshark-4b9ab6d1fce496323994ad288599e0f716be3449.tar.bz2
wireshark-4b9ab6d1fce496323994ad288599e0f716be3449.zip
Get rid of some cruft left in by previous checkins as placeholders.
Get rid of WTAP_ENCAP_NONE; replace it with WTAP_ENCAP_UNKNOWN, which means "I can't handle that file, it's using an encapsulation I don't support". Check for encapsulations we don't support, and return an error (as is already done in "libpcap.c"). Check for too-large packet sizes, and return an error (as is already done in "libpcap.c"). Print unsigned quantities in Wiretap messages with "%u", not "%d". svn path=/trunk/; revision=544
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/capture.c b/capture.c
index aef3ad51bc..4c9365e550 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.59 1999/08/22 01:02:42 guy Exp $
+ * $Id: capture.c,v 1.60 1999/08/22 02:29:30 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -835,21 +835,12 @@ capture_pcap_cb(u_char *user, const struct pcap_pkthdr *phdr,
case WTAP_ENCAP_PPP:
capture_ppp(pd, phdr->caplen, &ld->counts);
break;
-#if 0
-#ifdef DLT_ENC
- case DLT_ENC : /* XXX - OpenBSD "IPSEC enc type (af header, spi,
- flags)" */
-#endif
-#ifdef DLT_LOOP
- case DLT_LOOP : /* XXX - prepended 4-byte AF_xxxx value in OpenBSD,
- network byte order */
-#endif
-#endif
- /* XXX - FreeBSD may append 4-byte ATM pseudo-header
- to DLT_ATM_RFC1483, with LLC header following */
case WTAP_ENCAP_RAW_IP:
capture_raw(pd, phdr->caplen, &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. */
}
}