| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /*
- * udp_endpoint data access header
- *
- * $Id$
- */
- #ifndef NETSNMP_ACCESS_UDP_ENDPOINT_H
- #define NETSNMP_ACCESS_UDP_ENDPOINT_H
- #ifndef NETSNMP_ACCESS_IPADDRESS_BUF_SIZE
- # error "include <net-snmp/data_access/ipaddress.h> before this file"
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- /**---------------------------------------------------------------------*/
- /*
- * structure definitions
- */
- /*
- * netsnmp_udp_endpoint_entry
- * - primary udp_endpoint structure for both ipv4 & ipv6
- */
- typedef struct netsnmp_udp_endpoint_s {
- netsnmp_index oid_index; /* MUST BE FIRST!! for container use */
- oid index; /* sl */
- int flags; /* for net-snmp use */
- u_char loc_addr[NETSNMP_ACCESS_IPADDRESS_BUF_SIZE];
- u_char rmt_addr[NETSNMP_ACCESS_IPADDRESS_BUF_SIZE];
- u_char loc_addr_len;/* address len, 4 | 16 */
- u_char rmt_addr_len;/* address len, 4 | 16 */
- u_char state; /* not in the mib, but what the heck */
- u_short loc_port;
- u_short rmt_port;
- u_int instance;
- u_int pid;
-
- } netsnmp_udp_endpoint_entry;
- /**---------------------------------------------------------------------*/
- /*
- * ACCESS function prototypes
- */
- /*
- * ifcontainer init
- */
- netsnmp_container *
- netsnmp_access_udp_endpoint_container_init(u_int init_flags);
- #define NETSNMP_ACCESS_UDP_ENDPOINT_INIT_NOFLAGS 0x0000
- /*
- * ifcontainer load and free
- */
- netsnmp_container*
- netsnmp_access_udp_endpoint_container_load(netsnmp_container* c,
- u_int load_flags);
- #define NETSNMP_ACCESS_UDP_ENDPOINT_LOAD_NOFLAGS 0x0000
- void netsnmp_access_udp_endpoint_container_free(netsnmp_container *c,
- u_int free_flags);
- #define NETSNMP_ACCESS_UDP_ENDPOINT_FREE_NOFLAGS 0x0000
- #define NETSNMP_ACCESS_UDP_ENDPOINT_FREE_DONT_CLEAR 0x0001
- #define NETSNMP_ACCESS_UDP_ENDPOINT_FREE_KEEP_CONTAINER 0x0002
- /*
- * create/free a udp_endpoint entry
- */
- netsnmp_udp_endpoint_entry *
- netsnmp_access_udp_endpoint_entry_create(void);
- void netsnmp_access_udp_endpoint_entry_free(netsnmp_udp_endpoint_entry *e);
- /*
- * update/compare
- */
- /*
- * find entry in container
- */
- /** not yet */
- /**---------------------------------------------------------------------*/
- # ifdef __cplusplus
- }
- #endif
- #endif /* NETSNMP_ACCESS_UDP_ENDPOINT_H */
|