diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-02-18 07:28:08 -0500 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 06:50:14 -0500 |
commit | 39901e716275da4e831b40f9e45a1b61d6a776dc (patch) | |
tree | a7db25062f0e3df9b7f878adaeda8aadd5644181 /net/batman-adv/translation-table.c | |
parent | 9e0b33c221f1364e4d7562177a918eef8e85317a (diff) |
batman-adv: separate ethernet comparing calls from hash functions
Note: The function compare_ether_addr() provided by the Linux kernel
requires aligned memory.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index b25e4b328dcb..77d0ee0d1257 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -101,7 +101,7 @@ void hna_local_add(struct net_device *soft_iface, uint8_t *addr) | |||
101 | hna_local_entry->last_seen = jiffies; | 101 | hna_local_entry->last_seen = jiffies; |
102 | 102 | ||
103 | /* the batman interface mac address should never be purged */ | 103 | /* the batman interface mac address should never be purged */ |
104 | if (compare_orig(addr, soft_iface->dev_addr)) | 104 | if (compare_eth(addr, soft_iface->dev_addr)) |
105 | hna_local_entry->never_purge = 1; | 105 | hna_local_entry->never_purge = 1; |
106 | else | 106 | else |
107 | hna_local_entry->never_purge = 0; | 107 | hna_local_entry->never_purge = 0; |