Date: Sat, 9 Aug 2008 22:09:55 +1200 From: Ryan French <rfrench@freebsd.org> To: freebsd-net@freebsd.org Subject: Looking for the FreeBSD equivalent of an OpenBSD function Message-ID: <200808092209.55478.rfrench@freebsd.org>
next in thread | raw e-mail | index | archive | help
Hi all,
First of all thank you for all the help with my question yesterday, my problem
today is unfortunately not something syntactical like the last one.
I am working on moving over code from OpenBSDs implementation ofMPLS to
FreeBSD, and I have run up against a function called 'sysctl_ifq' and I was
wondering if anyone knew of an equivalent in FreeBSD. The code that calls the
function is shown below. Thanks for any help.
int
mpls_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
size_t newlen)
{
if (name[0] >= MPLSCTL_MAXID)
return EOPNOTSUPP;
/* Almost all sysctl names at this level are terminal. */
if (namelen != 1 && name[0] != MPLSCTL_IFQUEUE)
return (ENOTDIR);
switch (name[0]) {
case MPLSCTL_IFQUEUE:
return (sysctl_ifq(name + 1, namelen - 1,
oldp, oldlenp, newp, newlen, &mplsintrq));
default:
return sysctl_int_arr(mplsctl_vars, name, namelen,
oldp, oldlenp, newp, newlen);
}
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808092209.55478.rfrench>
