summaryrefslogtreecommitdiff
path: root/pcap.h
diff options
context:
space:
mode:
authorguy <guy>2001-10-28 02:31:49 +0000
committerguy <guy>2001-10-28 02:31:49 +0000
commitdb79c691088d0c5fa5dd04f3959b979a7648ca60 (patch)
tree0c436ab37f300b316f7a3b633407f25c1c653f23 /pcap.h
parentc3736d4ff82fd9e56f69b56360a3081cf393edb2 (diff)
downloadlibpcap-db79c691088d0c5fa5dd04f3959b979a7648ca60.tar.gz
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.
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h6
1 files changed, 4 insertions, 2 deletions
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.
*/