RE: tun setup (routing?) issue in head

From: Li, Qing <qing.li_at_bluecoat.com>
Date: Mon, 25 Jan 2010 07:52:56 -0800
Yes, the failure is due to route installation. To make a long story short, many of the
scripts that worked before not necessary because of the right reasons. 
 
I have been very busy at work, but I do have a patch and I will try to get it 
finalized shortly.
 
-- Qing
 

________________________________

From: owner-freebsd-current_at_freebsd.org on behalf of Andriy Gapon
Sent: Mon 1/25/2010 4:47 AM
To: freebsd-net_at_freebsd.org; freebsd-current_at_freebsd.org
Subject: tun setup (routing?) issue in head




I've updated my HEAD amd64 system from December's sources to something more recent
and I've got problems with security/vpnc. To be precise vpnc itself seems to work
as good as before but its post-connect script is now failing:

$ ifconfig tun0 inet 10.99.15.144 10.99.15.144 netmask 255.255.255.255 mtu 1412 up
ifconfig: ioctl (SIOCAIFADDR): File exists

Where tun0 is an interface created by vpnc.
ktrace gives this:
ifconfig CALL  socket(PF_INET,SOCK_DGRAM,IPPROTO_IP)
ifconfig RET   socket 3
ifconfig CALL  ioctl(0x3,SIOCSIFMTU,0x525a60)
ifconfig RET   ioctl 0
ifconfig CALL  ioctl(0x3,SIOCGIFFLAGS,0x7fffffffda30)
ifconfig RET   ioctl 0
ifconfig CALL  ioctl(0x3,SIOCSIFFLAGS,0x7fffffffda30)
ifconfig RET   ioctl 0
ifconfig CALL  ioctl(0x3,SIOCDIFADDR,0x525380)
ifconfig RET   ioctl -1 errno 49 Can't assign requested address
ifconfig CALL  ioctl(0x3,SIOCAIFADDR,0x525340)
ifconfig RET   ioctl -1 errno 17 File exists
ifconfig CALL  write(0x2,0x7fffffffd2d0,0xa)

So, what's happening?
Do you I have to update the ifconfig command?
Or is there some issue in the networking code?

BTW, I also get the following messages in the system log when vpnc is started:
kernel: tun0: link state changed to UP
kernel: ifa_add_loopback_route: insertion failed
I have net.link.tap.up_on_open=1 in sysctl.conf if that matters.

--
Andriy Gapon
_______________________________________________
freebsd-current_at_freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Mon Jan 25 2010 - 14:54:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC