Hello,

I'm having trouble bringing up my tun device that I've created. Running 
ifconfig doesn't show the device, but ifconfig -a does.

This is a problem because I want to be able to use wireshark to see
packets going to and coming from the device. At the moment I have to run 
my program in a debugger and use a breakpoint to stop it, then run 
ifconfig dev_name up so that I can capture packets on the device in 
wireshark, then continue execution.

I've been looking at the tun_open function in vpnc (which I think they 
borrowed from you) to see how it brings its device up. The reason I'm 
using vpnc and not vtun is because it's less complicated to set up a 
test (I use it for the VPN at my university).

Running strace shows that the only ioctl it runs on the device is 
TUNSETIFF, which I also do, and the flags set in the ifreq struct it 
gives as an argument are the same as mine. I thought IFF_UP looked 
promising but setting this in the ifreq flags doesn't seem to do 
anything. Do I need to send IFF_UP to somewhere else?

Any help would be greatly appreciated. Sorry this isn't 100% related to 
vtun development, it was the best place I could think to ask.

Thanks,

Nick.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
VTun-devel mailing list
VTun-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vtun-devel

Reply via email to