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

mdi_addrs_equal(D3mdi)


mdi_addrs_equal -- compare two MAC addresses

Syntax

   #include <sys/types.h>
   #include <sys/stream.h>
   #include <sys/mdi.h>
   #include <sys/ddi.h>
   

int mdi_addrs_equal(macaddr_t addr1, macaddr_t addr2);

Description

Compares the two MAC addresses addr1 and addr2.

Return values

mdi_addrs_equal( ) returns 1 if the two addresses are equal, returns 0 in all other cases.

Usage

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

All contexts

Hardware applicability

All

Version applicability

mdi: 1, 2, 2.1

References

``MAC addresses'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005