I have used netfilter hook functions to filter/sniff on outgoing IP packets. I'm looking to filter outgoing (from host) packets between IP layer and Link layer to look into Layer 2 information like - interface, MAC address. The NF_INET_POSTROUTING does not give mac address information as it is called in ip_output() before address resolution i guess.
I looked up ebtables hook functions, they seem to be related to Bridge INPUT/FORWARD/OUTPUT. If i understand, the outgoing packets from local tcp/ip do not go through bridge forwarding hooks. Is there way i can hook into packets between Linux IP and link layer to filter (DROP or modify) ...?