radvd-project / radvd

radvd | Official repository: https://github.com/radvd-project/radvd
https://radvd.litech.org/
Other
203 stars 106 forks source link

setup_linklocal_addr can be improved #4

Closed reubenhwk closed 11 years ago

reubenhwk commented 11 years ago
/*
 * this function extracts the link local address and interface index
 * from PATH_PROC_NET_IF_INET6.  Note: 'sock' unused in Linux.
 */
int setup_linklocal_addr(struct Interface *iface)

This function opens a file, PATH_PROC_NET_IF_INET6, reading each line until it collects the link local and interface index for the interface. There must be a direct way to do this...

reubenhwk commented 11 years ago

Lost interest, plus this works as is.