pcap and ipv6
I'm writing a C program using pcap in which it sniffs for ipv6 packets, specifically ones of type icmp6. I know the filter for this is "ip6 proto icmp6", however during runtime it crashes with "ip6 not supported".
In case it's relevant, I have a Fedora 6 box, and installed pcap with yum install libpcap-devel, and it is version 0.9.8 (the latest as of this post)
My search turned up that ipv6 is disabled on pcap by default (you'd think in this day and age they'd enable it...). To enable it, I'd do configure --enable-ipv6 BUT I don't have a configure file because I installed through yum. I would consider using a custom build of pcap from source with that option enabled to be pretty much out of the question, because we plan to run it on the company server.
So my question is if there's some kind of workaround, to maybe enable ipv6 on a prebuilt pcap, or to alter the filter to some kind of workaround, because quite frankly, sniffing through every single packet that passes through the network and pulling out ipv6 icmp6 ones by hand is not feasible with our traffic.
Thanks in advance, and I really hope someone can help. I've been pulling my hair out over hours of searching for it.
I've upgraded to Fedora 9 and reinstalled pcap-devel from yum, and this has fixed the problem.