Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 16:59:26 +0200
From:      Juan Francisco Rodriguez Hervella <jrh@it.uc3m.es>
To:        freebsd-net@freebsd.org
Subject:   sysctl inferface question
Message-ID:  <3D2D9D4E.74A1B6F4@it.uc3m.es>

next in thread | raw e-mail | index | archive | help
Hello:

I'm very confused with the sysctl internals.

For example, looking at the kernel source code of FreeBSD, I've realized

of the following:

netinet/in_proco.c:
            SYSCTL_NODE(_net_inet6, IPPROTO_DIVERT,     divert,
CTLFLAG_RW, 0,  "DIVERT");
netinet/ip_divert.c:
            SYSCTL_DECL(_net_inet_divert);
netinet/ip_divert.c:
            SYSCTL_PROC(_net_inet_divert, OID_AUTO, pcblist, CTLFLAG_RD,
0, 0,
            div_pcblist, "S,xinpcb", "List of active divert sockets");

Isn't this redundant ? I mean, if there is a "SYSCTL_NODE", there is
*no* need for having
"SYSCTL_DECL" in "ip_divert.c"... I am wrong ?

Also, I don't undertand the meaning of the "fmt" field....what is it for
? What's the
meaning of "S,xinpcb" in the above example ?

Thanks.

--
JFRH.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2D9D4E.74A1B6F4>