mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-06 15:51:41 +00:00
import of dnsmasq-2.7.tar.gz
This commit is contained in:
1 parent
33820b7ed9
commit
a84fa1d085
14 files changed
+321
-174
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user