snmpIPXDomain.h 918 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _SNMPIPXDOMAIN_H
  2. #define _SNMPIPXDOMAIN_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <net-snmp/library/snmp_transport.h>
  7. #include <net-snmp/library/asn1.h>
  8. #if HAVE_NETIPX_IPX_H
  9. #include <netipx/ipx.h>
  10. #endif
  11. #ifndef linux
  12. config_error(IPX support unavailable for this platform -Linux only-);
  13. #endif
  14. netsnmp_transport *netsnmp_ipx_transport(const struct sockaddr_ipx *addr,
  15. int local);
  16. /*
  17. * Convert an textually formatted IPX address into a sockaddr_ipx
  18. * structure which is written to *addr. Returns 1 if the conversion
  19. * was successful, or 0 if it failed.
  20. */
  21. int netsnmp_sockaddr_ipx(struct sockaddr_ipx *addr,
  22. const char *peername);
  23. /*
  24. * "Constructor" for transport domain object.
  25. */
  26. void netsnmp_ipx_ctor(void);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif/*_SNMPIPXDOMAIN_H*/