diff options
author | Stef Walter <stef@memberwebs.com> | 2009-10-24 14:10:37 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-10-24 14:10:37 +0000 |
commit | 54c751ffc4f79dcd916b4dffe690f59615c7146d (patch) | |
tree | 33664990f79460c120a6e00ba88026664cc46abb /common/snmp-engine.h | |
parent | b6c94d893237f4c339a1ad9ede7b809811001f77 (diff) |
Add back support for ports in snmp urls.
* Note that for urls like: snmp://host1,host2:161/xxx the
port applies to both hosts.
Diffstat (limited to 'common/snmp-engine.h')
-rw-r--r-- | common/snmp-engine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/snmp-engine.h b/common/snmp-engine.h index 98a45e5..59c733d 100644 --- a/common/snmp-engine.h +++ b/common/snmp-engine.h @@ -8,16 +8,16 @@ typedef void (*snmp_response) (int request, int code, struct snmp_value *value, void snmp_engine_init (const char *bind_address, int retries); -int snmp_engine_request (const char* host, const char* community, int version, - uint64_t interval, uint64_t timeout, int reqtype, +int snmp_engine_request (const char* host, const char *port, const char* community, + int version, uint64_t interval, uint64_t timeout, int reqtype, struct asn_oid *oid, snmp_response func, void *data); void snmp_engine_cancel (int reqid); void snmp_engine_flush (void); -int snmp_engine_sync (const char* host, const char* community, int version, - uint64_t interval, uint64_t timeout, int reqtype, +int snmp_engine_sync (const char* host, const char *port, const char* community, + int version, uint64_t interval, uint64_t timeout, int reqtype, struct snmp_value *value); void snmp_engine_stop (void); |