svn commit: samba r11710 - in branches/SAMBA_4_0/source/lib/netif: .
tridge at samba.org
tridge at samba.org
Mon Nov 14 01:50:27 GMT 2005
Author: tridge
Date: 2005-11-14 01:50:26 +0000 (Mon, 14 Nov 2005)
New Revision: 11710
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11710
Log:
added function iface_same_net()
Modified:
branches/SAMBA_4_0/source/lib/netif/interface.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/netif/interface.c
===================================================================
--- branches/SAMBA_4_0/source/lib/netif/interface.c 2005-11-14 00:57:19 UTC (rev 11709)
+++ branches/SAMBA_4_0/source/lib/netif/interface.c 2005-11-14 01:50:26 UTC (rev 11710)
@@ -370,3 +370,13 @@
}
return False;
}
+
+/*
+ return True if a IP matches a IP/netmask pair
+*/
+BOOL iface_same_net(const char *ip1, const char *ip2, const char *netmask)
+{
+ return same_net(interpret_addr2(ip1),
+ interpret_addr2(ip2),
+ interpret_addr2(netmask));
+}
More information about the samba-cvs
mailing list