Debian Codegraph @

agent/mibgroup/mibII/tcpTable.h

raw
1 /*
2 * Template MIB group interface - tcp.h
3 *
4 */
5 #ifndef _MIBGROUP_TCPTABLE_H
6 #define _MIBGROUP_TCPTABLE_H
7
8 #ifdef solaris2
9 config_require(kernel_sunos5);
10 #endif
11 #if !defined(NETSNMP_ENABLE_MFD_REWRITES)
12 config_require(mibII/ip);
13 #endif
14
15 #ifdef linux
16 struct inpcb {
17 struct inpcb *inp_next; /* pointers to other pcb's */
18 struct in_addr inp_faddr; /* foreign host table entry */
19 u_short inp_fport; /* foreign port */
20 struct in_addr inp_laddr; /* local host table entry */
21 u_short inp_lport; /* local port */
22 int inp_state;
23 int uid; /* owner of the connection */
24 };
25 #endif
26
27 extern void init_tcpTable(void);
28 extern Netsnmp_Node_Handler tcpTable_handler;
29 extern NetsnmpCacheLoad tcpTable_load;
30 extern NetsnmpCacheFree tcpTable_free;
31 extern Netsnmp_First_Data_Point tcpTable_first_entry;
32 extern Netsnmp_Next_Data_Point tcpTable_next_entry;
33
34 #define TCPCONNSTATE 1
35 #define TCPCONNLOCALADDRESS 2
36 #define TCPCONNLOCALPORT 3
37 #define TCPCONNREMOTEADDRESS 4
38 #define TCPCONNREMOTEPORT 5
39
40 #ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS
41 int TCP_Count_Connections(void);
42 #endif /* NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS */
43
44 #endif /* _MIBGROUP_TCPTABLE_H */