IPFW divert on layer2 (bridged)

Peace,

I'm working on adding support for layer2 diverts in IPFW(8) for FreeBSD 9.0 - I'm going through some patches submitted in 2006 that adds L2 diverts to IPFW(8), but it was coded for 6.x I believe (by Julian Elischer). And it works on the old bridge.c which was retired as of RELEASE-7.0 and was replaced with if_config.c

Max Laier from the mailing list suggested adding an L2-hook PFIL(9) inside ip_fw_pfil.c

I've also came across the patch for ip_fw2.c (22 Sep 2003 by Luigi Rizzo) for handling fwd in layer2 using tags approach and changes were made to case O_FORWARD_IP opcode. Luigi also mentioned this could be adapted to allow layer2 diverts as well. I'm willing to code the patch and release it for FreeBSD 9.0 or later.

There is also a couple of PRs I came across:
PR kern/156770
PR kern/156279
PR kern/86957
PR kern/119744
PR kern/86957
Any suggestions or directions would be much appreciated.
If someone is interested on the topic, or has info on similar patches that apply to 7.x+ I would be grateful for sharing.

Thank you,
Draco
 
Hi Draco,

Any luck so far? I've been trying to manually patch 9.1 using those older patches but break the build every time...

Thanks,

Sabri
 
Back
Top