I create a raw socket to receive and forward on my machine which has two interfaces(eth0, eth1) bridged together.
socket(AF_PACKET, SOCK_RAW, 0xabcd);
My protocol will send some broadcast packets and I would like forward it on my own.
How to disable forwarding my specific packets?
After weeks of working, I modified my nic driver and forward specific packet to user land via netlink.
Specific packets were dropped after be forwarded, so bridge will not forward these packets for me.