[redirected to networking-discuss, the group that discusses networking
issues.]

swetha writes:
> im a newbie to the network programming stuff.iv got to implement 
> functionality of netstat using apis n system calls.for that i need to 
> understand the code provided in this link 
> http://cvs.opensolaris.org/source/xref/netvirt/usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c

Perhaps a nit, but you probably don't want to be looking at that
particular file, because it's not in the main source tree.  It's in a
project gate --- for the "netvirt" project.  Instead, look at this
one:

http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c

> Can anybody plz explain the mibget function provided in tis code the line 
> number is 654. explain the basic logic involved in detail n y is a linked 
> list of items used (mib_item_s) .plz help..this is urgent

This function sends a T_OPTMGMT_REQ message (part of XTI/TLI) down to
the TCP/IP stack.  The stack responds by sending a message back that
contains a great deal of information about how the system is being
used.  You can see more about the format of the responses in
/usr/include/inet/mib2.h.

(Note that this is an undocumented interface, and may change at any
time.)

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to