On Fri, Feb 8, 2013 at 5:19 PM, Robin Sommer <[email protected]> wrote: > > > 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 ..). >
Unfortunately, yes, you needed the &length field. Otherwise: /home/****/bro/src/dnp3-protocol.pac:42: error : cannot handle incremental input Then the interesting question is when binpac can handle incremental input? > > Robin > > -- > Robin Sommer * Phone +1 (510) 722-6541 * [email protected] > ICSI/LBNL * Fax +1 (510) 666-2956 * www.icir.org > -- Hui Lin PhD Candidate, Research Assistant Electrical and Computer Engineering Department University of Illinois at Urbana-Champaign
_______________________________________________ bro-dev mailing list [email protected] http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev
