int compare_orig(void *data1, void *data2)
{
- return (compare_ether_addr(data1, data2) == 0 ? 1 : 0);
+ return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0);
}
/* hashfunction to choose an entry in a hash table of given size */
}
+int is_bcast(uint8_t *addr)
+{
+ return (addr[0] == (uint8_t)0xff) && (addr[1] == (uint8_t)0xff);
+}
+
+int is_mcast(uint8_t *addr)
+{
+ return *addr & 0x01;
+}
+
module_init(batman_init);
module_exit(batman_exit);