[Bro-Dev] #684: Change to_port BiF to take a string as argument
Bro Tracker
bro at tracker.bro-ids.org
Thu Nov 17 09:48:26 PST 2011
#684: Change to_port BiF to take a string as argument
----------------------+------------------------
Reporter: matthias | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro2.1
Component: Bro | Version: git/master
Keywords: |
----------------------+------------------------
The function `to_port`, which is currently defined as
{{{
function to_port%(num: count, proto: transport_proto%): port
%{
return new PortVal(num, (TransportProto)proto->AsEnum());
%}
}}}
should have a different signature in order to be consistent with the other
`to_*` conversion functions. The new signature should be:
{{{
function to_port%(s: string%): port;
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/684>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list