[lkml]   [2000]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Setting IP Options in the IP-Header
On Thu, Nov 16, 2000 at 11:11:45AM -0600, Nishant Rao wrote:
> Hi,
> We are conducting some research that involves setting our custom data as
> a new IP option in the IP header (in the options field) of every packet.
> We have poured over the source code but it is quite confusing to figure
> out how the details of the way the options field is split among various
> options (ie. offsets etc). Can anyone help us figure out how to add new
> custom options into the IP header ?

man ip(7), see the IP_OPTIONS socket option.

Linux only echoes received options, but never sets them by default unless that
socket option is specified. So it depends on the application and/or the sender.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:47    [W:0.069 / U:2.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site