I have some machines running on the same network. One node is the control node which distributes traffic coming to it to the other nodes. The thing is that I want to have a custom protocol header between MAC header and IP(or whatever) payload incoming to the control node.Control node receives this any packet like this:------------------------------------------------| Layer 2 | IP(or whatever protocol) | Payload |------------------------------------------------This packet should be distributed like this to other nodes----------------------------------------------------------------| Layer 2 | Custom Header | IP(or whatever protocol) | Payload |----------------------------------------------------------------I want some directions to do such a thing, Is there any current solution which I can use and I have to hack kernel for it from the scratch. A similar approach is to use L2TP but that runs over IP layer so I don't want that.I also want this communication to be appeared as a separate interface in Linux like tun0 apart from physical eth0 interface.
directions about customized Layer 2 implementation in Linux
linux;networking;linux kernel;ethernet