|
|||||||||||
|
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 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
On Sun, 13 Jul 2003 11:10:36 +0530
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 |
||||||||||
|
|||||||||||