LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-27-2011, 05:20 AM   #1
hayf
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 35

Rep: Reputation: Disabled
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
 
Old 09-28-2011, 02:47 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
It should be in tcp_transmit_skb function.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem writing new tcp option to skb yaplej Programming 3 08-17-2011 07:24 AM
[SOLVED] TCP packets seem to be dropped on Debian Squeeze w/NAT DfReisan Linux - Networking 3 04-14-2011 05:40 AM
[SOLVED] Reading TCP Option inconsistant output. yaplej Programming 7 09-30-2009 12:29 PM
Outgoing redirection with iptables - TCP skips nat? kristrev Linux - Networking 2 03-21-2009 10:22 AM
TCP Keep alive Option Performance impact ndwivedi Linux - Software 0 06-24-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration