Re: adding new tcp option to the tcp header
Andi Kleen <ak@muc.de> Thu, 16 May 2002 13:31 UTC
Date: Thu, 16 May 2002 15:31:44 +0200
From: Andi Kleen <ak@muc.de>
To: Murgan Ram <murgan17@rediffmail.com>
Cc: tcp-impl@lerc.nasa.gov
Subject: Re: adding new tcp option to the tcp header
Message-ID: <20020516153144.A19224@averell>
References: <20020516031702.18339.qmail@webmail6.rediffmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20020516031702.18339.qmail@webmail6.rediffmail.com>
User-Agent: Mutt/1.3.22.1i
X-Sender: 520003261363-0001@t-dialin.net
Sender: owner-tcp-impl@grc.nasa.gov
Precedence: bulk
Status: RO
Content-Length: 852
Lines: 19
On Thu, May 16, 2002 at 05:17:02AM +0200, Murgan Ram wrote:
> Hi,
> Can you tell me how I can hardcore a new option
> ( 1 bit option ) into the tcp header option field( I am using Red
> Hat Linux 7.1.) which the sender can optionally enable and the
> receiver can read it. Additionally could you tell me any site
> where I could read more abt it. I would like to add a system call
> to my program which can hardcore this option into the header
> everytime it is called. So, please tell me what the system call
> should do to do the job.
chdir("/usr/src/linux");
system(getenv("EDITOR"))
seriously: Linux only has socket options to specify IP options per socket.
There is no way to set TCP options without changing the TCP output
functions in net/ipv4/tcp_output.c. Also even IP options can only be set
per socket, not globally.
-Andi
- adding new tcp option to the tcp header Murgan Ram
- Re: adding new tcp option to the tcp header Andi Kleen