diff options
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 1ee10ddb..ae29bf57 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -6916,3 +6916,22 @@ reset_kernel_filter(pcap_t *handle) return 0; } #endif + +/* + * Platform-specific information. + */ +const char * +pcap_platform_lib_version(void) +{ +#ifdef HAVE_PACKET_RING + #if defined(HAVE_TPACKET3) + return ("with TPACKET_V{1,2,3} support"); + #elif defined(HAVE_TPACKET2) + return ("with TPACKET_V{1,2} support"); + #else + return ("with TPACKET_V1 support"); + #endif +#else + return ("without TPACKET support"); +#endif +} |