]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
DNS: Use ND_TCHECK_LEN() instead of a custom bounds check
[tcpdump] / tcpdump.c
index 9bab8d87850044e0bb1051346bd77642c556901b..05b319b757a9c011bf2b8839f6455da64aacfe31 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1399,6 +1399,11 @@ open_interface(const char *device, netdissect_options *ndo, char *ebuf)
                } else if (status == PCAP_ERROR_PERM_DENIED && *cp != '\0')
                        error("%s: %s\n(%s)", device,
                            pcap_statustostr(status), cp);
+#ifdef PCAP_ERROR_CAPTURE_NOTSUP
+               else if (status == PCAP_ERROR_CAPTURE_NOTSUP && *cp != '\0')
+                       error("%s: %s\n(%s)", device,
+                           pcap_statustostr(status), cp);
+#endif
 #ifdef __FreeBSD__
                else if (status == PCAP_ERROR_RFMON_NOTSUP &&
                    strncmp(device, "wlan", 4) == 0) {