snmpUDPsharedDomain.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* UDPshared base transport support functions
  2. *
  3. * Portions of this file are copyrighted by:
  4. * Copyright (c) 2016 VMware, Inc. All rights reserved.
  5. * Use is subject to license terms specified in the COPYING file
  6. * distributed with the Net-SNMP package.
  7. */
  8. #ifndef SNMPUDPsharedBASE_H
  9. #define SNMPUDPsharedBASE_H
  10. #if HAVE_SYS_SOCKET_H
  11. #include <sys/socket.h>
  12. #endif
  13. #if HAVE_NETINET_IN_H
  14. #include <netinet/in.h>
  15. #endif
  16. config_require(UDP)
  17. #include <net-snmp/library/snmpUDPBaseDomain.h>
  18. #include <net-snmp/library/snmpUDPIPv4BaseDomain.h>
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. /*
  23. * Prototypes
  24. */
  25. /*
  26. * "Constructor" for transport domain object.
  27. */
  28. void netsnmp_udpshared_ctor(void);
  29. netsnmp_transport *netsnmp_udpshared_transport(const struct sockaddr_in *addr,
  30. int local);
  31. netsnmp_transport *
  32. netsnmp_udpshared_transport_with_source(const struct sockaddr_in *addr,
  33. int local,
  34. const struct sockaddr_in *src_addr);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* SNMPUDPsharedBASE_H */