⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udp_endpoint.h

📁 net_snmp应用程序示例
💻 H
字号:
/* * udp_endpoint data access header * * $Id: udp_endpoint.h,v 1.1 2005/10/31 08:48:55 rstory Exp $ */#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 __cplusplusextern          "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;       } 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 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -