From owner-freebsd-current@FreeBSD.ORG Mon Jan 25 16:02:07 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BEB7106566C; Mon, 25 Jan 2010 16:02:07 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4BBC78FC12; Mon, 25 Jan 2010 16:02:05 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA19719; Mon, 25 Jan 2010 18:01:08 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4B5DC043.7030806@icyb.net.ua> Date: Mon, 25 Jan 2010 18:01:07 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.23 (X11/20091206) MIME-Version: 1.0 To: "Li, Qing" References: <4B5D92C7.8070908@icyb.net.ua> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: tun setup (routing?) issue in head X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 16:02:07 -0000 on 25/01/2010 17:52 Li, Qing said the following: > 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. I see, cool! Perhaps there is some interim work-around for this issue? I can not access my work VPN because of this and I don't like having to roll back my kernel. > From: owner-freebsd-current@freebsd.org on behalf of Andriy Gapon > Sent: Mon 1/25/2010 4:47 AM > To: freebsd-net@freebsd.org; freebsd-current@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > -- Andriy Gapon