Fixed IPv6 address fetch. The interface index in /proc/net/if_inet6
authorSven-Ola Tuecke <sven-ola@gmx.de>
Tue, 14 Sep 2010 09:33:46 +0000 (11:33 +0200)
committerSven-Ola Tuecke <sven-ola@gmx.de>
Tue, 14 Sep 2010 09:33:46 +0000 (11:33 +0200)
commitd03c3000b1282f1f60732233460a6477b36f6cdd
tree9a6cd9ea7390588f24367beff567a64cb9ec6dc1
parent0a591039610a044f5a213852d98c65e264f18997
Fixed IPv6 address fetch. The interface index in /proc/net/if_inet6
can grow above 0xff, especially with (Open)VPN interface when there
are added/removed constantly due to connection probs. Here are some
lines from the a proc file which triggers the error:
---
00000000000000000000000000000001 01 80 10 80       lo
fdcaffeebabe000002ffd6fffeed1987 743 40 00 80     tap1
fe8000000000000002ffd6fffeed1987 743 40 20 80     tap1
fe8000000000000002ff03fffe0fb7d8 08 40 20 80     tap0
fe800000000000000214bffffe3d4e0c 06 40 20 80      br0
---
src/linux/net.c