swetha writes:
> thankz.But can u tell me how to finf MTU for the interface using kstat and 
> also the type of interface or is there any other way of finding the same 
> other than using the utilities.

Which interface?

If you're talking about plumbed IP interfaces, you can get it by using
the standard SIOCGIFMTU or SIOCGLIFMTU ioctls.

If you're talking about unplumbed links, you'll need to use DLPI.
There's now a a public library to help you do this -- libdlpi(3LIB).
The bit you need is the link SDU.  Note that you'll need privileges to
open the raw device to do this.

In scripts or on the command line, "dladm show-link" is the right sort
of answer.  See the dladm(1M) man page.

-- 
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
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to