Hi Stephane,
Yes you are right I thought this meant the number of elements in the
structure but now I see from the base draft that it is the length of the
structure. 
Since destination may have 1 or 2 elements I think that the following will
be enough. 

struct {
           RouteMode               routemode;
           OverlayLink             transport;
           IpAddressPort          ipaddressport;
           Destination             destination<1..2^8-1>;
   } ExtensiveRoutingModeOption


Regards
Roni


> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of st?phane bryant
> Sent: Wednesday, August 31, 2011 10:46 AM
> To: [email protected]
> Subject: [P2PSIP] structure definition issue in draft-zong-p2psip-drr-
> 00
> 
> Hello,
> 
> In draft-zong-p2psip-drr-00, section 6.2.2. Extensive Routing Mode,
> the ExtensiveRoutingModeOption structure is defined thus:
> 
>  struct {
>            RouteMode               routemode;
>            OverlayLink             transport;
>            IpAddressPort          ipaddressport;
>            Destination             destination<1..2>;
>    } ExtensiveRoutingModeOption;
> 
> however the <x..y> convention for variable length
> fields is designed to represent the length in bytes
> of the field, the range allowing to also derive
> the size of the length field. <1..2> does not work.
> My take is that it should be <0...2^16>.
> 
> I am currently adding new parsing capabilities to
> the wireshark dissector: as soon as this is defined
> i will add capabilities for this draft.
> 
> regards
> stephane bryant
> _______________________________________________
> P2PSIP mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/p2psip

_______________________________________________
P2PSIP mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/p2psip

Reply via email to