|
From: Ilya E. <il...@gl...> - 2009-09-15 20:58:25
|
That's because of a piece of stray code lurked into this release. Here's a
fix:
*** sweetspot-0.0.19/src/nat_src.c% Wed Jun 3 19:20:32 2009
--- sweetspot-0.0.19/src/nat_src.c Mon Sep 7 14:40:06 2009
***************
*** 100,115 ****
sw_log("%s:%d existing relation #%u %s [%s]", __FILE__, __LINE__,
r->seq, sw_tuple_pretty(r->prv), sw_tuple_pretty(r->pub));
*pub = r->pub;
- seq_distance = global_seq_ticker - r->seq;
- seq_distance = seq_distance > 0 ? seq_distance : -seq_distance;
- if (seq_distance > SW_NAT_SRC_RELATIONS_MAX/3) {
- if (sw_debug_flags & SW_DEBUG_NAT_SRC)
- sw_log("%s:%d renewing relation #%u %s [%s]", __FILE__, __LINE__,
- r->seq, sw_tuple_pretty(r->prv), sw_tuple_pretty(r->pub));
- lh_delete(global_nat_src_seq_hash, (void *)r);
- r->seq = global_seq_ticker;
- lh_insert(global_nat_src_seq_hash, (void *)r);
- }
} else {
if (global_seq_ticker == SW_NAT_SRC_RELATIONS_MAX)
global_seq_ticker = 0;
--- 100,105 ----
Next sweetspot revision will have this fixed.
-ilya
> I'm attempting to compile Sweetspot on an openSUSE box running kernel
> 2.6.27.7-9-pae. My version of GCC is at 4.3.
>
> I get the following error when attempting to run make from the source
> directory of SweetSpot0.0.19:
>
> make[3]: Entering directory `/usr/src/sweetspot-0.0.19/src'
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src
> -DSW_DEFAULT_CONFIG_DIR="\"/usr/local/etc/sweetspot\"" -g -g -O2 -MT
> nat_src.o -MD -MP -MF ".deps/nat_src.Tpo" -c -o nat_src.o nat_src.c; \
> then mv -f ".deps/nat_src.Tpo" ".deps/nat_src.Po"; else rm -f
> ".deps/nat_src.Tpo"; exit 1; fi
> nat_src.c: In function âsw_nat_src_doâ:
> nat_src.c:103: error: âseq_distanceâ undeclared (first use in this function)
> nat_src.c:103: error: (Each undeclared identifier is reported only once
> nat_src.c:103: error: for each function it appears in.)
> make[3]: *** [nat_src.o] Error 1
> make[3]: Leaving directory `/usr/src/sweetspot-0.0.19/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/sweetspot-0.0.19/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/sweetspot-0.0.19'
> make: *** [all] Error 2
>
> Let me know if you guys have encountered this, or have a fix. Really
> appreciate you reading this. |