Skip to contentSkip to conversation

NET_PKTGEN must depend on INET

PATCH New Adrian Bunk 1 participant 1 message Jul 19, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NET_PKTGEN must depend on INET

NET_PKTGEN=y and INET=n results in the following compile error:

<-- snip -->

...
LD .tmp_vmlinux1
net/built-in.o: In function `proc_if_write':
pktgen.c:(.text+0x18ca9): undefined reference to in_aton' pktgen.c:(.text+0x19c11): undefined reference to in_aton' pktgen.c:(.text+0x19ced): undefined reference to in_aton' pktgen.c:(.text+0x19e85): undefined reference to in_aton' net/built-in.o: In function `pktgen_setup_inject':
pktgen.c:(.text+0x1a93f): undefined reference to in_aton' net/built-in.o:pktgen.c:(.text+0x1a950): more undefined references to in_aton' follow
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->

net/Kconfig renamed from net/Kconfig.old +1 -1
@@ -192,7 +192,7 @@
 
 config NET_PKTGEN
 	tristate "Packet Generator (USE WITH CAUTION)"
-	depends on PROC_FS
+	depends on INET && PROC_FS
 	---help---
 	  This module will inject preconfigured packets, at a configurable
 	  rate, out of a given interface.  It is used for network interface