C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 06-09-2008, 01:08 PM   #1
Registered User
 
Join Date: Jan 2007
Posts: 40
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.
-IsmAvatar
IsmAvatar2 is offline   Reply With Quote
Old 06-10-2008, 10:25 AM   #2
Registered User
 
Join Date: Jan 2007
Posts: 40
Fixed

I've upgraded to Fedora 9 and reinstalled pcap-devel from yum, and this has fixed the problem.
IsmAvatar2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 12:19 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22