[Bro-Dev] binpac usage of &length = -1

Robin Sommer robin at icir.org
Fri Feb 8 15:19:22 PST 2013



On Fri, Feb 08, 2013 at 16:37 -0600, you wrote:

> type req = record{
>      header : uint8;
>      data : bytestring &restofdata;
> }
> &length = -1 ;

So one thing is that I'm not sure the &length attribute transfers over
to the NewFrame() call, don't know the internals there. Second, the
&restofdata should already tell BinPAC++ that you want all the
remaining data; do you find that a &length is needed in addition? (As
usual, I'm arguing from the perspective here how I believe that binpac
*should* work; that doesn't always match what it actually
does/requires ..).

Robin

-- 
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org


More information about the bro-dev mailing list