[Bro-Dev] Difference between port conversion functions

Gregor Maier gregor at icir.org
Thu Nov 17 12:09:56 PST 2011


>          %{
>          return new PortVal(num, (TransportProto)proto->AsEnum());
>          %}

We should probably use the above implementation though, because AFAIK 
AsEnum() does type checking whereas InternalInt() won't.


cu
Gregor
-- 
Gregor Maier
<gregor at icir.org>  <gregor at icsi.berkeley.edu>
Int. Computer Science Institute (ICSI)
1947 Center St., Ste. 600
Berkeley, CA 94704, USA
http://www.icir.org/gregor/


More information about the bro-dev mailing list