[patch] Unresolved symbol: ip_masq_select_addr

Arjan van de Ven (arjan@fenrus.demon.nl)
Fri, 1 Jan 1999 10:31:13 +0100 (CET)


Hi,

I found a problem with an unresolved symbol "ip_masq_select_addr".
Cause: the definition was inside a "#ifdef CONFIG_PROC_FS ... #endif"
block, while it really shouldn't.

Solution: Move it a bit lower, just outside the block.

--- linux/net/ipv4/ip_masq.c~ Sun Dec 27 19:23:26 1998
+++ linux/net/ipv4/ip_masq.c Fri Jan 1 11:23:56 1999
@@ -2232,13 +2232,6 @@
proc_unregister(proc_net_ip_masq, ent->low_ino);
}

-/*
- * Wrapper over inet_select_addr()
- */
-u32 ip_masq_select_addr(struct device *dev, u32 dst, int scope)
-{
- return inet_select_addr(dev, dst, scope);
-}

__initfunc(static void masq_proc_init(void))
{
@@ -2257,6 +2250,13 @@
}
}
#endif /* CONFIG_PROC_FS */
+/*
+ * Wrapper over inet_select_addr()
+ */
+u32 ip_masq_select_addr(struct device *dev, u32 dst, int scope)
+{
+ return inet_select_addr(dev, dst, scope);
+}

/*
* Initialize ip masquerading

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/