1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

add netstat -r support for linux

This commit is contained in:
Kelly Brazil
2020-05-22 12:00:26 -07:00
parent 5d0dbece93
commit ec2cd2d708
9 changed files with 70 additions and 11 deletions

View File

@ -381,16 +381,19 @@ def process(proc_data):
"sndbuf": integer,
"rxbytes": integer,
"txbytes": integer,
"destination": string,
"gateway": string,
"route_flags": string,
"route_refs": integer,
"use": integer,
"mtu": integer,
"netif": string,
"expire": string
"expire": string,
"genmask": string,
"mss": integer,
"window": integer,
"irtt": integer,
"iface": string,
"metric": integer
}
]
"""
@ -398,7 +401,7 @@ def process(proc_data):
# integer changes
int_list = ['recv_q', 'send_q', 'pid', 'refcnt', 'inode', 'unit', 'vendor', 'class',
'osx_flags', 'subcla', 'pcbcount', 'rcvbuf', 'sndbuf', 'rxbytes', 'txbytes',
'route_refs', 'use', 'mtu']
'route_refs', 'use', 'mtu', 'mss', 'window', 'irtt', 'metric']
for key in int_list:
if key in entry:
try: