DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

mdi_add_mctbl_entry(D3mdi)


mdi_add_mctbl_entry -- add MAC address to table

Synopsis (Not in SVR5 version)

   #include <sys/mdi.h>
   

int mdi_add_mctbl_entry(mctbl_t * mctbl, macaddr_t addr);

Description

Adds the MAC address to the table, if it is not already there and the table is not full.

This function depends upon the MAC address size being 6 bytes. If the MAC address size for your network media is not 6 bytes, do not use this functions.

Context and synchronization

Interrupt context.

Hardware applicability

All

Version applicability

mdi: 1

Differences between versions

This function is not supported in MDI on SVR5 systems.

Return values

Returns 0 if the table is full, 1 otherwise.

References

mdi_del_mctbl_entry(D3mdi),
mdi_num_mctbl_entries(D3mdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005