41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
> decl iodevice iod
|
|
> decl string<> arg
|
|
> append "ifconfig" arg
|
|
> set iod (ursa.util.process.start arg)
|
|
> decl string<> output
|
|
> set output (iod.readlines)
|
|
> for (decl int i) (< i (size output)) (inc i)
|
|
.. out output<i> endl console
|
|
..end for
|
|
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
|
|
options=3<RXCSUM,TXCSUM>
|
|
inet6 ::1 prefixlen 128
|
|
inet 127.0.0.1 netmask 0xff000000
|
|
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
|
|
nd6 options=1<PERFORMNUD>
|
|
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
|
|
stf0: flags=0<> mtu 1280
|
|
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|
options=27<RXCSUM,TXCSUM,VLAN_MTU,TSO4>
|
|
ether d4:9a:20:b8:8d:2c
|
|
nd6 options=1<PERFORMNUD>
|
|
media: autoselect
|
|
status: inactive
|
|
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
|
|
ether 00:26:08:e0:67:cc
|
|
inet6 fe80::226:8ff:fee0:67cc%en1 prefixlen 64 scopeid 0x5
|
|
inet 172.20.30.66 netmask 0xffffff00 broadcast 172.20.30.255
|
|
nd6 options=1<PERFORMNUD>
|
|
media: autoselect
|
|
status: active
|
|
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
|
|
lladdr d4:9a:20:ff:fe:b8:8d:2c
|
|
nd6 options=1<PERFORMNUD>
|
|
media: autoselect <full-duplex>
|
|
status: inactive
|
|
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
|
|
ether 02:26:08:e0:67:cc
|
|
media: autoselect
|
|
status: inactive
|
|
>
|