diff --git a/changelog.txt b/changelog.txt index e4cba13f..edb73bc0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,11 +2,11 @@ jc changelog 201911xx v1.5.1 - Add -r and raw=True options. By default, jc will now convert numbers and boolean, if possible, and add other semantic information, while the raw output will keep all values as text and provide a more literal JSON output -- Clean up helptext code - Add compatibility warnings to stderr - Add -q and quiet=True options to suppress warnings to stderr - Updated lsof parser to allow parsing of added columns -- Updated netstat parser to allow parsing of unix sockets +- Updated netstat parser to allow parsing of unix sockets and non-tcp/udp connections +- Clean up code and reorganize package 20191031 v1.1.1 - Add arp parser diff --git a/jc/parsers/netstat.py b/jc/parsers/netstat.py index 665d50dd..d12bb7a1 100644 --- a/jc/parsers/netstat.py +++ b/jc/parsers/netstat.py @@ -91,7 +91,8 @@ def parse_post(raw_data): # clean up trailing whitespace on each item in each entry # flags --- = null # program_name - = null - # post process to split pid and program name and ip addresses and ports + # split pid and program name and ip addresses and ports + # create network and transport protocol fields for entry in raw_data: for item in entry: