1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifdef HAVE_CONFIG_H
- #include <config.h>
- #endif
- #include <string.h>
- #include "pcap-int.h"
- static char nosup[] = "live packet capture not supported on this system";
- pcap_t *
- pcap_create_interface(const char *device _U_, char *ebuf)
- {
- (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
- return (NULL);
- }
- int
- pcap_platform_finddevs(pcap_if_list_t *devlistp, char *errbuf)
- {
-
- return (0);
- }
- #ifdef _WIN32
- int
- pcap_lookupnet(const char *device _U_, bpf_u_int32 *netp _U_,
- bpf_u_int32 *maskp _U_, char *errbuf)
- {
- (void)strlcpy(errbuf, nosup, PCAP_ERRBUF_SIZE);
- return (-1);
- }
- #endif
- const char *
- pcap_lib_version(void)
- {
- return (PCAP_VERSION_STRING);
- }
|