mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Move a few of the zeek::util methods and variables to zeek::util::detail
This commit is contained in:
parent
5a2ac84eee
commit
ddf48d7529
35 changed files with 1221 additions and 1226 deletions
|
@ -43,13 +43,13 @@ PID {PIDCOMPONENT}(::{PIDCOMPONENT})*
|
|||
}
|
||||
|
||||
{IP6} {
|
||||
rules_lval.prefixval = new zeek::IPPrefix(zeek::IPAddr(zeek::util::extract_ip(yytext)), 128, true);
|
||||
rules_lval.prefixval = new zeek::IPPrefix(zeek::IPAddr(zeek::util::detail::extract_ip(yytext)), 128, true);
|
||||
return TOK_IP6;
|
||||
}
|
||||
|
||||
{IP6}{OWS}"/"{OWS}{D} {
|
||||
int len = 0;
|
||||
std::string ip = zeek::util::extract_ip_and_len(yytext, &len);
|
||||
std::string ip = zeek::util::detail::extract_ip_and_len(yytext, &len);
|
||||
rules_lval.prefixval = new zeek::IPPrefix(zeek::IPAddr(ip), len, true);
|
||||
return TOK_IP6;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue