Home | History | Annotate | Download | only in inc

Lines Matching refs:pMacAddr

100 static __inline BOOL IsMacAddressZero( macAddress_t *pMacAddr )
102 return( (BOOL)( ( 0 == * (unsigned long *)pMacAddr ) &&
103 ( 0 == *(unsigned short *)( ( (unsigned long *)pMacAddr ) + 1 ) ) ) );
108 static __inline void ClearMacAddress( macAddress_t *pMacAddr )
110 * (unsigned long *)pMacAddr = 0;
111 *(unsigned short *)( ( (unsigned long *)pMacAddr ) + 1 ) = 0;
125 static __inline void SetMacAddressBroadcast( macAddress_t *pMacAddr )
127 * (unsigned long *)pMacAddr = 0xffffffff;
128 *(unsigned short *)( ( (unsigned long *)pMacAddr ) + 1 ) = 0xffff;
133 static __inline BOOL IsMacAddressGroup( macAddress_t *pMACAddr )
135 return( pMACAddr->addr[ 0 ] & MAC_ADDRESS_GROUP_BIT );
139 static __inline BOOL IsMacAddressDirected( macAddress_t *pMACAddr )
141 return( !IsMacAddressGroup( pMACAddr ) );
146 static __inline BOOL IsMacAddressBroadcast( macAddress_t *pMacAddr )
149 return( (BOOL)( ( 0xffff == *(unsigned short *)pMacAddr ) &&
150 ( 0xffff == *(((unsigned short *)pMacAddr) + 1 ) ) &&
151 ( 0xffff == *(((unsigned short *)pMacAddr) + 2 ) )));
152 /* return( (BOOL)( ( 0xffffffff == * (unsigned long *)pMacAddr ) &&
153 ( 0xffff == *(unsigned short *)( ( (unsigned long *)pMacAddr ) + 1 ) ) ) );*/
158 static __inline BOOL IsMacAddressMulticast( macAddress_t *pMACAddr )
160 return( IsMacAddressGroup( pMACAddr ) && !IsMacAddressBroadcast( pMACAddr ) );