luigirizzo / dummynet

Automatically exported from code.google.com/p/dummynet
147 stars 53 forks source link

Is dummynet for linux still maintained? #23

Open sukovec opened 6 years ago

sukovec commented 6 years ago

Hello.

I would like to ask, if dummynet/ipfw3 for linux is still maintained? Today, I've tried to compile it on two different systems: Archlinux & OpenWRT.

On OpenWRT (the kernel it's building against is 4.4.128), compilation ends with following:

make[3]: Entering directory `/home/build/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/linux-mvebu/ipfw3/ipfw'
    CC ipfw2.c
ipfw2.c:27:24: fatal error: sys/sysctl.h: No such file or directory
 #include <sys/sysctl.h>

I've tried (pretty "cargocultic" way, I know) to replace these includes with linux/sysctl.h, but it ended with pretty long output meaning something about incompatible IPv6 structs.

So there are two possibilites: 1) I'm doing something horribly wrong. 2) With 4 years since last change, the dummynet is incompatible with contemporary kernels ... and will be.

What is the correct answer and is there something I can do about it?

sgeto commented 6 years ago

Is dummynet for linux still maintained?

Obviously not. You need to provide buildlogs and infos about your target OS if you want anyone to help you with this.

Are you on OpenWrt Chaos Calmer 15.05? Also instead of including entire source files, you're better of adding the missing stuff to glue.h/c to prevent conflicts.