Mask out only the bc/mc bit, not the locally assigned bit.

Update comment accordingly.

svn path=/trunk/; revision=22507
This commit is contained in:
Jörg Mayer 2007-08-15 13:21:23 +00:00
parent e883e94f8a
commit 4793614e27
1 changed files with 6 additions and 5 deletions

View File

@ -1123,12 +1123,13 @@ static hashmanuf_t *manuf_name_lookup(const guint8 *addr)
tp = tp->next;
}
/* strip off special bits and try again to find the name */
/* the first address byte contains two special bits: */
/* 0x01 multicast / broadcast bit */
/* 0x02 locally administered bit */
/* Mask out the broadcast/multicast flag but not the locally
* administered flag as localy administered means: not assigend
* by the IEEE but the local administrator instead.
* 0x01 multicast / broadcast bit
* 0x02 locally administered bit */
memcpy(stripped_addr, addr, 3);
stripped_addr[0] &= 0xFC;
stripped_addr[0] &= 0xFE;
tp = manuf_table[hash_idx];
while(tp != NULL) {