Source-Changes-HG archive

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

[src/trunk]: src/share/examples/rump/virtual_ip_router send routing messages ...



details:   https://anonhg.NetBSD.org/src/rev/cf715086fe61
branches:  trunk
changeset: 756039:cf715086fe61
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jul 04 17:24:10 2010 +0000

description:
send routing messages via routing sucket -- works better than via inet sucket

diffstat:

 share/examples/rump/virtual_ip_router/rumprouter.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 672f3cd5eac7 -r cf715086fe61 share/examples/rump/virtual_ip_router/rumprouter.c
--- a/share/examples/rump/virtual_ip_router/rumprouter.c        Sun Jul 04 15:44:46 2010 +0000
+++ b/share/examples/rump/virtual_ip_router/rumprouter.c        Sun Jul 04 17:24:10 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumprouter.c,v 1.4 2010/07/04 15:44:46 pooka Exp $     */
+/*     $NetBSD: rumprouter.c,v 1.5 2010/07/04 17:24:10 pooka Exp $     */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -126,7 +126,7 @@
        DP("Entering %s\n", __FUNCTION__);
 
        DP("Open a routing socket\n");
-       s = rump_sys_socket(PF_INET, SOCK_DGRAM, 0);
+       s = rump_sys_socket(PF_ROUTE, SOCK_RAW, 0);
        if (s == -1) {
                err(1, "rump_sys_socket");
        }



Home | Main Index | Thread Index | Old Index