config/debug/duma.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
parent 369 9258a7c3b84f
child 572 944e145f3890
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@236
     1
# D.U.M.A. - Detect Unintended Memory Access - Memory checker
yann@236
     2
yann@236
     3
menuconfig DUMA
yann@236
     4
    bool
yann@236
     5
    prompt "D.U.M.A."
yann@236
     6
    default n
yann@236
     7
    help
yann@236
     8
      D.U.M.A. - Detect Unintended Memory Access
yann@236
     9
      A memory bound checker, with additional features.
yann@236
    10
      Formerly known as Electric Fence.
yann@236
    11
yann@236
    12
if DUMA
yann@236
    13
yann@236
    14
config DUMA_A
yann@236
    15
    bool
yann@236
    16
    prompt "Build a static library"
yann@236
    17
    default y
yann@236
    18
yann@236
    19
config DUMA_SO
yann@236
    20
    bool
yann@236
    21
    prompt "Build a shared library"
yann@236
    22
    default y if SHARED_LIBS
yann@236
    23
    default n if ! SHARED_LIBS
yann@236
    24
yann@236
    25
choice
yann@236
    26
    bool
yann@236
    27
    prompt "D.U.M.A. version"
yann@236
    28
yann@236
    29
config DUMA_V_2_5_1
yann@236
    30
    bool
yann@236
    31
    prompt "2_5_1"
yann@236
    32
yann@369
    33
config DUMA_V_2_5_8
yann@279
    34
    bool
yann@369
    35
    prompt "2_5_8"
yann@279
    36
yann@430
    37
config DUMA_V_2_5_12
yann@430
    38
    bool
yann@430
    39
    prompt "2_5_12"
yann@430
    40
yann@236
    41
# CT_INSERT_VERSION_ABOVE
yann@236
    42
# Don't remove above line!
yann@236
    43
endchoice
yann@236
    44
yann@236
    45
config DUMA_VERSION
yann@236
    46
    string
yann@236
    47
    default "2_5_1" if DUMA_V_2_5_1
yann@369
    48
    default "2_5_8" if DUMA_V_2_5_8
yann@430
    49
    default "2_5_12" if DUMA_V_2_5_12
yann@236
    50
# CT_INSERT_VERSION_STRING_ABOVE
yann@236
    51
# Don't remove above line!
yann@236
    52
yann@236
    53
endif