Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: is anybody working at libnet_build_iov6_options()?

From: alessandro salvatori <alessandrosalvatori(at)virgilio.it>
Date: Sun Jul 13 2003 - 09:11:00 EDT

two points to care about... for now... maybe other will come into play later...

  1. we should pay attention to libnet_build_ipv6() (how lucky we are libnet_autobuild_iov6() is only a wrapper... :) and maybe change how it does handle its payload arguments... payload should be placed after all the options.
  2. is it worth to do two kinds of build_ipv6_options()?

maybe it would be useful to offer two parameters for Option Type and Option Data Len, but how should we do to mantain an only interface for both the cases?

otherwise we could leave to the user the responsibility to manage these first two bytes...

or... we could do so for now, then when everything is ok we could add a wrapper for this particular case... we wouldn't break anything. if somebody directly used the first fashion function, his/her code will continue to work perfectly.

8<------- begin ------------------------------------------------

   Two of the currently-defined extension headers -- the Hop-by-Hop    Options header and the Destination Options header -- carry a variable    number of type-length-value (TLV) encoded "options", of the following    format:

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -
      |  Option Type  |  Opt Data Len |  Option Data
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -

      Option Type          8-bit identifier of the type of option.

      Opt Data Len         8-bit unsigned integer.  Length of the Option
                           Data field of this option, in octets.

      Option Data          Variable-length field.  Option-Type-specific
                           data.
8<-------- end -------------------------------------------------

cheers
sandr8)

On Sun, 13 Jul 2003 11:10:36 +0530
Anil Sewani <sewani@qualcorelogic.com> wrote:

Do you need help?X

> alessandro



To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com For additional commands, e-mail: libnet-help@securityfocus.com Received on Sun Jul 13 09:21:59 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library