Changeset 64be561 in mainline
- Timestamp:
- 2012-07-24T14:23:34Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ef2249
- Parents:
- 4a6da62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_addr_db.c
r4a6da62 r64be561 44 44 #include <macros.h> 45 45 46 47 48 /* Couple address bytes into KEY_CNT key fields. Align up to fit all bytes. */ 49 //#define KEY_CNT ((NIC_ADDR_MAX_LENGTH + sizeof(unsigned long) - 1) / sizeof(unsigned long)) 46 /* The key count hash table field is not used. Use this dummy value. */ 50 47 #define KEY_CNT 1 51 48 … … 71 68 const link_t *item) 72 69 { 73 /* Ugly type-punning hack. */74 70 uint8_t *addr = (uint8_t*)key; 75 71 nic_addr_entry_t *entry = member_to_inst(item, nic_addr_entry_t, link); … … 94 90 nic_addr_entry_t *entry = member_to_inst(item, nic_addr_entry_t, link); 95 91 96 /* Ugly type-punning hack. */97 92 unsigned long *key = (unsigned long*)entry->addr; 98 93 return nic_addr_key_hash(key);
Note:
See TracChangeset
for help on using the changeset viewer.