netdev
[Top] [All Lists]

[PATCH] make pktgen depends on procfs [2.6.0-test3]

To: netdev@xxxxxxxxxxx
Subject: [PATCH] make pktgen depends on procfs [2.6.0-test3]
From: Daniele Bellucci <bellucda@xxxxxxxxxx>
Date: Mon, 18 Aug 2003 23:26:10 +0200
Cc: davem@xxxxxxxxxx
Reply-to: bellucda@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.4.3
IMHO pktgen should depends on proc fs to avoid the following compilation error:

net/core/pktgen.c: In function `create_proc_dir':
net/core/pktgen.c:1296: `proc_net' undeclared (first use in this function)
net/core/pktgen.c:1296: (Each undeclared identifier is reported only once
net/core/pktgen.c:1296: for each function it appears in.)
make[2]: *** [net/core/pktgen.o] Error 1
make[1]: *** [net/core] Error 2
make: *** [net] Error 2


diff -urN 1.0/net/Kconfig 1.1/net/Kconfig
--- 1.0/net/Kconfig     2003-08-18 23:25:02.000000000 +0200
+++ 1.1/net/Kconfig     2003-08-18 23:25:13.000000000 +0200
@@ -661,6 +661,7 @@
 
 config NET_PKTGEN
        tristate "Packet Generator (USE WITH CAUTION)"
+       depends on CONFIG_PROC_FS
        ---help---
          This module will inject preconfigured packets, at a configurable
          rate, out of a given interface.  It is used for network interface


-- 
Daniele.







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