From 585268e3e1056e802dcf6507e3613b92ca0d694c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 19 Feb 2000 08:00:08 +0000 Subject: Use WTAP_ERR_UNSUPPORTED_ENCAP for all attempts to open or read a capture file for an unsupported link-layer encapsulation type (as the nettl reader does), and report it correctly if it occurs on an open or read attempt rather than a save attempt. svn path=/trunk/; revision=1647 --- wiretap/libpcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiretap/libpcap.c') diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c index b3e80b5191..a4a45e673d 100644 --- a/wiretap/libpcap.c +++ b/wiretap/libpcap.c @@ -1,6 +1,6 @@ /* libpcap.c * - * $Id: libpcap.c,v 1.31 2000/01/22 06:22:39 guy Exp $ + * $Id: libpcap.c,v 1.32 2000/02/19 08:00:06 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -247,7 +247,7 @@ int libpcap_open(wtap *wth, int *err) || pcap_encap[hdr.network] == WTAP_ENCAP_UNKNOWN) { g_message("pcap: network type %u unknown or unsupported", hdr.network); - *err = WTAP_ERR_UNSUPPORTED; + *err = WTAP_ERR_UNSUPPORTED_ENCAP; return -1; } -- cgit v1.2.1