From f8397280aef0c30aadfe9e2b366bfce4f0b0fcb1 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Tue, 20 Oct 2009 14:13:24 +0000 Subject: [PATCH] 2009-10-20 Till Straumann PR1424/networking * libnetworking/net/rtsock.c: (merged from BSD) copy information out to user buffer. --- cpukit/ChangeLog | 6 ++++++ cpukit/libnetworking/net/rtsock.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index c62ef53ca1..77997f126a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2009-10-20 Till Straumann + + PR1424/networking + * libnetworking/net/rtsock.c: (merged from BSD) copy information + out to user buffer. + 2009-10-20 Sebastian Huber * libblock/include/rtems/ramdisk.h: Documentation. diff --git a/cpukit/libnetworking/net/rtsock.c b/cpukit/libnetworking/net/rtsock.c index e91816ab62..9fd57389b8 100644 --- a/cpukit/libnetworking/net/rtsock.c +++ b/cpukit/libnetworking/net/rtsock.c @@ -670,7 +670,7 @@ sysctl_dumpentry(struct radix_node *rn, void *vw) rtm->rtm_index = rt->rt_ifp->if_index; rtm->rtm_errno = rtm->rtm_pid = rtm->rtm_seq = 0; rtm->rtm_addrs = info.rti_addrs; - error = 0; + error = SYSCTL_OUT(w->w_req, (caddr_t)rtm, size); return (error); } return (error);