Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Kb263

Kb263

Emulab FAQ: Software Setup: FreeBSD kernel sources, support for ipfw and dummynet

Emulab FAQ: Software Setup: FreeBSD kernel sources, support for ipfw and dummynet

> I am looking to load a FreeBSD kernel with support for ipfw and dummynet
> for one of my experiments. The image FBSD410-STD does not let me create
> my own dummynet pipes: it gives me the following error:
> 
> bash-2.05b$ sudo ipfw add pipe 1 ip from any to any
> ipfw: getsockopt(IP_FW_ADD): Protocol not available
> 
> I presume this error is because of the dummynet options not enables in 
> the kernel. but I did not find the kernel source in this disk image to
> recompile the kernel myself with the necessary options. So is there any
> way I can use my own dummynet pipes on emulab hosts?

Source is in /share/freebsd/4.10/src or as /share/freebsd/4.10/src.tar.gz if you want to copy it over to a node.

You could also just copy /kernel.linkdelay over to /kernel as it supports IPFW. However, that kernel also includes a couple of other features, though the only one that might affect you would be that the clockrate is 1ms instead of 10ms.

Also see What FreeBSD kernels are available and what features do they include?