[Lguest] [RFC 4/6] lguest: Sockets are opened for address families, not protocol families

Sakari Ailus sakari.ailus at iki.fi
Sun Sep 2 02:07:46 EST 2012


The underlying definition is the same so this is a very minor issue.

Signed-off-by: Sakari Ailus <sakari.ailus at iki.fi>
---
 tools/lguest/lguest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index 9b262ec..a903631 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -1523,7 +1523,7 @@ static void setup_tun_net(char *arg)
 	 * We need a socket to perform the magic network ioctls to bring up the
 	 * tap interface, connect to the bridge etc.  Any socket will do!
 	 */
-	ipfd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP);
+	ipfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
 	if (ipfd < 0)
 		err(1, "opening IP socket");
 
-- 
1.7.2.5



More information about the Lguest mailing list