Subject: freebsd emulation problem
To: None <port-i386@netbsd.org>
From: Brian Waters <jbw@pub.bbin.com>
List: port-i386
Date: 09/01/2004 13:35:37
I am trying to get a progranm to run under the freebsd emulation
mode. It is not working due to a call to sysctl. I am running 1.6.2
It does something like this I am told
struct sockaddr_dl *sdl;
struct if_msghdr *ifm, *n_ifm;
struct ifa_msghdr *ifam;
int mib[6] = {CTL_NET, PF_ROUTE, 0, 0, NET_RT_IFLIST, 0};
size_t need_mem;
int flags;
char *buf, *lim, *next;
/* We need to issue some sysctl() calls to find the interface(s) */
if (sysctl(mib, 6, NULL, &need_mem, NULL, 0) < 0) {
which gives an error of Invaliud argument. Any one familar enough
with this code to make a patch that can get this working?