 |
Index for Section 9 |
|
 |
Alphabetical listing for L |
|
 |
Bottom of page |
|
LAN_GET_MULTI(9r)
NAME
LAN_GET_MULTI - Network: Returns a pointer to the next enabled multicast
address
SYNOPSIS
#include <io/dec/netif/lan_common.h>
int LAN_GET_MULTI(
struct lan_multi *lmt,
unsigned char *maddr,
int index_v );
ARGUMENTS
lmt Specifies a pointer to the multicast table.
maddr
Specifies a pointer to hold the multicast address returned by the
interface.
index_v
Specifies an index value for the multicast table.
DESCRIPTION
The LAN_GET_MULTI() routine returns a pointer to the next enabled multicast
address. The search begins at the index specified by the index_v argument.
When this routine completes, the index_v argument will contain the index of
the location one past where the returned multicast address was found. You
can use this interface to return all addresses in a multicast table. For
example:
int i, j;
unsigned char *maddr;
j = o;
for (i = 0; i < lmt->lan_nmulti; i++)
LAN_GET_MULTI(lmt, maddr, j);
if (maddr != NULL)
printf("Multicast %s enabled\n", ether_sprintf(maddr));
{
RETURN VALUES
On successful completion, the LAN_GET_MULTI() routine returns a pointer to
the next enabled multicast address.
SEE ALSO
Routines: lan_add_multi(9r), lan_del_multi(9r), LAN_FIND_MULTI(9r)
Data Structures: lan_multi(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for L |
|
 |
Top of page |
|