For the loopback driver provided in the previous article, we write a simple RAW socket program to send a packet directly to the virtual network driver. The code is provided below for reference. The above code is pretty much self explanatory. However, a short description is provided below The loopback driver load and application output […]
Creating a loopback virtual network driver in Linux
In the previous article (provided here), we looked a t a skeleton network Linux device driver module. In the current article, we will add some more substance to the skeleton device driver by providing a path back up the stack. That is, a packet sent to the virtual network device driver will be sent up […]
Understanding GENERIC_NETLINK interface
The number of netlink families are 32. The netlink families which are presently available as of Kernel 6.13.2 are provided in the article here (Netlink Protocol Families). The number of protocol families were seen to be limited and needed a mechanism that would allow different independently defined Netlink families to be defined. To address this […]