diff options
author | harti <harti@FreeBSD.org> | 2004-01-23 10:44:47 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-01-23 10:44:47 +0000 |
commit | 37f8604ae2d6123aca70878041cfad4e857aae0a (patch) | |
tree | 064e02524b69deb956e22716b5e049d1e4c9f066 /contrib/bsnmp/lib/snmpclient.h | |
parent | ca3ba04f7363860ece02c8042bffc3db8c209dfb (diff) | |
download | FreeBSD-src-37f8604ae2d6123aca70878041cfad4e857aae0a.zip FreeBSD-src-37f8604ae2d6123aca70878041cfad4e857aae0a.tar.gz |
Virgin import of bsnmpd 1.5a
Diffstat (limited to 'contrib/bsnmp/lib/snmpclient.h')
-rw-r--r-- | contrib/bsnmp/lib/snmpclient.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/bsnmp/lib/snmpclient.h b/contrib/bsnmp/lib/snmpclient.h index 700d020..80acb14 100644 --- a/contrib/bsnmp/lib/snmpclient.h +++ b/contrib/bsnmp/lib/snmpclient.h @@ -31,7 +31,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Begemot: bsnmp/lib/snmpclient.h,v 1.15 2002/12/11 15:54:07 hbb Exp $ + * $Begemot: bsnmp/lib/snmpclient.h,v 1.17 2003/12/08 17:11:58 hbb Exp $ */ #ifndef _BSNMP_SNMPCLIENT_H #define _BSNMP_SNMPCLIENT_H @@ -47,6 +47,12 @@ #define SNMP_LOCAL_PATH "/tmp/snmpXXXXXXXXXXXXXX" +/* + * transport methods + */ +#define SNMP_TRANS_UDP 0 +#define SNMP_TRANS_LOC_DGRAM 1 +#define SNMP_TRANS_LOC_STREAM 2 /* type of callback function for responses * this callback function is responsible for free() any memory associated with @@ -68,7 +74,7 @@ typedef void (*snmp_timeout_stop_f)(void *timeout_id); */ struct snmp_client { enum snmp_version version; - int local; /* use local socket */ + int trans; /* which transport to use */ /* these two are read-only for the application */ char *cport; /* port number as string */ |