~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to include/net-snmp/library/snmpUnixDomain.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _SNMPUNIXDOMAIN_H
 
2
#define _SNMPUNIXDOMAIN_H
 
3
 
 
4
#ifdef SNMP_TRANSPORT_UNIX_DOMAIN
 
5
 
 
6
#ifdef __cplusplus
 
7
extern          "C" {
 
8
#endif
 
9
 
 
10
#if HAVE_SYS_SOCKET_H
 
11
#include <sys/socket.h>
 
12
#endif
 
13
#if HAVE_SYS_UN_H
 
14
#include <sys/un.h>
 
15
#endif
 
16
 
 
17
#include <net-snmp/library/snmp_transport.h>
 
18
#include <net-snmp/library/asn1.h>
 
19
 
 
20
extern oid netsnmp_UnixDomain[10];   /*  = { ENTERPRISE_MIB, 3, 3, 2 };  */
 
21
 
 
22
netsnmp_transport *netsnmp_unix_transport(struct sockaddr_un *addr,
 
23
                                          int local);
 
24
void netsnmp_unix_agent_config_tokens_register(void);
 
25
void netsnmp_unix_parse_security(const char *token, char *param);
 
26
int netsnmp_unix_getSecName(void *opaque, int olength,
 
27
                            const char *community,
 
28
                            size_t community_len, char **secName);
 
29
 
 
30
 
 
31
/*
 
32
 * "Constructor" for transport domain object.  
 
33
 */
 
34
 
 
35
void            netsnmp_unix_ctor(void);
 
36
 
 
37
#ifdef __cplusplus
 
38
}
 
39
#endif
 
40
#endif                          /*SNMP_TRANSPORT_UNIX_DOMAIN */
 
41
 
 
42
#endif/*_SNMPUNIXDOMAIN_H*/