Deleted Added
full compact
bsnmpclient.3 (133211) bsnmpclient.3 (142810)
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 and use in source and binary forms, with or without

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

21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
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 and use in source and binary forms, with or without

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

21.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.\" $Begemot: bsnmp/lib/bsnmpclient.3,v 1.7 2004/08/06 08:46:52 brandt Exp $
29.\" $Begemot: bsnmp/lib/bsnmpclient.3,v 1.8 2005/02/25 11:55:58 brandt_h Exp $
30.\"
31.Dd August 15, 2002
30.\"
31.Dd August 15, 2002
32.Dt bsnmpclient 3
32.Dt BSNMPCLIENT 3
33.Os
34.Sh NAME
35.Nm snmp_client ,
36.Nm snmp_send_cb_f ,
37.Nm snmp_timeout_cb_f ,
38.Nm snmp_timeout_start_f ,
39.Nm snmp_timeout_stop_f ,
40.Nm snmp_open ,

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

140.Bl -tag -width "timeout_start"
141.It Va version
142This is the version of SNMP to use. See
143.Xr bsnmplib 3
144for applicable values. The default version is
145.Li SNMP_V2c .
146.It Va trans
147If this is
33.Os
34.Sh NAME
35.Nm snmp_client ,
36.Nm snmp_send_cb_f ,
37.Nm snmp_timeout_cb_f ,
38.Nm snmp_timeout_start_f ,
39.Nm snmp_timeout_stop_f ,
40.Nm snmp_open ,

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

140.Bl -tag -width "timeout_start"
141.It Va version
142This is the version of SNMP to use. See
143.Xr bsnmplib 3
144for applicable values. The default version is
145.Li SNMP_V2c .
146.It Va trans
147If this is
148.Dv SNMP_TRANS_LOC_DGRAM
148.Dv SNMP_TRANS_LOC_DGRAM
149a local datagram socket is used.
150If it is
149a local datagram socket is used.
150If it is
151.Dv SNMP_TRANS_LOC_STREAM
151.Dv SNMP_TRANS_LOC_STREAM
152a local stream socket is used.
152a local stream socket is used.
153For
153For
154.Dv SNMP_TRANS_UDP
155a UDP socket is created.
156It uses the
157.Va chost
158field as the path to the server's socket for local sockets.
159.It Va cport
160The SNMP agent's UDP port number. This may be a symbolic port number (from
161.Pa /etc/services

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

232.Fn timeout_start
233function.
234.It Va local_path
235If in local socket mode, the name of the clients socket. Not needed by the
236application.
237.El
238.Pp
239In the current implementation there is a global variable
154.Dv SNMP_TRANS_UDP
155a UDP socket is created.
156It uses the
157.Va chost
158field as the path to the server's socket for local sockets.
159.It Va cport
160The SNMP agent's UDP port number. This may be a symbolic port number (from
161.Pa /etc/services

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

232.Fn timeout_start
233function.
234.It Va local_path
235If in local socket mode, the name of the clients socket. Not needed by the
236application.
237.El
238.Pp
239In the current implementation there is a global variable
240.Bd -unfilled -offset indent
241.Vt extern struct snmp_client snmp_client ;
242.Ed
243.Pp
240.Pp
241.D1 Vt extern struct snmp_client snmp_client ;
242.Pp
244that is used by all the library functions. The first call into the library must
245be a call to
246.Fn snmp_client_init
247to initialize this global variable to the default values.
248After this call and before calling
249.Fn snmp_open
250the fields of the variable may be modified by the user.
251The modification of the

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

575.Sh DIAGNOSTICS
576If an error occures in any of the function an error indication as described
577above is returned. Additionally the function sets a printable error string
578in the
579.Va error
580filed of
581.Va snmp_client .
582.Sh SEE ALSO
243that is used by all the library functions. The first call into the library must
244be a call to
245.Fn snmp_client_init
246to initialize this global variable to the default values.
247After this call and before calling
248.Fn snmp_open
249the fields of the variable may be modified by the user.
250The modification of the

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

574.Sh DIAGNOSTICS
575If an error occures in any of the function an error indication as described
576above is returned. Additionally the function sets a printable error string
577in the
578.Va error
579filed of
580.Va snmp_client .
581.Sh SEE ALSO
583.Xr snmpd 1 ,
584.Xr gensnmptree 1 ,
582.Xr gensnmptree 1 ,
583.Xr snmpd 1 ,
584.Xr bsnmpagent 3 ,
585.Xr bsnmplib 3
585.Xr bsnmplib 3
586.Xr bsnmpagent 3
587.Sh STANDARDS
588This implementation conforms to the applicable IETF RFCs and ITU-T
589recommendations.
590.Sh AUTHORS
591.An Hartmut Brandt Aq harti@freebsd.org
592.An Kendy Kutzner Aq kutzner@fokus.gmd.de
586.Sh STANDARDS
587This implementation conforms to the applicable IETF RFCs and ITU-T
588recommendations.
589.Sh AUTHORS
590.An Hartmut Brandt Aq harti@freebsd.org
591.An Kendy Kutzner Aq kutzner@fokus.gmd.de