added files
[bcm963xx.git] / userapps / opensource / net-snmp / agent / mibgroup / mibII / tcpTable.h
1 /*
2  *  TCP MIB group interface - tcp.h
3  *
4  */
5 #ifndef _MIBGROUP_TCPTABLE_H
6 #define _MIBGROUP_TCPTABLE_H
7
8 #ifdef linux
9 struct inpcb {
10     struct inpcb   *inp_next;   /* pointers to other pcb's */
11     struct in_addr  inp_faddr;  /* foreign host table entry */
12     u_short         inp_fport;  /* foreign port */
13     struct in_addr  inp_laddr;  /* local host table entry */
14     u_short         inp_lport;  /* local port */
15     int             inp_state;
16     int             uid;        /* owner of the connection */
17 };
18 #endif
19
20 #ifdef hpux11
21 #include <sys/mib.h>
22 #endif
23
24 #ifndef solaris2
25 #if !defined(linux) && !defined(hpux11)
26 extern int      TCP_Count_Connections(void);
27 #endif
28 extern void     TCP_Scan_Init(void);
29 #ifdef hpux11
30 extern int      TCP_Scan_Next(mib_tcpConnEnt *);
31 #else
32 struct inpcb;
33 extern int      TCP_Scan_Next(int *, struct inpcb *);
34 #endif
35 #endif
36
37 config_arch_require(solaris2, kernel_sunos5)
38 config_require(mibII/tcp util_funcs)
39
40      extern FindVarMethod var_tcpEntry;
41
42 #endif                          /* _MIBGROUP_TCPTABLE_H */