[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-devel] OpenVPN 2.1-rc5 released


  • Subject: Re: [Openvpn-devel] OpenVPN 2.1-rc5 released
  • From: "Alon Bar-Lev" <alon.barlev@xxxxxxxxx>
  • Date: Fri, 25 Jan 2008 20:57:07 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=KsAMN7D7b3wTEM+YClPb9jY8KOu1cXgOc2Z1wPuLxmA=; b=SovkAh0HUVz3gvc3xMq7o4K+Gd0+xtTyWCmev4uPnqBriX8Bh30Jm1KRqS4r3qZjm/THL1t3BGcLfOfwTCUHTEQBcXyiffGnpsFLVaGCaojtnN7opbVc/BdRNOsm9bhY1e7nBz2sBDbWsNpHtI6kRVo45ahLTltulalJT7F/7JQ=

Thanks!
I was not aware of the null tun.
The following should fix the problem.

-r 2677:2679 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Alon.

On 1/25/08, Steven Pritchard <steve@xxxxxxxxx> wrote:
> Trying to build the Fedora package for rc6, I'm getting an error from
> %check, which basically does this:
>
>   ./openvpn --config sample-config-files/loopback-client &
>   ./openvpn --config sample-config-files/loopback-server
>   wait
>
> I'm getting the following error:
>
>   Thu Jan 24 14:15:33 2008 /sbin/ip addr flush dev null
>   Device "null" does not exist.
>   Thu Jan 24 14:15:33 2008 Linux ip flush failed: shell command exited with error status: 255
>
> Full build log here:
>
>   http://koji.fedoraproject.org/koji/getfile?taskID=370966&name=build.log
>
> Steve
> --
> Steven Pritchard - K&S Pritchard Enterprises, Inc.
> Email: steve@xxxxxxxxx             http://www.kspei.com/
> Phone: (618)624-4440               Mobile: (618)567-7320
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Openvpn-devel mailing list
> Openvpn-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
Index: openvpn/tun.c
===================================================================
--- openvpn/tun.c	(revision 2677)
+++ openvpn/tun.c	(revision 2679)
@@ -1221,17 +1221,20 @@
   if (tt)
     {
 #ifdef CONFIG_FEATURE_IPROUTE
-	char command_line[256];
-	/*
-	 * Flush IP configuration for the device
-	 */
-	openvpn_snprintf (command_line, sizeof (command_line),
+	if (tt->type != DEV_TYPE_NULL)
+	  {
+	    char command_line[256];
+	    /*
+	     * Flush IP configuration for the device
+	     */
+	    openvpn_snprintf (command_line, sizeof (command_line),
 			  "%s addr flush dev %s",
 			  iproute_path,
 			  tt->actual_name
 			  );
-	msg (M_INFO, "%s", command_line);
-	system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+	    msg (M_INFO, "%s", command_line);
+	    system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+	  }
 #endif
       close_tun_generic (tt);
       free (tt);