-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ip addr error: IndexError: list index out of range #56
Comments
Thank you for the report. Can you please attach output of @signal-09 FYI |
I'm unable to reproduce: esimone@macOS-Ventura ~ % sw_vers
ProductName: macOS
ProductVersion: 13.6
BuildVersion: 22G120
esimone@macOS-Ventura ~ % ip a
1: lo0: <UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 status UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8
inet6 ::1/128
inet6 fe80::1/64
2: gif0: <POINTOPOINT,MULTICAST> mtu 1280 status UNKNOWN
link/none
3: stf0: <> mtu 1280 status UNKNOWN
link/unknown
4: anpi0: <UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 status DOWN
link/ether 8e:d2:98:3d:bb:bd brd ff:ff:ff:ff:ff:ff
inet6 fe80::8cd2:98ff:fe3d:bbbd/64
5: en0: <UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 status UP
link/ether 2e:10:0e:90:0b:c3 brd ff:ff:ff:ff:ff:ff
inet6 fe80::48d:8a94:cba5:3ed7/64
inet6 fd34:1552:2248:d54a:859:b331:756a:fb1b/64
inet 192.168.108.4/24 brd 192.168.108.255
6: en1: <UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 status DOWN
link/ether 8e:d2:98:3d:bb:9d brd ff:ff:ff:ff:ff:ff
10: utun3: <UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 status UNKNOWN
link/none
inet6 fe80::7e4f:470d:dc3a:1071/64
11: utun4: <UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 status UNKNOWN
link/none
inet6 fe80::f198:ab96:ebf2:6b0/64
12: utun5: <UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000 status UNKNOWN
link/none
inet6 fe80::ce81:b1c:bd2c:69e/64
esimone@macOS-Ventura ~ % ifconfig -a -v
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 index 1
eflags=12000000<ECN_DISABLE,SENDLIST>
xflags=4<NOAUTONX>
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
link quality: 100 (good)
state availability: 0 (true)
timestamp: disabled
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 index 2
eflags=1000000<ECN_ENABLE>
state availability: 0 (true)
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
stf0: flags=0<> mtu 1280 index 3
eflags=1000000<ECN_ENABLE>
state availability: 0 (true)
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
anpi0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 index 4
eflags=41000080<TXSTART,ECN_ENABLE,FASTLN_ON>
xflags=2000<NOSHAPING>
options=400<CHANNEL_IO>
ether 8e:d2:98:3d:bb:bd
inet6 fe80::8cd2:98ff:fe3d:bbbd%anpi0 prefixlen 64 scopeid 0x4
netif: 689F5C64-6B6E-4A69-A704-A0E790C7F930
flowswitch: ED8A149D-B513-4D45-8E5D-59DD881B6D99
nd6 options=201<PERFORMNUD,DAD>
media: none
status: inactive
type: USB Ethernet
agent domain:Skywalk type:NetIf flags:0xa443 desc:"Userspace Networking"
agent domain:Skywalk type:FlowSwitch flags:0x4483 desc:"Userspace Networking"
state availability: 0 (true)
scheduler: FQ_CODEL
qosmarking enabled: yes mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 index 5
eflags=410008c0<ACCEPT_RTADV,TXSTART,ARPLL,ECN_ENABLE,FASTLN_ON>
options=463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO>
ether 2e:10:0e:90:0b:c3
inet6 fe80::48d:8a94:cba5:3ed7%en0 prefixlen 64 secured scopeid 0x5
inet6 fd34:1552:2248:d54a:859:b331:756a:fb1b prefixlen 64 autoconf secured
inet 192.168.108.4 netmask 0xffffff00 broadcast 192.168.108.255
netif: B21E250E-4438-4B26-9167-A0E3CF874B9B
flowswitch: B40EE6E1-7B9C-4D91-B5CF-C072656CB0DD
nd6 options=201<PERFORMNUD,DAD>
media: autoselect <full-duplex,flow-control>
status: active
type: Ethernet
agent domain:Skywalk type:NetIf flags:0xa443 desc:"Userspace Networking"
agent domain:Skywalk type:FlowSwitch flags:0x4483 desc:"Userspace Networking"
link quality: 100 (good)
state availability: 0 (true)
scheduler: FQ_CODEL
unaligned pkts: 18171
qosmarking enabled: yes mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 index 6
eflags=41000081<AUTOCONFIGURING,TXSTART,ECN_ENABLE,FASTLN_ON>
options=400<CHANNEL_IO>
ether 8e:d2:98:3d:bb:9d
netif: AC692277-917F-417E-BAF8-A6F66D72C559
flowswitch: 9FD1FC52-6C7B-4D47-9798-6A62DAD1E470
nd6 options=201<PERFORMNUD,DAD>
media: none
status: inactive
type: USB Ethernet
agent domain:Skywalk type:NetIf flags:0xa443 desc:"Userspace Networking"
agent domain:Skywalk type:FlowSwitch flags:0x4483 desc:"Userspace Networking"
state availability: 0 (true)
scheduler: FQ_CODEL
qosmarking enabled: yes mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 index 10
eflags=1002080<TXSTART,NOAUTOIPV6LL,ECN_ENABLE>
xflags=4<NOAUTONX>
inet6 fe80::7e4f:470d:dc3a:1071%utun3 prefixlen 64 scopeid 0xa
nd6 options=201<PERFORMNUD,DAD>
state availability: 0 (true)
scheduler: FQ_CODEL
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
utun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 index 11
eflags=1002080<TXSTART,NOAUTOIPV6LL,ECN_ENABLE>
xflags=4<NOAUTONX>
inet6 fe80::f198:ab96:ebf2:6b0%utun4 prefixlen 64 scopeid 0xb
nd6 options=201<PERFORMNUD,DAD>
agent domain:ids501 type:clientchannel flags:0xc3 desc:"IDSNexusAgent ids501 : clientchannel"
state availability: 0 (true)
scheduler: FQ_CODEL
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
utun5: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000 index 12
eflags=1002080<TXSTART,NOAUTOIPV6LL,ECN_ENABLE>
xflags=4<NOAUTONX>
inet6 fe80::ce81:b1c:bd2c:69e%utun5 prefixlen 64 scopeid 0xc
nd6 options=201<PERFORMNUD,DAD>
agent domain:ids501 type:transport flags:0x4c3 desc:"IDSTransportAgent ids501 : transport"
state availability: 0 (true)
scheduler: FQ_CODEL
qosmarking enabled: no mode: none
low power mode: disabled
multi layer packet logging (mpklog): disabled
routermode4: disabled
routermode6: disabled
esimone@macOS-Ventura ~ % ip -V
iproute2mac, v1.5.0 |
I'm seeing the same issue. I probably successfully last used iproute2mac commands within the last month on the same laptop. MacOS: 14.6
|
Thanks @hhsnow, the breaking line was
With the new parsing logic, we were failing to accept the 8a63 as a hex value. I just committed fix, could you confirm it works for you?
@0x67cq Can you please confirm as well? I would like to make sure there is not another case. Thanks Since it is failing on the same line, I assume it is the same. I started v1.5.1 release at Homebrew/homebrew-core#179829 |
@brona thanks, that fixed it for me. |
@brona after update, it works fine. sorry about has no response since two week. |
hi I'm still getting similar issue on 1.5.3, should I start a new issue?
|
@frankli0324 can you please paste the exact error message you are getting? Thanks |
It's a point-to-point IPv6: |
This is the output with the proposed fix: > ip addr show
...
5: utun0: <UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280 status UNKNOWN
link/none
inet 100.97.132.128 peer 100.97.132.128/32
inet6 fe80::aede:48ff:fe00:1122/64
inet6 fd7a:115c:a1e0:ab12:4843:cd96:6261:8480 peer fd7a:115c:a1e0:ab12:4843:cd96:6261:8480/128 |
Thanks for the fix, v1.5.4 is being released to homebrew |
OS Version 13.6.8
iproute2mac Version: 1.5.0
brew install: iproute2mac 1.5.0 is already installed and up-to-date.
Output:
The text was updated successfully, but these errors were encountered: