2003-11-25 08:21:10

by Gong Su

[permalink] [raw]
Subject: Replacing tcp_v4_rcv from a module

I need some customized function inside tcp_v4_rcv so I wrote a module to
replace tcp_protocol->handler with my own function pointer; and currently
my own tcp_v4_rcv is just a copy of the original tcp_v4_rcv. But as soon
as traffic came in, my machine locks up hard. I can't think of a reason
why it would do so since I've changed other functions the same way, e.g.,
replacing ip_packet_type->func with my own ip_rcv function pointer without
problem. Am I missing something obvious? Thanks for any enlightenment.

--
/Gong



2003-11-25 09:21:54

by Raj

[permalink] [raw]
Subject: Re: Replacing tcp_v4_rcv from a module

Gong Su wrote:

>I need some customized function inside tcp_v4_rcv so I wrote a module to
>replace tcp_protocol->handler with my own function pointer; and currently
>
>
Try calling synchronize_net() after your modification and see if it helps.

/Raj

2003-11-25 15:40:08

by Gong Su

[permalink] [raw]
Subject: Re: Replacing tcp_v4_rcv from a module

Thanks Raj. Sorry I forgot to say that I'm doing this on 2.4. Is this a 2.5
function? I can't find it in the 2.4 source tree.

--
/Gong


Thus did Raj <[email protected]> write:
*>Gong Su wrote:
*>
*>>I need some customized function inside tcp_v4_rcv so I wrote a module to
*>>replace tcp_protocol->handler with my own function pointer; and currently
*>>
*>>
*>Try calling synchronize_net() after your modification and see if it helps.
*>
*>/Raj
*>