diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-11-18 13:34:59 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-11-18 13:34:59 +0000 |
commit | adaf6f04c54699a4ee0dcda01a2c1e4251f6d91f (patch) | |
tree | a3b8add3858e0cd574a849b39f8ea9d1004e4414 /dns/powerdns/files/patch-pdns_iputils_hh | |
parent | - use ECHO_CMD in test (diff) |
- Added some patches to fix a memory leak in the bind backend
- Added a patch to fix a problem with the allow-axfr-ips option (host/32 netmask didn't work)
- Added an option to the configure dialog to compile the recursor
- Bumped PORTREVISION
PR: 59385
Submitted by: tremere@cainites.net
Notes
Notes:
svn path=/head/; revision=94261
Diffstat (limited to 'dns/powerdns/files/patch-pdns_iputils_hh')
-rw-r--r-- | dns/powerdns/files/patch-pdns_iputils_hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dns/powerdns/files/patch-pdns_iputils_hh b/dns/powerdns/files/patch-pdns_iputils_hh new file mode 100644 index 000000000000..1dcd09077f33 --- /dev/null +++ b/dns/powerdns/files/patch-pdns_iputils_hh @@ -0,0 +1,18 @@ +--- pdns/iputils.hh.orig Sat Aug 30 16:27:48 2003 ++++ pdns/iputils.hh Mon Nov 10 17:27:02 2003 +@@ -51,10 +51,13 @@ + Netmask(const string &mask) + { + char *p; +- char bits=32; ++ u_int8_t bits=32; ++ d_mask=0xFFFFFFFF; ++ + if((p=strchr(mask.c_str(),'/'))) +- bits=atoi(p+1); ++ bits = (u_int8_t) atoi(p+1); + ++ if( bits < 32 ) + d_mask=~(0xFFFFFFFF>>bits); + + struct in_addr a; |