diff --git a/src/bro.bif b/src/bro.bif index e1521adee8..6a79a1ac9d 100644 --- a/src/bro.bif +++ b/src/bro.bif @@ -2670,7 +2670,7 @@ function to_port%(s: string%): port ## ## Returns: The IP address corresponding to *s*. ## -## .. bro:see:: addr_to_ptr_name parse_dotted_addr +## .. bro:see:: addr_to_ptr_name to_addr function ptr_name_to_addr%(s: string%): addr %{ if ( s->Len() != 72 ) @@ -2734,27 +2734,12 @@ function ptr_name_to_addr%(s: string%): addr ## ## Returns: The reverse pointer representation of *a*. ## -## .. bro:see:: ptr_name_to_addr parse_dotted_addr +## .. bro:see:: ptr_name_to_addr to_addr function addr_to_ptr_name%(a: addr%): string %{ return new StringVal(a->AsAddr().PtrName().c_str()); %} -# Transforms n0.n1.n2.n3 -> addr. - -## Converts a decimal dotted IP address in a :bro:type:`string` to an -## :bro:type:`addr` type. -## -## s: The IP address in the form ``n0.n1.n2.n3``. -## -## Returns: The IP address as type :bro:type:`addr`. -## -## .. bro:see:: addr_to_ptr_name parse_dotted_addr -function parse_dotted_addr%(s: string%): addr - %{ - IPAddr a(s->CheckString()); - return new AddrVal(a); - %} %%{ static Val* parse_port(const char* line) @@ -5659,6 +5644,14 @@ function match_signatures%(c: connection, pattern_type: int, s: string, # # =========================================================================== +## Deprecated. Will be removed. +function parse_dotted_addr%(s: string%): addr + %{ + IPAddr a(s->CheckString()); + return new AddrVal(a); + %} + + %%{ #include "Anon.h" %%} diff --git a/testing/btest/Baseline/bifs.parse_dotted_addr/out b/testing/btest/Baseline/bifs.parse_dotted_addr/out deleted file mode 100644 index 1a09fd45a5..0000000000 --- a/testing/btest/Baseline/bifs.parse_dotted_addr/out +++ /dev/null @@ -1,2 +0,0 @@ -192.168.0.2 -1234::1 diff --git a/testing/btest/bifs/parse_dotted_addr.bro b/testing/btest/bifs/parse_dotted_addr.bro deleted file mode 100644 index 6fdba26452..0000000000 --- a/testing/btest/bifs/parse_dotted_addr.bro +++ /dev/null @@ -1,9 +0,0 @@ -# -# @TEST-EXEC: bro %INPUT >out -# @TEST-EXEC: btest-diff out - -event bro_init() - { - print parse_dotted_addr("192.168.0.2"); - print parse_dotted_addr("1234::1"); - }