Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / library / snmpUDPDomain.h
1 #ifndef _SNMPUDPDOMAIN_H
2 #define _SNMPUDPDOMAIN_H
3
4 #ifdef __cplusplus
5 extern          "C" {
6 #endif
7
8 #include <net-snmp/library/snmp_transport.h>
9 #include <net-snmp/library/asn1.h>
10
11 #if HAVE_SYS_SOCKET_H
12 #include <sys/socket.h>
13 #endif
14 #if HAVE_NETINET_IN_H
15 #include <netinet/in.h>
16 #endif
17
18 netsnmp_transport *netsnmp_udp_transport(struct sockaddr_in *addr, int local);
19
20
21 /*
22  * Convert a "traditional" peername into a sockaddr_in structure which is
23  * written to *addr.  Returns 1 if the conversion was successful, or 0 if it
24  * failed.  
25  */
26
27 int             netsnmp_sockaddr_in(struct sockaddr_in *addr,
28                                     const char *peername, int remote_port);
29
30
31 /*
32  * Register any configuration tokens specific to the agent.  
33  */
34
35 void            netsnmp_udp_agent_config_tokens_register(void);
36
37 void            netsnmp_udp_parse_security(const char *token, char *param);
38
39 int             netsnmp_udp_getSecName(void *opaque, int olength,
40                                        const char *community,
41                                        size_t community_len,
42                                        char **secname);
43
44 /*
45  * "Constructor" for transport domain object.  
46  */
47
48 void            netsnmp_udp_ctor(void);
49
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif/*_SNMPUDPDOMAIN_H*/