HOMEVIDEOSCOURSESSTUDENTSSPONSORSDONATIONSEVENTSTUTORIALSLINKSNEWSCONTACT


Videos :: The Linux Channel

Watch on Youtube - [272//0] x26e Porting Sample libpcap C code to Raw Sockets | User-space Network Stack Framework - Part 1 ↗
Join on-line Classes


☆ Video Episodes :: Linux Kernel programming ↗


Video Episodes :: Linux Kernel Network Programming

Linux Kernel Network Programming - Transport Layer L4 TCP/UDP Registration - Protocol APIs ↗
Friday' 27-Oct-2023

Linux Kernel struct tcphdr data-structure ↗
Friday' 20-Oct-2023

Linux Kernel Network Programming - struct net - struct netns_ipv4 - /proc/sys/net/ipv4 ↗
Saturday' 13-Mar-2021

Linux Kernel TCP Congestion Control Algorithms ↗
Thursday' 19-Oct-2023

Linux Kernel Networking Sub-system ↗
Thursday' 19-Oct-2023

Linux Kernel Dummy Network Interface /drivers/net/dummy.c Network Namespace Research ↗
Friday' 20-Oct-2023
When you work on Network Namespaces (which is a feature Linux Kernel provides), you usually create bunch of virtual ethernet ports called as veth interfaces. The veth interface itself is a separate LK virtual network driver which offers this specific functionality. But sometimes besides veth you can also configure an optional interface called dummy interface. The dummy interface, just like veth (and other such virtual interfaces) is provided by LK via the driver drivers/net/dummy.c. The interesting aspect of dummy interface is that it serves as an alter ego of the loop-back localhost (as mentioned in the tldp.org article link below). Which means you can set any valid IP and this can serve as alternate local host ip other than 127.0.0.1. So to learn more, kindly watch my complete video series on this fascinating network interface called Dummy Interface.

Linux Kernel sk_buff data-structure - Episode-11 to Episode-18 ↗
Thursday' 26-Oct-2023

Linux Kernel dst_entry data-structure ↗
Saturday' 13-Mar-2021

Linux Kernel net_device data-structure ↗
Saturday' 04-Nov-2023
struct net_device, is the main Linux Kernel network interface or network port data-structure. Each network interface entry whatever you find in user-space commands like ifconfig, ip link, ip addr, is actually a struct net_device data-structure Linux Kernel driver instance for that corresponding port. In fact every packet buffer instance managed by the Linux Kernel via struct sk_buff contains a reference pointer pointing to its corresponding TX/ RX interface struct net_device instance. Hence here is my multi-part video series and research on the struct net_device data-structure.

Linux Kernel struct udphdr data-structure ↗
Thursday' 19-Oct-2023

Linux Kernel struct socket and struct sock data-structure ↗
Saturday' 13-Mar-2021

Linux Kernel sk_buff data-structure - Episode-1 to Episode-10 ↗
Monday' 23-Oct-2023

Linux Kernel struct ethhdr data-structure ↗
Friday' 20-Oct-2023

Linux Kernel Network Programming ↗
Thursday' 19-Oct-2023

Linux Kernel struct iphdr data-structure ↗
Friday' 20-Oct-2023


☆ Video Episodes :: Linux (user-space), Systems Architecture and Networking ↗

Watch on Youtube - [452//0] 302 - Bufferbloat in a Networking Device or an Appliance ↗


☆ VLOGs ↗


☆ Video Episodes :: Raspberry Pi ↗


☆ Video Episodes :: OpenWRT Embedded Linux OS for Network Routers ↗


☆ Video Episodes :: FreeBSD ↗


☆ Video Episodes :: For Students ↗


☆ Video Episodes :: Installation and Setup ↗

Join The Linux Channel :: Facebook Group ↗

Visit The Linux Channel :: on Youtube ↗


💗 Help shape the future: Sponsor/Donate


Recommended Topics:
Featured Video:
Watch on Youtube - [439//0] x215 Raspberry Pi GPIO Pins | Raw Kernel Access via sysfs - Addon | GPIO Linux Kernel Drivers | P1 ↗

libpcap Library | Linux User-space Network Stack Development ↗
Sunday' 06-Aug-2023
libpcap is a very popular user-space networking library, with which you can capture and or generate packets. libpcap is the underlying framework for many popular packet capture tools such as tcpdump, Wireshark and so on. In fact libpcap is a part of tcpdump project. But besides just using it as a packet capture tool, you can use libpcap in various applications, such as user-space based networking stack development, etc. In some cases libpcap is yet another alternative to raw-sockets and tun/tap interfaces.

The Linux Channel :: Sponsors ↗
Monday' 30-May-2022
Here is a list of all The Linux Channel sponsors/donors (individual/companies).

Inline Programming | Assembly | Scripts | php, python, shell, etc | Rust in Linux Kernel ↗
Friday' 12-May-2023
Inline programming is a technique where code statements are included directly in the text of a program, instead of being contained in separate files or modules. Inline programming can be useful for small or simple tasks, as it can eliminate the need for a separate script or function. One common example of inline programming is using JavaScripts, Php, etc in HTML documents to create dynamic content. Similarly in Linux Kernel we can find lot of instances where we can find inline programming such as inline assembly and now Rust within the Kernel source.

Linux Kernel /sysfs Interface ↗
Saturday' 14-May-2022
/sysfs is one of the most popular kernel to user-space interface which you can leverage to add an interface to your Kernel code such as Kernel modules, Kernel Device Drivers, etc. Although personally I prefer /proc interface than other alternatives such as /sysfs, ioctl() and so on for my personal Kernel modules/stack. So here is my detailed multi-episode Youtube video series on /sysfs Interface.

Rockchip ROC-RK3566-PC from Firefly | OpenWRT ↗
Thursday' 19-Oct-2023
Here is my multi-episode video series on evaluation of Rockchip ROC-RK3566-PC from Firefly with stock OpenWRT firmware.

What is purpose of Kernel Development - Example SMOAD Networks SDWAN Orchestrator Firewall Kernel Engine ↗
Monday' 18-Jul-2022
Often aspiring students may have this question, that what is the purpose of Linux Kernel Development. Since Linux Kernel is very mature and it has almost everything one would need. Usually, we need custom kernel development in the case of any new driver development for new upcoming hardware. And this happens on and on. But at times we may also come across few features/modules/components which are already provided by the Linux Kernel which are not adequate or atleast not the way we exactly intended to use. So, this is the real-world example, sometimes no matter what Linux Kernel provides as a part of stock Kernel/OS features, sometimes we have to write our own custom kernel stack or module(s) which can specifically cater our exact needs.

Linux Kernel Driver Device Trees ↗
Tuesday' 17-Jan-2023
The Linux kernel is the backbone of the Linux operating system. A device tree is a hierarchical tree structure that describes the various devices that are present in a system, including their properties and relationships to one another. The device tree is used by the Linux kernel to identify and initialize the different devices on a system, and to provide a consistent interface for interacting with them.

Linux Kernel vs User-space - Library APIs - Linux Kernel Programming ↗
Friday' 27-Oct-2023
One of the important aspects a beginner who is into Linux Kernel space systems software development has to understand is that unlike user-space C/C++ programming, where you can freely include any library APIs via respective #include files (which are dynamically linked during run-time via those /lib .so files), in the case of Kernel space programming, these library APIs are written within the Kernel source itself. These are the fundamental APIs which we commonly use, such as memcpy(), memcmp(), strlen(), strcpy(), strcpy() and so on. So here is my detailed Youtube video episode on the same with live demo, walk-through and examples.

Porting Sample libpcap C code to Raw Sockets | User-space Network Stack Framework ↗
Monday' 04-Sep-2023
Here is my multi-episode video series where I demonstrate how you can port the my libpcap sample code, discussed in the earlier episode to raw-socket. This code should further help you to design and architect your own user-space Network stack on top of this fundamental framework.

Roadmap - How to become Systems Software Developer ↗
Friday' 13-May-2022
When you are at the beginning of your career or a student, and aspire to become a software developer, one of the avenues to choose is to become a hard-core Systems Software Developer. However it is easier said than done, since there are many aspects to it as you explore further. As a part of systems developer, you can get into core kernel space developer, kernel device drivers developer, embedded developer and get into things like board bring-up, porting, etc, or can become a user-space systems programmer, and so on. So here is my detailed multi-episode Youtube video series on Roadmap - How to become Systems Software Developer.


Trending Video:
Watch on Youtube - [4711//0] 254 Linux ioctl() API interface - copy_from_user() and copy_to_user() - Episode 4 ↗

Linux Kernel Module to Drop Packets captured via netfilter hooks ↗
Saturday' 13-Mar-2021
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 never do a manual kfree_skb(skb) API call. Since it is anyway performed once the flow of the code moves out of your kernel module netfilter hook. All you need to do is to return NF_DROP to drop gracefully the desired packet. Here is my detailed video and a sample Linux Kernel module.



Recommended Video:
Watch on Youtube - [452//0] x211 Code with Kiran - Live Coding | Linux Kernel Programming | Kernel Libraries | Part 3 ↗