On 4/19/07, sukruta <[EMAIL PROTECTED]> wrote:
I'm working on a project which requires me to find the TCP/IP statistics using [b]ONLY SYSTEM CALLS or APIs[/b] on a solaris system. I [b]should not[/b] be using the command netstat itself. I can use the netstat.c code. The statistics should be found without actually establishing a connection. One should first find the [b]active connections[/b] and then find the the following for those connections. A simple program in C would do the job. Plzzz [b]do not[/b] suggest any commands or utilities. Kindly help
Looking at the code in netstat.c is a start (IIRC it creates a socket and extracts mibs). You should also look at the source to ndd; may be useful to you. Paul -- Paul Durrant http://www.linkedin.com/in/pdurrant _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org