winpcap c++ and ipv6

Hello... It might be a simple enough problem, but I'm stuck solving it for two days now. I've been trying to apply an ipv6 filter on winpcap, the device is opened and for now, i've hardcoded a sample ipv6 address. The problem is that whenever I run this code, pcap_compile returns an error message: "bogus ipv6 address". Does anyone have any suggestions?

1
2
3
4
5
6
7
8
9
10
filter = "host fe80:0:0:0:959e:e0b:4700:4deb";
auto result = pcap_compile(pcapDevice.get(), &filterProgram, filter.c_str(), 1, netMask);
if (result < 0)
{
   std::string pcapErrorMessage(pcap_geterr(pcapDevice.get()));
   throw MyException("Failed to set compile the given filter:", pcapErrorMessage);
}
         
if (pcap_setfilter(pcapDevice.get(), &filterProgram) < 0)
   throw MyException("Failed to set the filter");

Topic archived. No new replies allowed.