Looking for the FreeBSD equivalent of an OpenBSD function

Ryan French rfrench at freebsd.org
Sat Aug 9 10:09:56 UTC 2008


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);
        }
}


More information about the freebsd-net mailing list