Kernel Functions for Drivers netgetmtu(9F)
NAME
netgetmtu - determine the MTU of a given network interface
SYNOPSIS
#include
int netgetmtu(const netdatat net, const phyift ifp);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
net value returned from a successful call to
netprotocollookup(9F).
ifp value returned from a successful call to
netphylookup(9F) or netphygetnext(9F).
DESCRIPTION
The netgetmtu() function receives 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 since it is not guaranteed to be constant.
RETURN VALUES
The netgetmtu() function returns -1 if the network protocol
does not support this feature and otherwise returns the
current MTU of the network interface.
CONTEXT
The netgetmtu() function may be called from user, kernel,
or interrupt context.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 1 May 2008 1
Kernel Functions for Drivers netgetmtu(9F)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWcsu
Interface Stability Committed
SEE ALSO
netphygetnext(9F), netphylookup(9F),
netprotocollookup(9F)
SunOS 5.11 Last change: 1 May 2008 2
|