From e5d39031645ac897e0c0297f514ee62efe02f5f9 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 6 Dec 2019 11:46:09 -0800 Subject: [PATCH] update ifconfig doc --- docs/parsers/ifconfig.md | 55 +++++++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/docs/parsers/ifconfig.md b/docs/parsers/ifconfig.md index f6f1a8b7..da1b987a 100644 --- a/docs/parsers/ifconfig.md +++ b/docs/parsers/ifconfig.md @@ -13,22 +13,29 @@ Examples: { "name": "ens33", "flags": 4163, - "state": "UP,BROADCAST,RUNNING,MULTICAST", + "state": [ + "UP", + "BROADCAST", + "RUNNING", + "MULTICAST" + ], "mtu": 1500, - "ipv4_addr": "192.168.71.138", + "ipv4_addr": "192.168.71.137", "ipv4_mask": "255.255.255.0", "ipv4_bcast": "192.168.71.255", "ipv6_addr": "fe80::c1cb:715d:bc3e:b8a0", "ipv6_mask": 64, - "ipv6_scope": "link", + "ipv6_scope": "0x20", "mac_addr": "00:0c:29:3b:58:0e", "type": "Ethernet", - "rx_packets": 6374, + "rx_packets": 8061, + "rx_bytes": 1514413, "rx_errors": 0, "rx_dropped": 0, "rx_overruns": 0, "rx_frame": 0, - "tx_packets": 3707, + "tx_packets": 4502, + "tx_bytes": 866622, "tx_errors": 0, "tx_dropped": 0, "tx_overruns": 0, @@ -39,22 +46,28 @@ Examples: { "name": "lo", "flags": 73, - "state": "UP,LOOPBACK,RUNNING", + "state": [ + "UP", + "LOOPBACK", + "RUNNING" + ], "mtu": 65536, "ipv4_addr": "127.0.0.1", "ipv4_mask": "255.0.0.0", "ipv4_bcast": null, "ipv6_addr": "::1", "ipv6_mask": 128, - "ipv6_scope": "host", + "ipv6_scope": "0x10", "mac_addr": null, "type": "Local Loopback", - "rx_packets": 81, + "rx_packets": 73, + "rx_bytes": 6009, "rx_errors": 0, "rx_dropped": 0, "rx_overruns": 0, "rx_frame": 0, - "tx_packets": 81, + "tx_packets": 73, + "tx_bytes": 6009, "tx_errors": 0, "tx_dropped": 0, "tx_overruns": 0, @@ -71,20 +84,22 @@ Examples: "flags": "4163", "state": "UP,BROADCAST,RUNNING,MULTICAST", "mtu": "1500", - "ipv4_addr": "192.168.71.135", + "ipv4_addr": "192.168.71.137", "ipv4_mask": "255.255.255.0", "ipv4_bcast": "192.168.71.255", "ipv6_addr": "fe80::c1cb:715d:bc3e:b8a0", "ipv6_mask": "64", - "ipv6_scope": "link", + "ipv6_scope": "0x20", "mac_addr": "00:0c:29:3b:58:0e", "type": "Ethernet", - "rx_packets": "26348", + "rx_packets": "8061", + "rx_bytes": "1514413", "rx_errors": "0", "rx_dropped": "0", "rx_overruns": "0", "rx_frame": "0", - "tx_packets": "5308", + "tx_packets": "4502", + "tx_bytes": "866622", "tx_errors": "0", "tx_dropped": "0", "tx_overruns": "0", @@ -102,15 +117,17 @@ Examples: "ipv4_bcast": null, "ipv6_addr": "::1", "ipv6_mask": "128", - "ipv6_scope": "host", + "ipv6_scope": "0x10", "mac_addr": null, "type": "Local Loopback", - "rx_packets": "64", + "rx_packets": "73", + "rx_bytes": "6009", "rx_errors": "0", "rx_dropped": "0", "rx_overruns": "0", "rx_frame": "0", - "tx_packets": "64", + "tx_packets": "73", + "tx_bytes": "6009", "tx_errors": "0", "tx_dropped": "0", "tx_overruns": "0", @@ -139,7 +156,9 @@ Returns: { "name": string, "flags": integer, - "state": string, + "state": [ + string + ], "mtu": integer, "ipv4_addr": string, "ipv4_mask": string, @@ -150,11 +169,13 @@ Returns: "mac_addr": string, "type": string, "rx_packets": integer, + "rx_bytes": integer, "rx_errors": integer, "rx_dropped": integer, "rx_overruns": integer, "rx_frame": integer, "tx_packets": integer, + "tx_bytes": integer, "tx_errors": integer, "tx_dropped": integer, "tx_overruns": integer,