diff options
| author | Roy Marples <roy@marples.name> | 2009-04-27 14:00:39 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-04-27 14:00:39 +0000 |
| commit | 3949692e4d9061acb8cebcd002e2829dd085eaf5 (patch) | |
| tree | 9cd8395c940277b4543ca76b72f7953e9d08cd2b /net.c | |
| parent | 075c98728215caccf4e408fbbf6bd95f66607f3b (diff) | |
| download | dhcpcd-3949692e4d9061acb8cebcd002e2829dd085eaf5.tar.xz | |
Fix existing address detection.
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -375,8 +375,8 @@ do_address(const char *ifname, if (ifa->ifa_addr->sa_family != AF_INET || strcmp(ifa->ifa_name, ifname) != 0) continue; - a = (const struct sockaddr_in *)(void *)&ifa->ifa_addr; - n = (const struct sockaddr_in *)(void *)&ifa->ifa_netmask; + a = (const struct sockaddr_in *)(void *)ifa->ifa_addr; + n = (const struct sockaddr_in *)(void *)ifa->ifa_netmask; if (ifa->ifa_flags & IFF_POINTOPOINT) d = (const struct sockaddr_in *)(void *) &ifa->ifa_dstaddr; |
