Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump Add one more component level to networking:...



details:   https://anonhg.NetBSD.org/src/rev/4a5a64d4e4c7
branches:  trunk
changeset: 760694:4a5a64d4e4c7
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 11 09:22:32 2011 +0000

description:
Add one more component level to networking: IFCFG.
It is executed after IF and the purposes to guarantee the right
order in cross-component interface address configuration.
(e.g. lo0 is attached by net but 127.0.0.1 is configured by netinet)

diffstat:

 sys/rump/librump/rumpkern/rump_private.h |  10 +++++++---
 sys/rump/librump/rumpnet/rump_net.c      |   5 +++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 15b2f2ee64fb -r 4a5a64d4e4c7 sys/rump/librump/rumpkern/rump_private.h
--- a/sys/rump/librump/rumpkern/rump_private.h  Tue Jan 11 08:19:34 2011 +0000
+++ b/sys/rump/librump/rumpkern/rump_private.h  Tue Jan 11 09:22:32 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_private.h,v 1.67 2011/01/09 12:20:10 pooka Exp $  */
+/*     $NetBSD: rump_private.h,v 1.68 2011/01/11 09:22:32 pooka Exp $  */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -56,9 +56,13 @@
 
 enum rump_component_type {
        RUMP_COMPONENT_DEV,
-       RUMP_COMPONENT_NET, RUMP_COMPONENT_NET_ROUTE, RUMP_COMPONENT_NET_IF,
+       RUMP_COMPONENT_NET,
+               RUMP_COMPONENT_NET_ROUTE,
+               RUMP_COMPONENT_NET_IF,
+               RUMP_COMPONENT_NET_IFCFG,
        RUMP_COMPONENT_VFS,
-       RUMP_COMPONENT_KERN, RUMP_COMPONENT_KERN_VFS,
+       RUMP_COMPONENT_KERN,
+               RUMP_COMPONENT_KERN_VFS,
        RUMP_COMPONENT_MAX,
 };
 struct rump_component {
diff -r 15b2f2ee64fb -r 4a5a64d4e4c7 sys/rump/librump/rumpnet/rump_net.c
--- a/sys/rump/librump/rumpnet/rump_net.c       Tue Jan 11 08:19:34 2011 +0000
+++ b/sys/rump/librump/rumpnet/rump_net.c       Tue Jan 11 09:22:32 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_net.c,v 1.12 2010/03/01 13:12:20 pooka Exp $      */
+/*     $NetBSD: rump_net.c,v 1.13 2011/01/11 09:22:33 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_net.c,v 1.12 2010/03/01 13:12:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_net.c,v 1.13 2011/01/11 09:22:33 pooka Exp $");
 
 #include <sys/param.h>
 
@@ -59,6 +59,7 @@
        rump_component_init(RUMP_COMPONENT_NET);
        rump_component_init(RUMP_COMPONENT_NET_ROUTE);
        rump_component_init(RUMP_COMPONENT_NET_IF);
+       rump_component_init(RUMP_COMPONENT_NET_IFCFG);
        rump_net_components();
 
        rump_netisr_init();



Home | Main Index | Thread Index | Old Index