Hi,
I am not sure what the second argument of tipc_recv_msg from
tipc_link.c was inteded to be.
tipc_eth_media seems to pass an "struct tipc_bearer *", while the
function's code casts it to a "struct bearer *" and continues to use
it as such.
void tipc_recv_msg(struct sk_buff *head, struct tipc_bearer *tb_ptr)
{
»·······read_lock_bh(&tipc_net_lock);
»·······while (head) {
»·······»·······struct bearer *b_ptr = (struct bearer *)tb_ptr;
...
It seems to work if I am passing a "struct bearer *" casted to a
"struct tipc_bearer *", but I don't see the point why there are all
those casts at all.
Could someone please clarify to me why it's like this?
Thanks,
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
tipc-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tipc-discussion