00001 #ifndef _SNMPUNIXDOMAIN_H
00002 #define _SNMPUNIXDOMAIN_H
00003
00004 #ifdef SNMP_TRANSPORT_UNIX_DOMAIN
00005
00006 #ifdef __cplusplus
00007 extern "C" {
00008 #endif
00009
00010 #if HAVE_SYS_SOCKET_H
00011 #include <sys/socket.h>
00012 #endif
00013 #if HAVE_SYS_UN_H
00014 #include <sys/un.h>
00015 #endif
00016
00017 #include <net-snmp/library/snmp_transport.h>
00018 #include <net-snmp/library/asn1.h>
00019
00020
00021
00022
00023
00024
00025 #define TRANSPORT_DOMAIN_LOCAL 1,3,6,1,2,1,100,1,13
00026 extern oid netsnmp_UnixDomain[];
00027
00028 netsnmp_transport *netsnmp_unix_transport(struct sockaddr_un *addr,
00029 int local);
00030 void netsnmp_unix_agent_config_tokens_register(void);
00031 void netsnmp_unix_parse_security(const char *token, char *param);
00032 int netsnmp_unix_getSecName(void *opaque, int olength,
00033 const char *community,
00034 size_t community_len, char **secName,
00035 char **contextName);
00036
00037
00038
00039
00040
00041
00042 void netsnmp_unix_ctor(void);
00043
00044 #ifdef __cplusplus
00045 }
00046 #endif
00047 #endif
00048
00049 #endif