mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Move IP Addr/Prefix/Header classes into namespaces
This commit is contained in:
parent
35c61697d9
commit
25c0fc7ab2
100 changed files with 495 additions and 460 deletions
|
@ -181,7 +181,7 @@ ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
|
|||
{IP6}{OWS}"/"{OWS}{D} {
|
||||
int len = 0;
|
||||
std::string ip = extract_ip_and_len(yytext, &len);
|
||||
RET_CONST(new zeek::SubNetVal(IPPrefix(IPAddr(ip), len, true)))
|
||||
RET_CONST(new zeek::SubNetVal(zeek::IPPrefix(zeek::IPAddr(ip), len, true)))
|
||||
}
|
||||
|
||||
/* IPv4 literal constant patterns */
|
||||
|
@ -190,7 +190,7 @@ ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
|
|||
({D}"."){3}{D}{OWS}"/"{OWS}{D} {
|
||||
int len = 0;
|
||||
std::string ip = extract_ip_and_len(yytext, &len);
|
||||
RET_CONST(new zeek::SubNetVal(IPPrefix(IPAddr(ip), len)))
|
||||
RET_CONST(new zeek::SubNetVal(zeek::IPPrefix(zeek::IPAddr(ip), len)))
|
||||
}
|
||||
|
||||
[!%*/+\-,:;<=>?()\[\]{}~$|&^] return yytext[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue