import of dnsmasq-2.7.tar.gz

This commit is contained in:
Simon Kelley committed 2012-01-05 17:31:10 +00:00
1 parent 33820b7ed9
commit a84fa1d085
14 files changed
+321 -174

No files matched your search

+5
View File
@@ -228,3 +228,8 @@ time_t dnsmasq_time(int fd)
return time(NULL);
#endif
}
int is_same_net(struct in_addr a, struct in_addr b, struct in_addr mask)
{
return (a.s_addr & mask.s_addr) == (b.s_addr & mask.s_addr);
}