Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNU/Linux "any" device support broken #2

Open
zabbal opened this issue Nov 2, 2012 · 1 comment
Open

GNU/Linux "any" device support broken #2

zabbal opened this issue Nov 2, 2012 · 1 comment

Comments

@zabbal
Copy link

zabbal commented Nov 2, 2012

While trying to open .pcap captured with "any" device in GNU/Linux I receive following error:

"user error (an interface has a type 113 different from the type of the first interface)"

This might to be related to old Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546596

Package installed via "cabal install pcap" on ubuntu 12.10 x86_64 with libpcap0.8-dev

Test program below:

import Network.Pcap
import System.IO
import Control.Monad
import Foreign.Marshal.Array

printCap ph bytep =
peekArray (fromIntegral (hdrCaptureLength ph)) bytep >>= print

main = do
capture <- openOffline "test.pcap"
dispatch capture (-1) printCap

@ntc2
Copy link

ntc2 commented Jun 30, 2017

How did you create the capture file "test.pcap"? I just made the dump* functions usable in #10, and using those dump* functions I can capture from the "any" interface and then read the dump back in with no trouble. I have not tried reading dumps created using other programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants