Article 5AW7A Default gateway mac address

Default gateway mac address

by
janith98
from LinuxQuestions.org on (#5AW7A)
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=mmZc74ri5xY:14fY5nmV_-0:F7zBnMy latest?i=mmZc74ri5xY:14fY5nmV_-0:V_sGLiP latest?d=qj6IDK7rITs latest?i=mmZc74ri5xY:14fY5nmV_-0:gIN9vFwmmZc74ri5xY
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