summaryrefslogtreecommitdiff
path: root/source4/lib/netif
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-02-15 02:56:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:55 -0500
commit8c7a593bcd5a30e47d1f062bfb9ca7d5118fe459 (patch)
treece3cb6c485f204685c9e8febbd309ec22d53c47a /source4/lib/netif
parent26421fb2dc995c4fc10195f451c4d7dce07034bf (diff)
downloadsamba-8c7a593bcd5a30e47d1f062bfb9ca7d5118fe459.tar.gz
samba-8c7a593bcd5a30e47d1f062bfb9ca7d5118fe459.tar.bz2
samba-8c7a593bcd5a30e47d1f062bfb9ca7d5118fe459.zip
r13504: add back in a comment noting fred as the contributor of the address
calculation code. This was originally done in 1997, and has been morphed a lot since then, but fred should still get credit (This used to be commit 172e41596fb3b4d2768d6885aea43295cc2f81c1)
Diffstat (limited to 'source4/lib/netif')
-rw-r--r--source4/lib/netif/interface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/netif/interface.c b/source4/lib/netif/interface.c
index 1135bbf868..2a0e3642fe 100644
--- a/source4/lib/netif/interface.c
+++ b/source4/lib/netif/interface.c
@@ -39,6 +39,9 @@ struct interface {
static struct interface *local_interfaces;
#define ALLONES ((uint32_t)0xFFFFFFFF)
+/*
+ address construction based on a patch from fred@datalync.com
+*/
#define MKBCADDR(_IP, _NM) ((_IP & _NM) | (_NM ^ ALLONES))
#define MKNETADDR(_IP, _NM) (_IP & _NM)