Deleted Added
full compact
1.\"
2.\" Copyright (c) 2001-2003
3.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4.\" All rights reserved.
5.\"
6.\" Author: Harti Brandt <harti@freebsd.org>
7.\"
8.\" Redistribution of this software and documentation and use in source and

--- 16 unchanged lines hidden (view full) ---

25.\" FRAUNHOFER FOKUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28.\" OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32.\"
33.\" $Begemot: bsnmp/snmp_mibII/snmp_mibII.3,v 1.2 2003/12/03 10:01:19 hbb Exp $
33.\" $Begemot: bsnmp/snmp_mibII/snmp_mibII.3,v 1.3 2004/04/13 17:01:31 novo Exp $
34.\"
35.Dd August 19, 2002
36.Dt snmp_mibII 3
37.Os
38.Sh NAME
39.Nm mibII ,
40.Nm mibif_notify_f ,
41.Nm mib_netsock ,
42.Nm mib_if_set_dyn ,
43.Nm mib_refresh_iflist ,
44.Nm mib_find_if ,
45.Nm mib_find_if_sys ,
46.Nm mib_find_if_name ,
47.Nm mib_first_if ,

--- 9 unchanged lines hidden (view full) ---

57.Nm mib_ifstack_delete ,
58.Nm mib_find_rcvaddr ,
59.Nm mib_rcvaddr_create ,
60.Nm mib_rcvaddr_delete ,
61.Nm mibif_notify ,
62.Nm mibif_unnotify
63.Nd "mib-2 module for snmpd.
64.Sh LIBRARY
64.Pq begemotSnmpdModulePath."mibII" = "/usr/local/lib/snmp_mibII.so"
65.Pq begemotSnmpdModulePath."mibII" = "@MODPATH@snmp_mibII.so"
66.Sh SYNOPSIS
67.In bsnmp/snmpmod.h
68.In bsnmp/snmp_mibII.h
69.Ft typedef void
70.Fn (*mibif_notify_f) "struct mibif *ifp" "enum mibif_notify event" "void *uarg"
71.Vt extern int mib_netsock ;
72.Ft void
73.Fn mib_if_set_dyn "const char *ifname"

--- 38 unchanged lines hidden (view full) ---

112.Ft void
113.Fn mibif_unnotify "void *reg"
114.Sh DESCRIPTION
115The
116.Nm snmp_mibII
117module implements parts of the internet standard MIB-2. Most of the relevant
118MIBs are implemented. Some of the tables are restricted to be read-only
119instead of read-write. The exact current implementation can be found in
119.Pa /usr/local/include/bsnmp/mibII_tree.def .
120.Pa @DEFPATH@mibII_tree.def .
121The module also exports a number of functions and global variables for use
122by other modules, that need to handle network interfaces. This man page describes
123these functions.
124.Ss DIRECT NETWORK ACCESS
125The
126.Nm
127module opens a socket that is used to execute all network related
128.Xr ioctl 2

--- 200 unchanged lines hidden (view full) ---

329A table entry is created with
330.Fn mib_ifstack_create
331and deleted with
332.Fn mib_ifstack_delete .
333Both functions need the pointers to the interfaces. Entries are automatically
334deleted if any of the interfaces of the entry is destroyed. The functions handle
335both the stack table and the reverse stack table.
336.Sh FILES
336.Bl -tag -width ".It Pa /usr/local/include/bsnmp/mibII_tree.def" -compact
337.It Pa /usr/local/include/bsnmp/mibII_tree.def
337.Bl -tag -width ".It Pa @DEFPATH@mibII_tree.def" -compact
338.It Pa @DEFPATH@mibII_tree.def
339The description of the MIB tree implemented by
340.Nm .
341.It Pa /usr/local/share/snmp/mibs
342.It Pa @MIBSPATH@
343The various internet MIBs.
344.Sh SEE ALSO
345.Xr snmpmod 3 ,
346.Xr gensnmptree 1
347.Sh STANDARDS
348This implementation conforms to the applicable IETF RFCs.
349.Sh AUTHORS
348.An Hartmut Brandt Aq brandt@fokus.gmd.de
350.An Hartmut Brandt Aq harti@freebsd.org