diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-10 17:38:39 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-10 19:58:49 +0100 |
commit | f32139023a83bf2bb3713d1a447ed042c36c9e3c (patch) | |
tree | fa7222421cedf8418fd58cf9dcbc7c72e04b9455 /src/odhcp6c.c | |
parent | b4d90de3204d4b7b813f0e1bc0019b8607a29c9f (diff) | |
download | odhcp6c-f32139023a83bf2bb3713d1a447ed042c36c9e3c.tar.gz |
Use getifaddrs to get the interface-id when not specified
Reimplementing this section also fixes two potential bugs:
1. Only link-local addresses should be used for automatic interface-id
selection, as it should always be assigned by the kernel and is always based
on the EUI-64 unless an administrator is doing strange things (while other
addresses might be chosen according to the privacy extensions or by an
administrator)
2. When no address is available (because of a race condition or because an
administrator removed it), RA packets should just be ignored; otherwise
an address with a zero interface-id might be assigned
Diffstat (limited to 'src/odhcp6c.c')
0 files changed, 0 insertions, 0 deletions