What about the PCAP_VERSION_MAJOR and PCAP_VERSION_MINOR constants? Do they hold what you need?
Update: I think the values for these constants come from lipcap's pcap_major_version and pcap_minor_version functions.
According to the man page,
pcap_major_version() returns the major number of the file format of the savefile; pcap_minor_version() returns the minor number of the file format of the savefile. The version number is stored in the header of the savefile.
Not quite what you want. What you want is Net::Pcap's lib_version function. It calls libpcap's pcap_lib_version function.
According to the man page,
pcap_lib_version() returns a pointer to a string giving information about the version of the libpcap library being used; note that it contains more information than just a version number.
In reply to Re: libpcap version
by ikegami
in thread libpcap version
by swaroop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |