summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-09-24 18:18:14 -0700
committerKai Blin <kai@samba.org>2011-09-24 21:46:06 -0700
commitb02bbf237cfd36cd736cefc78f1e3ba3278dc7bf (patch)
tree7c2763a28aa44a08a48c78e0fde6c82dc6797ea8 /source3/utils
parent7466612392272e70c60114fc035b62b16f6194aa (diff)
downloadsamba-b02bbf237cfd36cd736cefc78f1e3ba3278dc7bf.tar.gz
samba-b02bbf237cfd36cd736cefc78f1e3ba3278dc7bf.tar.bz2
samba-b02bbf237cfd36cd736cefc78f1e3ba3278dc7bf.zip
net: Don't register link local addresses with DNS
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_dns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c
index 5fbdc0a70f..f146f29bcd 100644
--- a/source3/utils/net_dns.c
+++ b/source3/utils/net_dns.c
@@ -170,6 +170,11 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
continue;
}
+ /* Don't register link-local addresses */
+ if (is_linklocal_addr(nic_sa_storage)) {
+ continue;
+ }
+
memcpy(&list[count++], nic_sa_storage, sizeof(struct sockaddr_storage));
}
*pp_ss = list;