]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-int.h
Fix "tcpdump -i <n>" for something-only libpcap builds.
[libpcap] / pcap-int.h
index 3b85492915cae7a7d304c8b9082d3e3f17642fcc..9fd41a946b687704a9ece4d30dd9604a386b5cbe 100644 (file)
@@ -413,6 +413,14 @@ int        pcapint_setnonblock_fd(pcap_t *p, int);
  * by pcap_create routines.
  */
 pcap_t *pcapint_create_interface(const char *, char *);
+/*
+ * A format string for something-only libpcap builds, which use a stub
+ * implementation of pcapint_create_interface().  It contains the substring
+ * "No such device" (one of the standard descriptions of ENODEV) -- this way
+ * tcpdump can detect a particular error condition even though pcap_create()
+ * returns NULL for all errors.
+ */
+#define PCAP_ENODEV_MESSAGE "No such device (this build of libpcap supports %s devices only)."
 
 /*
  * This wrapper takes an error buffer pointer and a type to use for the