2 * TCP MIB group interface - tcp.h
5 #ifndef _MIBGROUP_TCPTABLE_H
6 #define _MIBGROUP_TCPTABLE_H
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 */
16 int uid; /* owner of the connection */
25 #if !defined(linux) && !defined(hpux11)
26 extern int TCP_Count_Connections(void);
28 extern void TCP_Scan_Init(void);
30 extern int TCP_Scan_Next(mib_tcpConnEnt *);
33 extern int TCP_Scan_Next(int *, struct inpcb *);
37 config_arch_require(solaris2, kernel_sunos5)
38 config_require(mibII/tcp util_funcs)
40 extern FindVarMethod var_tcpEntry;
42 #endif /* _MIBGROUP_TCPTABLE_H */