netdev
[Top] [All Lists]

[PATCH] [NETFILTER] Fix "undefined reference" error if CONFIG_SYSCTL=n

To: davem@xxxxxxxxxxxxx
Subject: [PATCH] [NETFILTER] Fix "undefined reference" error if CONFIG_SYSCTL=n
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Fri, 10 Sep 2004 15:31:35 +0900 (JST)
Cc: netdev@xxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
Organization: USAGI Project
Sender: netdev-bounce@xxxxxxxxxxx
Hello.

Fix the following error if CONFIG_SYSCTL=n.

| net/built-in.o: In function `tcp_in_window':
| net/built-in.o(.text+0x49571): undefined reference to `ip_ct_log_invalid'
| net/built-in.o: In function `tcp_error':
| net/built-in.o(.text+0x49715): undefined reference to `ip_ct_log_invalid'
| net/built-in.o(.text+0x49756): undefined reference to `ip_ct_log_invalid'
| net/built-in.o(.text+0x497f1): undefined reference to `ip_ct_log_invalid'
| net/built-in.o(.text+0x49823): undefined reference to `ip_ct_log_invalid'
| net/built-in.o(.text+0x49998): more undefined references to 
`ip_ct_log_invalid' follow
| make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxx>

===== net/ipv4/netfilter/ip_conntrack_standalone.c 1.40 vs edited =====
--- 1.40/net/ipv4/netfilter/ip_conntrack_standalone.c   2004-09-01 00:27:37 
+09:00
+++ edited/net/ipv4/netfilter/ip_conntrack_standalone.c 2004-09-10 15:16:34 
+09:00
@@ -48,6 +48,8 @@
 extern atomic_t ip_conntrack_count;
 DECLARE_PER_CPU(struct ip_conntrack_stat, ip_conntrack_stat);
 
+unsigned int ip_ct_log_invalid = 0;
+
 static int kill_proto(const struct ip_conntrack *i, void *data)
 {
        return (i->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum == 
@@ -522,7 +524,6 @@
 extern unsigned long ip_ct_generic_timeout;
 
 /* Log invalid packets of a given protocol */
-unsigned int ip_ct_log_invalid = 0;
 static int log_invalid_proto_min = 0;
 static int log_invalid_proto_max = 255;
 
 

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

<Prev in Thread] Current Thread [Next in Thread>