Source-Changes-HG archive

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

[src/trunk]: src Use a bit more than 1 byte of space for routing messages.



details:   https://anonhg.NetBSD.org/src/rev/d64649a5063a
branches:  trunk
changeset: 756036:d64649a5063a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jul 04 15:31:04 2010 +0000

description:
Use a bit more than 1 byte of space for routing messages.

diffstat:

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

diffs (36 lines):

diff -r 178bb333a41b -r d64649a5063a share/examples/rump/virtual_ip_router/rumprouter.c
--- a/share/examples/rump/virtual_ip_router/rumprouter.c        Sun Jul 04 15:25:00 2010 +0000
+++ b/share/examples/rump/virtual_ip_router/rumprouter.c        Sun Jul 04 15:31:04 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumprouter.c,v 1.2 2010/03/29 11:01:16 pooka Exp $     */
+/*     $NetBSD: rumprouter.c,v 1.3 2010/07/04 15:31:04 pooka Exp $     */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -116,7 +116,7 @@
        size_t len;
        struct {
                struct rt_msghdr m_rtm;
-               uint8_t m_space;
+               uint8_t m_space[512];
        } m_rtmsg;
 #define rtm m_rtmsg.m_rtm
        uint8_t *bp = &m_rtmsg.m_space;
diff -r 178bb333a41b -r d64649a5063a sys/rump/net/rumptest/rumptest_net.c
--- a/sys/rump/net/rumptest/rumptest_net.c      Sun Jul 04 15:25:00 2010 +0000
+++ b/sys/rump/net/rumptest/rumptest_net.c      Sun Jul 04 15:31:04 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumptest_net.c,v 1.21 2010/05/31 23:13:17 pooka Exp $  */
+/*     $NetBSD: rumptest_net.c,v 1.22 2010/07/04 15:31:04 pooka Exp $  */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -98,7 +98,7 @@
        ssize_t len;
        struct {
                struct rt_msghdr m_rtm;
-               uint8_t m_space;
+               uint8_t m_space[512];
        } m_rtmsg;
 #define rtm m_rtmsg.m_rtm
        uint8_t *bp = &m_rtmsg.m_space;



Home | Main Index | Thread Index | Old Index