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

Linux: Fatal exception when trying to list or open capture devices #14

Open
YoRyan opened this issue Jan 11, 2014 · 3 comments
Open

Linux: Fatal exception when trying to list or open capture devices #14

YoRyan opened this issue Jan 11, 2014 · 3 comments

Comments

@YoRyan
Copy link

YoRyan commented Jan 11, 2014

Been experimenting with headless XBSlink on the Odroid U2, a Linux ARM machine.

mono 2.10.9, libpcap 1.5.1, Linux kernel 3.8.13

Linux raptor 3.8.13.14-1-ARCH #3 SMP PREEMPT Mon Dec 30 10:03:31 MST 2013 armv7l GNU/Linux

I can run the XBSlink executable itself just fine and print out the help text, but attempting to use the "-l" option results in a fatal exception. This also happens when attempting to run the program normally and specifying the capture device with "-i eth0".

% mono XBSlink.exe -l
XBSlink Version 0.9.6.0

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at XBSlink.xbs_console_app.loadCaptureDeviceList () [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.initCaptureDeviceList () [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.parse_command_line (System.String[] args) [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.run (XBSlink.xbs_settings settings, System.String[] args) [0x00000] in <filename unknown>:0 
  at XBSlink.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at XBSlink.xbs_console_app.loadCaptureDeviceList () [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.initCaptureDeviceList () [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.parse_command_line (System.String[] args) [0x00000] in <filename unknown>:0 
  at XBSlink.xbs_console_app.run (XBSlink.xbs_settings settings, System.String[] args) [0x00000] in <filename unknown>:0 
  at XBSlink.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

And here's a list of network interfaces on my system:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether be:93:e9:60:c9:5b brd ff:ff:ff:ff:ff:ff
4: dns0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1130 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 500
    link/none 
@KenSharp
Copy link

No change two years later.

@benpicco
Copy link

I had to create a symlink

sudo ln -s libpcap.so.1.8.1 libpcap.so.1.1.1 in /usr/lib/$(uname -m)-linux-gnu

@KenSharp
Copy link

Thanks, that did it. Although you can create a local link so as not to upset the system.

I guess the code is being too specific when looking for libpcap.

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

3 participants