}
#define HAVE_PCAP_SET_PARSER_DEBUG
-#endif
+#endif // HAVE_PCAP_SET_PARSER_DEBUG, HAVE_PCAP_DEBUG, HAVE_YYDEBUG
#if defined(HAVE_PCAP_SET_OPTIMIZER_DEBUG)
/*
extern
#endif /* _WIN32 */
void pcap_set_optimizer_debug(int);
-#endif
+#endif // HAVE_PCAP_SET_OPTIMIZER_DEBUG
static void NORETURN
exit_tcpdump(const int status)
pcap_free_tstamp_types(tstamp_types);
exit_tcpdump(S_SUCCESS);
}
-#endif
+#endif // HAVE_PCAP_SET_TSTAMP_TYPE
static void NORETURN
show_dlts_and_exit(pcap_t *pc, const char *device)
break;
}
}
-#endif
+#endif // PCAP_IF_WIRELESS
printf("]");
}
printf("\n");
return "unknown";
}
}
-#endif
+#endif // HAVE_PCAP_SET_TSTAMP_PRECISION
#ifdef HAVE_CAPSICUM
/*
error("unable to limit dump descriptor fcntls");
}
}
-#endif
+#endif // HAVE_CAPSICUM
/*
* Copy arg vector into a new buffer, concatenating arguments with spaces.
status = pcap_findalldevs_ex(host_url, NULL, &devlist, ebuf);
free(host_url);
} else
-#endif
+#endif // HAVE_PCAP_FINDALLDEVS_EX
status = pcap_findalldevs(&devlist, ebuf);
if (status < 0)
error("%s", ebuf);
"and use %s as the tcpdump interface",
device, newdev, parent, newdev);
}
-#endif
+#endif // __FreeBSD__
else
error("%s: %s", device,
pcap_statustostr(status));
error("SetDllDirectory failed");
free(dll_directory);
-#endif
+#endif // _WIN32
/*
* Initialize the netdissect code.