networkInterfaces() added subnet mask ip4 and ip6

This commit is contained in:
Sebastian Hildebrandt
2020-05-01 20:21:23 +02:00
parent 0495740a32
commit 4c6b6a257a
9 changed files with 60 additions and 3 deletions
+24
View File
@@ -105,6 +105,16 @@
<td>X</td>
<td>ip4 address</td>
</tr>
<tr>
<td></td>
<td>[0].ip4subnet</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>ip4 subnet mask</td>
</tr>
<tr>
<td></td>
<td>[0].ip6</td>
@@ -115,6 +125,16 @@
<td>X</td>
<td>ip6 address</td>
</tr>
<tr>
<td></td>
<td>[0].ip6subnet</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>ip6 subnet mask</td>
</tr>
<tr>
<td></td>
<td>[0].mac</td>
@@ -257,7 +277,9 @@ si.networkInterfaces().then(data => console.log(data));</code></pre class="examp
iface: 'lo0',
ifaceName: 'lo0',
ip4: '127.0.0.1',
ip4subnet: '255.0.0.0',
ip6: '::1',
ip6subnet: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
mac: '',
internal: true,
virtual: false,
@@ -276,7 +298,9 @@ si.networkInterfaces().then(data => console.log(data));</code></pre class="examp
iface: 'en0',
ifaceName: 'en0',
ip4: '192.168.0.27',
ip4subnet: '255.255.255.0',
ip6: 'fe80::134a:1e43:abc5:d413',
ip6subnet: 'ffff:ffff:ffff:ffff::',
mac: 'xx:xx:xx:xx:xx:xx',
internal: false,
virtual: false,