rshaper
Tech
tech na spinea.sk
Pondělí Prosinec 16 09:00:49 CET 2002
Na sietovke potrebujem obmedzit prich. a odch. pakety.
Na stranke http://poweroff.cz/index.php?clanek=16 som nasiel rshaper.
Ked som ho chcel skompilovat vypisal mi toto(pricom netfilter mam zapnuty a modul shaper je zavedeny v jadre):
cc -Wall -O2 -I/usr/src/linux/include -c -o rshaper.o rshaper.c
In file included from /usr/src/linux/include/linux/module.h:10,
from rshaper.c:45:
/usr/src/linux/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /usr/src/linux/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:12,
from rshaper.c:45:
/usr/src/linux/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:56: requested alignment is not a constant
In file included from rshaper.c:49:
/usr/src/linux/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/interrupt.h:45,
from rshaper.c:52:
/usr/src/linux/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/src/linux/include/linux/interrupt.h:45,
from rshaper.c:52:
/usr/src/linux/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from rshaper.c:52:
/usr/src/linux/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/linux/interrupt.h:128: requested alignment is not a constant
In file included from rshaper.c:54:
/usr/src/linux/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/linux/netdevice.h:165: requested alignment is not a constant
In file included from rshaper.c:54:
/usr/src/linux/include/linux/netdevice.h:497: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/linux/netdevice.h:497: requested alignment is not a constant
In file included from rshaper.c:62:
sysdep.h:46:6: #error "Netfilter support is not enabled in kernel configuration"
rshaper.c:375: variable `rshaper_rx_hook_ops' has initializer but incomplete type
rshaper.c:376: unknown field `hook' specified in initializer
rshaper.c:376: warning: excess elements in struct initializer
rshaper.c:376: warning: (near initialization for `rshaper_rx_hook_ops')
rshaper.c:377: unknown field `pf' specified in initializer
rshaper.c:377: warning: excess elements in struct initializer
rshaper.c:377: warning: (near initialization for `rshaper_rx_hook_ops')
rshaper.c:378: unknown field `hooknum' specified in initializer
rshaper.c:378: warning: excess elements in struct initializer
rshaper.c:378: warning: (near initialization for `rshaper_rx_hook_ops')
rshaper.c:381: variable `rshaper_tx_hook_ops' has initializer but incomplete type
rshaper.c:382: unknown field `hook' specified in initializer
rshaper.c:382: warning: excess elements in struct initializer
rshaper.c:382: warning: (near initialization for `rshaper_tx_hook_ops')
rshaper.c:383: unknown field `pf' specified in initializer
rshaper.c:383: warning: excess elements in struct initializer
rshaper.c:383: warning: (near initialization for `rshaper_tx_hook_ops')
rshaper.c:384: unknown field `hooknum' specified in initializer
rshaper.c:384: warning: excess elements in struct initializer
rshaper.c:384: warning: (near initialization for `rshaper_tx_hook_ops')
rshaper.c: In function `cleanup_module':
rshaper.c:504: warning: implicit declaration of function `nf_unregister_hook'
rshaper.c: In function `init_module':
rshaper.c:534: warning: implicit declaration of function `nf_register_hook'
/usr/src/linux/include/asm/io.h: At top level:
rshaper.c:375: storage size of `rshaper_rx_hook_ops' isn't known
rshaper.c:381: storage size of `rshaper_tx_hook_ops' isn't known
make: *** [rshaper.o] Error 1
Poradite mi kde je chyba?
L.
Další informace o konferenci Linux