[Bro-Dev] Hui Lin_Binpac Question_Can several "case" in binpac share the same parsing method
Hui Lin (Hugo)
hlin33 at illinois.edu
Wed Oct 19 08:29:31 PDT 2011
HI,
Just try to save space and time when writing case in Binpac for example,
type SMB_string(case_index: int) = case case_index of {
1 -> a: type1;
2 -> b: type1;
3 -> c: type1;
default -> d: type2;
};
is there any method that I can avoid of repeated writing case 1, 2, 3 as
they actually correspond to same type1?
Best
--
Hui Lin
Research Assistant
DEPEND Research Group, ECE Department
University of Illinois at Urbana-Champaign
hlin33 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.icsi.berkeley.edu/pipermail/bro-dev/attachments/20111019/fc7e5968/attachment.html
More information about the bro-dev
mailing list