summaryrefslogtreecommitdiff
path: root/include/net-snmp/library/snmpIPXDomain.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net-snmp/library/snmpIPXDomain.h')
-rw-r--r--include/net-snmp/library/snmpIPXDomain.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/net-snmp/library/snmpIPXDomain.h b/include/net-snmp/library/snmpIPXDomain.h
new file mode 100644
index 0000000..11c2beb
--- /dev/null
+++ b/include/net-snmp/library/snmpIPXDomain.h
@@ -0,0 +1,38 @@
+#ifndef _SNMPIPXDOMAIN_H
+#define _SNMPIPXDOMAIN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <net-snmp/library/snmp_transport.h>
+#include <net-snmp/library/asn1.h>
+#if HAVE_NETIPX_IPX_H
+#include <netipx/ipx.h>
+#endif
+
+#ifndef linux
+ config_error(IPX support unavailable for this platform -Linux only-);
+#endif
+
+netsnmp_transport *netsnmp_ipx_transport(struct sockaddr_ipx *addr, int local);
+
+/*
+ * Convert an textually formatted IPX address into a sockaddr_ipx
+ * structure which is written to *addr. Returns 1 if the conversion
+ * was successful, or 0 if it failed.
+ */
+
+int netsnmp_sockaddr_ipx(struct sockaddr_ipx *addr,
+ const char *peername);
+
+/*
+ * "Constructor" for transport domain object.
+ */
+
+void netsnmp_ipx_ctor(void);
+
+#ifdef __cplusplus
+}
+#endif
+#endif/*_SNMPIPXDOMAIN_H*/