LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Default gateway mac address (https://www.linuxquestions.org/questions/linux-networking-3/default-gateway-mac-address-4175685816/)

janith98 11-25-2020 08: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 04:43 AM

duplicate of https://www.linuxquestions.org/quest...ac-4175685815/


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