NDD_MIB_ADDR Device Control Operation
The NDD_MIB_ADDR operation is used to get all the addresses for which the specified device accepts packets or frames.
The arg parameter specifies the address of the ndd_mib_addr_t structure.
The length parameter specifies the length of the structure with the
appropriate number of ndd_mib_addr_t.mib_addr elements. This
structure is defined in the /usr/include/sys/ndd.h file. If
the length is less than the length of the ndd_mib_addr_t structure,
the device driver returns EINVAL. If the structure is not
large enough to hold all the addresses, the addresses that fit are
still placed in the structure. The ndd_mib_addr_t.count field
is set to the number of addresses returned and E2BIG
is
returned.
One of the following address types is returned:
- Device physical address (or alternate address specified by user)
- Broadcast addresses
- Multicast addresses