Article 5AW7B Default gateway mac

Default gateway mac

by
janith98
from LinuxQuestions.org on (#5AW7B)
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?latest?d=yIl2AUoC8zA latest?i=naggSEvW3BQ:eWxlUzeiK_4:F7zBnMy latest?i=naggSEvW3BQ:eWxlUzeiK_4:V_sGLiP latest?d=qj6IDK7rITs latest?i=naggSEvW3BQ:eWxlUzeiK_4:gIN9vFwnaggSEvW3BQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments