3
Sets the
if_mtu
member of the
ifnet
data structure for this device to
the maximum transmission unit, which for Ethernet-related media is
represented by the constant
ETHERMTU
.
The following media-specific constants represent the maximum
transmission unit:
ETHERMTU
The maximum transmission unit for
Ethernet media. The
if_ether.h
file
defines the
ETHERMTU
constant.
FDDIMTU
The maximum transmission unit for
FDDI media. The
if_fddi.h
file
defines the
FDDIMTU
constant.
TRN4_RFC1042_IP_MTU
The maximum transmission unit for
the 4 megabit-per-second Token Ring
media. The
if_trn.h
file defines the
TRN4_RFC1042_IP_MTU
constant.
TRN16_RFC1042_IP_MTU
The maximum transmission unit for
the 16 megabit-per-second Token Ring
media. The
if_trn.h
file defines the
TRN16_RFC1042_IP_MTU
constant.
4
Sets the
if_mediamtu
member of the
ifnet
data structure for this
device to the maximum transmission unit for the media, which for
Ethernet-related media is represented by the constant
ETHERMTU
.
Typically, you set this member to the same constant that is used for
the
if_mtu
member.
5
Sets the
if_type
member of the
ifnet
data structure for this device
to the type of network interface, which is represented by the constant
IFT_ETHER
(Ethernet I or II interface).
The following describes some of the valid interface types that are
defined in the
if_types.h
file:
IFT_ETHER
Ethernet I or II interface
IFT_FDDI
FDDI interface
IFT_ISO88025
Token Ring interface
6
Sets the
ac_flag
member of the
arpcom
data structure for this device
to the value 0 (zero). This indicates that an IP address is currently
not configured for this interface.
7
Sets the
sockaddr_in
data structure pointer to the address of the
network interface. The address of the network interface is referenced
through the
if_addr
member of the
ifnet
data structure for this
device.
6–4 Implementing the Autoconfiguration Support Section (attach)