diff --git a/CHANGELOG b/CHANGELOG index 8816f8b3..2ab31bff 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ jc changelog +20231221 v1.24.1 +- Enhance `proc-net-tcp` parser to add opposite endian support for architectures + like the s390x + 20231216 v1.24.0 - Add `debconf-show` command parser - Add `iftop` command parser diff --git a/docs/parsers/proc_net_tcp.md b/docs/parsers/proc_net_tcp.md index 3a276976..ec34df35 100644 --- a/docs/parsers/proc_net_tcp.md +++ b/docs/parsers/proc_net_tcp.md @@ -42,30 +42,37 @@ https://github.com/torvalds/linux/blob/master/net/ipv6/tcp_ipv6.c [ { - "entry": integer, - "local_address": string, - "local_port": integer, - "remote_address": string, - "remote_port": integer, - "state": string, - "tx_queue": string, - "rx_queue": string, - "timer_active": integer, - "jiffies_until_timer_expires": string, - "unrecovered_rto_timeouts": string, - "uid": integer, - "unanswered_0_window_probes": integer, - "inode": integer, - "sock_ref_count": integer, - "sock_mem_loc": string, - "retransmit_timeout": integer, - "soft_clock_tick": integer, - "ack_quick_pingpong": integer, - "sending_congestion_window": integer, - "slow_start_size_threshold": integer + "entry": integer, + "local_address": string, + "local_port": integer, + "remote_address": string, + "remote_port": integer, + "state": string, + "tx_queue": string, + "rx_queue": string, + "timer_active": integer, + "jiffies_until_timer_expires": string, + "unrecovered_rto_timeouts": string, + "uid": integer, + "unanswered_0_window_probes": integer, + "inode": integer, + "sock_ref_count": integer, + "sock_mem_loc": string, + "retransmit_timeout": integer, + "soft_clock_tick": integer, + "ack_quick_pingpong": integer, + "sending_congestion_window": integer, + "slow_start_size_threshold": integer, + "opposite_endian_local_address": string, [0] + "opposite_endian_remote_address": string [0] } ] + [0] For IPv6 output originating from an opposite endian architecture + (e.g. s390x vs. x64) You should not need to use this to process + output originating from the same machine running `jc` or from a + machine with the same endianness. + Examples: $ cat /proc/net/tcp | jc --proc -p @@ -183,4 +190,6 @@ Returns: ### Parser Information Compatibility: linux -Version 1.0 by Alvin Solomon (alvinms01@gmail.com) +Source: [`jc/parsers/proc_net_tcp.py`](https://github.com/kellyjonbrazil/jc/blob/master/jc/parsers/proc_net_tcp.py) + +Version 1.1 by Alvin Solomon (alvinms01@gmail.com) diff --git a/man/jc.1 b/man/jc.1 index 7128a94b..18fafb1d 100644 --- a/man/jc.1 +++ b/man/jc.1 @@ -1,4 +1,4 @@ -.TH jc 1 2023-12-17 1.24.0 "JSON Convert" +.TH jc 1 2023-12-21 1.24.0 "JSON Convert" .SH NAME \fBjc\fP \- JSON Convert JSONifies the output of many CLI tools, file-types, and strings