1
--- deadwood-2.9.04/doc/compile.options 2009-05-10 11:14:23.000000000 -0700
2
+++ deadwood-2.9.05/doc/compile.options 2010-08-16 07:31:50.000000000 -0700
4
The default compile gives no IPv6
6
To compile Deadwood with IPv6 support, add '-DIPV6' to the compile-time
8
+flags, e.g. 'cd src/ ; export FLAGS='-O3 -DIPV6'; make'
10
The reason why one may wish IPv6 is to use Deadwood on an IPv6 network.
14
+Full list of compile flags Deadwood has:
16
+IPV6 (-DIPV6): Adds IPv6 support to Deadwood
18
+STRICT_RFC2671_COMPLIANCE (-DSTRICT_RFC2671_COMPLIANCE): Normally, Deadwood
19
+ handles EDNS (RFC2671) packets by acting like the packet was an
20
+ ordinary RFC1035 DNS request. This flag conforms to section 5.3 of
21
+ RFC2671 by having Deadwood instead reply to ENDS packets with a
22
+ "not implemented" error.
24
+MINGW (use the correct Makefile): Used to replace *NIX sockets with Windows
25
+ sockets and make other changes to make the program a native Windows
26
+ service. This flag should not be invoked by the end-user compiling
27
+ Deadwood; instead use the 'Makefile.mingw' file:
28
+ make -f Makefile.mingw342
30
+__CYGWIN__ (no flag to set; Cygwin sets this): It is also possible to
31
+ compile this program using Cygwin, an environment that fully
32
+ emulates a *NIX development environment in Windows.
34
+Note: The following compile-time flags will only be of interest to developers
37
+VALGRIND_NOERRORS (-DVALGRIND_NOERRORS): Normally, Deadwood uses the contents
38
+ of uninitialized memory as an entropy source for the random number
39
+ generator. This compile-time flag disables that behavior so that
40
+ Valgrind (a debugging tool for C programs) does not complain about
41
+ program behavior affected by uninitizlized data.
43
+XTRA_STUFF (-DXTRA_STUFF): Add some routines that allow the printing of
44
+ debug information to standard output.
46
+HASH_DEBUG (-DHASH_DEBUG): Add information used by the
47
+ dwood2rc_n_hash_magic_number SQA regression
49
+HAVE_MAIN (-DHAVE_MAIN): DwCompress.c, DwHash.c, DwMararc.c, and
50
+ DwRadioGatun.c all have main() routines that can be enabled with
51
+ this compile-time flag. This is mainly used for debugging.
52
+ DwRadioGatun.c, when compiled with
53
+ 'gcc -g -DHAVE_MAIN -o RadioGatun DwRadioGatun.c' makes a program
54
+ that will output on standard output the RadioGatun[32] sum of the
55
+ first argument given to the program. We use this in the SQA test
56
+ (sqa_rg32) to ensure that DwRadioGatun.c makes a RadioGatun[32]
57
+ implementation that passes all official RadioGatun[32] test vectors.
59
+HSCK (-DHSCK): Adds some routines to ensure that DwHash.c is correctly
60
+ creating a doubly linked list hash and queue. Used with the
61
+ debug-only Makefile.hsck make file.
63
+INFLIGHT_VERBOSE (-DINFLIGHT_VERBOSE): Used by the dwood2rc_n_max_inflights
64
+ SQA test to ensure multiple inflight merging works
66
+MARARC_C: Used internally by DwMararc.c to ensure that it sees some data
67
+ in DwMararc.h that other program files should not see. Not used
68
+ as a compile-time flag. We do things this way so a new dwood3rc
69
+ parameter can be added by only modifying one file (however, we
70
+ still need to modify DwMararc.c to give said parameter a default
73
+NO_INET_PTON: Deadwood uses inet_pton() to convert human-readable IP
74
+ addresses like "10.1.2.3" in to binary IPs. If a given system
75
+ doesn't have inet_pton() (Windows doesn't), this creates
76
+ a inet_pton() using inet_addr() to convert the actual IP (since
77
+ Windows does have inet_addr() )