]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Use getifaddrs to get the interface-id when not specified
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 10 Jan 2014 16:38:39 +0000 (17:38 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 10 Jan 2014 18:58:49 +0000 (19:58 +0100)
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


No differences found