From db79c691088d0c5fa5dd04f3959b979a7648ca60 Mon Sep 17 00:00:00 2001 From: guy Date: Sun, 28 Oct 2001 02:31:49 +0000 Subject: Make the "is_loopback" field of a "pcap_if" structure a general "flags" field, and make a PCAP_IF_LOOPBACK flag be the first flag bit in that field, specifying whether the interface is a loopback interface; this allows us to add more flags without changing the layout of the structure. --- pcap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pcap.h') diff --git a/pcap.h b/pcap.h index 88ccdcfd..111a0a50 100644 --- a/pcap.h +++ b/pcap.h @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.32 2001-10-08 01:06:22 guy Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.33 2001-10-28 02:31:50 guy Exp $ (LBL) */ #ifndef lib_pcap_h @@ -139,9 +139,11 @@ struct pcap_if { char *name; /* name to hand to "pcap_open_live()" */ char *description; /* textual description of interface, or NULL */ struct pcap_addr *addresses; - u_int is_loopback; /* non-0 if interface is loopback */ + u_int flags; /* PCAP_IF_ interface flags */ }; +#define PCAP_IF_LOOPBACK 0x00000001 /* interface is loopback */ + /* * Representation of an interface address. */ -- cgit v1.2.3