Kernel functions net_getmtu(9F) NAME net_getmtu - determine the MTU of a given network interface SYNOPSIS #include int net_getmtu(const net_data_t net, const phy_if_t ifp); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS net value returned from a successful call to net_protocol_lookup. ifp value returned from a successful call to net_phylookup or net_phygetnext. DESCRIPTION This function is used to recieve information about the current MTU of a network interface. The value returned from this function call should not be cached as the MTU of a net- work interface is not guaranteed to be constant. RETURN VALUES This function returns -1 if the network protocol does not support this feature and otherwise returns the current MTU of the network interface. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO net_phygetnext(9f), net_phylookup(9f) SunOS 5.10 Last change: 25 March 2008 1