LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Add a tcp option at the NAT device (https://www.linuxquestions.org/questions/linux-kernel-70/add-a-tcp-option-at-the-nat-device-905206/)

hayf 09-27-2011 05:20 AM

Add a tcp option at the NAT device
 
Hello,

I am using a linux machine as NAT device which function is to map internal addresses 192.168.x.y to an external address.
What i want to do is to add a TCP option to SYN packets sent hosts.
I think that adding the TCP option has to be done in tcp_output.c file but I don't known in which function.

Anybody has an idea about such manipulation?

Thanks in advance.
hayf

nini09 09-28-2011 02:47 PM

It should be in tcp_transmit_skb function.


All times are GMT -5. The time now is 03:53 PM.