Re: Setting IP Options in the IP-Header

From: Mike A. Harris (mharris@opensourceadvocate.org)
Date: Thu Nov 16 2000 - 14:22:19 EST


On Thu, 16 Nov 2000, Nishant Rao wrote:

>Date: Thu, 16 Nov 2000 11:55:24 -0600 (CST)
>From: Nishant Rao <nishant@cs.utexas.edu>
>To: Andi Kleen <ak@suse.de>
>Cc: linux-kernel@vger.kernel.org
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>Subject: Re: Setting IP Options in the IP-Header
>
>Well, while what you say makes sense, it isn't exactly a solution to our
>problem.
>
>we are trying to expose and set a NEW option altogether. So our question
>pertains more to what code we write in the kernel to create and expose a
>new custom option. so for this, we would need to know the offsets of the
>current options like source routing etc and then hopefully try and stuff
>data from setting our option after the maximum that can be set by these
>other existing options.
>
>once that code is in place within the ip_build_options routine in the
>ip_options.c file in the linux kernel, we can then use the setsockopt()
>at the application level to make sure that a packet is filled with the
>corresponding option.
>
>i hope i was able to explain my question more clearly.

RFC791 should give you all you need to know I believe, plus
examining the existing kernel sources. It's pretty basic.

----------------------------------------------------------------------
      Mike A. Harris - Linux advocate - Open source advocate
          This message is copyright 2000, all rights reserved.
  Views expressed are my own, not necessarily shared by my employer.
----------------------------------------------------------------------

Red Hat Linux: http://www.redhat.com
Download for free: ftp://ftp.redhat.com/pub/redhat/redhat-6.2/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:11 EST