Calling multiple times ip_nat_mangle_tcp_packet()
Atanu.Mondal@infineon.com
Atanu.Mondal@infineon.com
Fri, 2 Jul 2004 14:50:35 +0530
Hi,
I am mangling SIP Message Header and data and for this I am calling
ip_nat_mangle_tcp_packet() funtion for
each line which need to adjust its IP Address.. The problem I am facing
is with TCP seq numbering..
The ip_nat_resize_packet() function takes care of the seq numbering
inside ip_nat_mangle_tcp_packet() but
it takes care of the adjustment for only the 1st call.. Any subsequent
call to ip_nat_mangle_tcp_packet=20
does not adjust the offset_before and offset_after parameters and the it
remains what it was in the first
call.=20
In the return direction the ack and seq no is adjusted as per the offset
set in the 1st call..which is wrong.
Can somebody help me out in understanding how to do it... Or do I need
to writeout my own function. ???
Atanu