HOMECOURSESSTUDENTSDONATIONSVIDEOSEVENTSTUTORIALSLINKSNEWSCONTACT


VIDEOS 》 Linux Kernel struct udphdr data-structure

Refer:
Kernel Doc printk-formats.txt - http://elixir.free-electrons.com/linux/latest/ ...

Here is the screenshot of my Sample Example Code discussed in the video above:
Screenshot

Refer:
struct udphdr data-structure - http://elixir.free-electrons.com/linux/latest/ ...
sk_buff to udphdr APIs - http://elixir.free-electrons.com/linux/latest/ ...
Definitions for the UDP module - http://elixir.free-electrons.com/linux/latest/ ...

And here is the copy paste of struct udp data-structure (/include/uapi/linux/udp.h) from the Kernel-source version 4.13 for quick reference:

struct udphdr {
	__be16	source;
	__be16	dest;
	__be16	len;
	__sum16	check;
};



Suggested Topics:


Video Episodes :: Linux Kernel programming

Linux Kernel - Containers and Namespaces ↗
Saturday' 13-Mar-2021

Linux Operating System - User-space Processes ↗
Saturday' 14-May-2022

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.

Linux Kernel Compilation ↗
Wednesday' 18-May-2022

Linux ioctl() API interface ↗
Saturday' 13-Mar-2021
Watch detailed videos and read topics on Linux Kernel Programming and Linux ioctl() API interface

Linux Kernel /proc Interface ↗
Wednesday' 18-May-2022
/proc 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. 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. I also conduct sessions/classes on Systems and Network software programming and architecture.

Linux Kernel FileSystems Subsystem ↗
Saturday' 13-Mar-2021

Linux Kernel Programming ↗
Saturday' 13-Mar-2021

Linux Kernel Architecture ↗
Wednesday' 18-May-2022

Linux Kernel Programming - Device Drivers ↗
Saturday' 13-Mar-2021
Watch detailed videos and read topics on Linux Kernel Programming - Device Drivers

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 - [474//0] 263 Linux Kernel struct socket and struct sock - Network API Flow and Architecture sock_sendmsg(), sock_recvmsg() - Ep2 ↗

Linux user-space Atomic Operations via GCC Atomic builtins ↗
Saturday' 13-Mar-2021

Programming Language Performance and Overheads ↗
Saturday' 01-Jan-2022
A detailed Youtube video series of various programming language performance and overheads - a big picture

B.E(B.Tech, B.S) and M.E(M.Tech, M.S) Collage Final Year Projects ↗
Saturday' 13-Mar-2021

Difference between Intel Xeon Server vs Desktop Core i7 vs Intel Mobile Atom vs ARM Processors ↗
Saturday' 13-Mar-2021

Online Course - Linux TUN/TAP virtual network interfaces ↗
Saturday' 13-Mar-2021

Multi-Client TCP Server with pthreads Mutex Synchronized - Code-walk of viewer code - Sekhar Pariga ↗
Saturday' 01-Jan-2022
Here is a code-walk of a git-hub source submitted by a viewer Sekhar Pariga, which is a Multi-client TCP Server with pthreads Mutex synchronized. Basically it is a Directory Listing Server, that serves ls, cd, pwd of directory functions to connecting TCP clients which are remotely (locally) executed by the server. Server is implemented using multi-thread pthread library, to serve multiple clients simultaneously. Server keeps the each accepted client session details in the queue data structure. Client session queue contains each clients socket-fd and present working directory as a queue node.

Linux ioctl() API interface ↗
Saturday' 13-Mar-2021
Watch detailed videos and read topics on Linux Kernel Programming and Linux ioctl() API interface

What is a Linux Kernel Module - a Big Picture ↗
Saturday' 01-Jan-2022
Learning Linux Kernel Programming is always fascinating and yet challenging. So generally you may tend to learn Kernel Module programming, since such a module can be dynamically plugged into running Linux Kernel. But this will lead to confusion, and many assume kernel source is mostly a collection of these modules. Which in reality is not. Not just that, when we say Kernel Module, its a vaguely defined term. The term Module (as we know) is nothing but a collection of APIs, bunch of variables and associated data-structures. Which may or may not be a plugable kernel module. If you ask me, I am a fan of wiring Linux Kernel Modules, which may not be necessarily a pluggable kernel module. It all boils down to the address space at which these modules function inside a monolithic Linux Kernel. Which is nothing but Linux Kernel's address space. Hence here is my detailed multi-episode Youtube video series on Linux Kernel modules, a big picture and the significance of the

Linux Kernel Programming - Device Drivers ↗
Saturday' 13-Mar-2021
Watch detailed videos and read topics on Linux Kernel Programming - Device Drivers

Weekly News Digest - Week 4 - January 2018 ↗
Saturday' 13-Mar-2021
> MIPS Returns to Silicon Valley, Eyes Burgeoning AI Market > NLDWRTG the ULTIMATE WRT54G Expansion Board > How to use the nmcli command to gather network device information on Linux > Logic Supply Introduces ML350 Customizable Fanless Industrial Computer Based on Intel Apollo Lake Processor > Ubuntu Linux 18.04 'Bionic Beaver' LTS will default to Xorg


Trending Video:
Watch on Youtube - [792//0] x249 Porting my old /proc code to new Linux Kernel 5.15.0-27-generic - Ubuntu 22.04 LTS - year 2022 ↗

Weekly News Digest - Week 02 - July 2020 ↗
Saturday' 13-Mar-2021
The Linux Channel :: Weekly News Digest - Week 02 - July 2020
> Google is teaming up with Ubuntu to bring Flutter apps to Linux
> Linux kernel developers: This new BLM coding style avoids words like blacklist
> Zstd'ing The Kernel Might See Mainline With Linux 5.9 For Faster Boot Times
> Linux 5.9 To Bring Arm Memory Tagging Extension Support
> Linux Kernel Raising Compiler Build Requirement To GCC 4.9
> Linux Developers May Discuss Allowing Rust Code Within The Kernel
> Premio Unveils Intel 9th Gen Industrial Motherboard For Advanced Embedded And IoT Solutions



Recommended Video:
Watch on Youtube - [165//0] x250 TrueNAS Server | The capacity for the volume freenas-boot is currently at 96% | Alert ↗