From: Marek Lindner lindner_marek@yahoo.de Date: Sat, 29 Oct 2011 10:06:43 +0200
git://git.open-mesh.org/linux-merge.git batman-adv/maint
Pulled, but long term you should shore up your datastructures to handle that issue in patch #3.
Make a common header:
struct tt_entry_common { u8 addr[ETH_ALEN]; struct hlist_node hash_entry; };
Then use that at the beginning of both structures:
struct tt_local_entry { struct tt_entry_common common; unsigned long last_seen; ... };
struct tt_global_entry { struct tt_entry_comomn common; struct orig_node *orig_node; ... };
And &p->common is what gets passed into tt_response_fill_table().