Index Index for
Section 9
Index Alphabetical
listing for L
Bottom of page Bottom of
page

lan_build_mclist(9r)

NAME

lan_build_mclist - Network: Builds a text string of current multicast addresses

SYNOPSIS

void lan_build_mclist( unsigned char *buf, int len, struct lan_multi *lmt );

ARGUMENTS

buf Specifies a pointer to the buffer where the string will be formatted. len Specifies the number of bytes in buf. lmt Specifies a pointer to the device's multicast table.

DESCRIPTION

The lan_build_mclist() routine constructs a character string in the buffer (buf) of all the active multicast addresses in the multicast table (lmt). Each address is separated by spaces and formatted as follows: xx-xx-xx-xx- xx-xx. The number of formatted multicast addresses is bound by the size of the buffer.

NOTES

A network device driver typically allocates a buffer for this call, which is NET_SZ_MCLIST bytes long. The network driver calls lan_build_mclist() to format the multicast list into a buffer and then passes that buffer to the lan_set_attribute() routine to set the multicast address list attribute for hardware management.

RETURN VALUES

None

SEE ALSO

Routines: lan_set_attribute(9r) Data Structures: lan_multi(9s)

Index Index for
Section 9
Index Alphabetical
listing for L
Top of page Top of
page