From 06d7442b8b54e9e894fe4b4dfb892680037f4c00 Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Wed, 20 Feb 2019 06:00:14 -0600 Subject: [PATCH] all good to release 0.0.0 --- Parse-Netstat-Search/Changes | 5 ++-- Parse-Netstat-Search/README | 23 +++++++++++-------- .../lib/Parse/Netstat/Search.pm | 4 ++++ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Parse-Netstat-Search/Changes b/Parse-Netstat-Search/Changes index 888575f..d987798 100644 --- a/Parse-Netstat-Search/Changes +++ b/Parse-Netstat-Search/Changes @@ -1,5 +1,6 @@ Revision history for Parse-Netstat-Search -0.01 Date/time - First version, released on an unsuspecting world. +0.0.0 2019-02-20/06:00 + -Initial release. + diff --git a/Parse-Netstat-Search/README b/Parse-Netstat-Search/README index dd045ca..167a4a3 100644 --- a/Parse-Netstat-Search/README +++ b/Parse-Netstat-Search/README @@ -1,15 +1,17 @@ Parse-Netstat-Search -The README is used to introduce the module and provide instructions on -how to install the module, any machine dependencies it may have (for -example C compilers and installed libraries) and any other information -that should be provided before the module is installed. +Searches the connection list in the results returned by Parse::Netstat -A README file is required for CPAN modules since CPAN extracts the README -file from a module distribution so that people browsing the archive -can use it to get an idea of the module's uses. It is usually a good idea -to provide version information here so that people can decide whether -fixes for the module are worth downloading. + use Parse::Netstat::Search; + use Parse::Netstat qw(parse_netstat); + + my $res = parse_netstat(output => join("", `netstat -anp`), flavor=>'linux'); + + my $search = Parse::Netstat::Search->new(); + + $search->set_cidrs( [ '10.0.0.0/24', '192.168.0.0/16' ] ); + + my @found=$search->search($res); INSTALLATION @@ -42,6 +44,9 @@ You can also look for information at: Search CPAN https://metacpan.org/release/Parse-Netstat-Search + Code Repo + http://gitea.eesdp.org/vvelox/Parse-Netstat-Search + LICENSE AND COPYRIGHT diff --git a/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm b/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm index e9eb73b..e8c7eaf 100644 --- a/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm +++ b/Parse-Netstat-Search/lib/Parse/Netstat/Search.pm @@ -609,6 +609,10 @@ L L +=item * Code Repo + +L + =back