Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/net/lib/libnetinet Raise lo0 so that ipv6 config ge...



details:   https://anonhg.NetBSD.org/src/rev/59478c30407c
branches:  trunk
changeset: 787741:59478c30407c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jun 30 16:04:36 2013 +0000

description:
Raise lo0 so that ipv6 config gets done for it.

Requested and tested by Justin Cormack.

diffstat:

 sys/rump/net/lib/libnetinet/component.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 1ca1164a2322 -r 59478c30407c sys/rump/net/lib/libnetinet/component.c
--- a/sys/rump/net/lib/libnetinet/component.c   Sun Jun 30 15:42:43 2013 +0000
+++ b/sys/rump/net/lib/libnetinet/component.c   Sun Jun 30 16:04:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.5 2011/01/11 09:24:06 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.6 2013/06/30 16:04:36 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.5 2011/01/11 09:24:06 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.6 2013/06/30 16:04:36 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/domain.h>
@@ -84,5 +84,6 @@
        sin->sin_addr.s_addr = inet_addr("127.255.255.255");
 
        in_control(so, SIOCAIFADDR, &ia, lo0ifp, curlwp);
+       if_up(lo0ifp);
        soclose(so);
 }



Home | Main Index | Thread Index | Old Index