Linux Kernel Module to Drop Packets captured via netfilter hooks
Here is my sample Kernel Module to drop packets (i.e sk_buff instance) captured via netfilter hooks. When you want to drop packets in your custom netfilter hooks make sure you…
a Linux and Tech Youtube Channel for advance Linux users, systems and network software programmers and tech enthusiasts
Here is my sample Kernel Module to drop packets (i.e sk_buff instance) captured via netfilter hooks. When you want to drop packets in your custom netfilter hooks make sure you…
Here is my sample UDP socket code written in C. Unlike other versions you get commonly on-line this version is focused towards systems and network software developers and as a…
There can be many ways one can architect VPN Networks. The end objective is to tunnel private IP (typically LAN subnets) within public IP Networks (such as Internet). You can…
Refer:Wiki:Linux namespaces Linux containers Docker Images:Linux Containers Architecture Virtualization vs Containers Docker Architecture Linux Kernel Source:struct net_device nd_net – Network namespace this network device is inside possible_net_t write_pnet(),…
Refer:Linux Kernel Source:first_net_device() netif_running() Here is the copy paste of netif_running() API implementation (include/linux/netdevice.h) from the Kernel-source version 6.6 for quick reference: Download this episode my entire kernel module…
Refer:Linux Kernel Source:first_net_device() next_net_device() Download this episode my entire kernel module sample code, make file, clean script HERE.And here is the same source code for a quick reference. Its…
Refer:Linux Kernel:dev_get_by_index() prototype dev_get_by_index() implementation Here is the copy paste of dev_get_by_index() API implementation (net/core/dev.c) from the Kernel-source version 6.6 for quick reference: Download this episode my entire kernel…
Refer:Linux Kernel:dev_get_by_name() prototype dev_get_by_name() implementation Here is the copy paste of dev_get_by_name() API implementation (net/core/dev.c) from the Kernel-source version 6.6 for quick reference: Download this episode my entire kernel…
Refer:Linux Kernel struct net_device Here is the copy paste of struct net_device (include/linux/netdevice.h) from the Kernel-source version 6.6 for quick reference:
https://youtu.be/zOfM9Hfnwf0 https://youtu.be/G4BseR1U29o