-   Linux - Networking (
-   -   Default gateway mac address (

janith98 11-25-2020 09:39 PM

Default gateway mac address
I coded a kernel module which can create custom sk_buff and send them using dev_queue_xmit().now,I am using hard coded mac address(mac of default gateway) for destination mac in ethernet layer.
How to get default gateway mac address in the kernel?

pan64 11-27-2020 05:43 AM

duplicate of

All times are GMT -5. The time now is 04:36 AM.