The Linux Channel

Videos :: Linux Kernel struct udphdr data-structure

Written by: Kiran Kankipati - Published: 05-Jul-2016


Linux Kernel struct udphdr data-structure - part2 - Sample Example Code

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

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

Linux Kernel struct udphdr data-structure - part1 - code walk, Example

Refer:
struct udphdr data-structure - http://elixir.free-electrons.com/linux/latest/source/include/uapi/linux/udp.h#L22
sk_buff to udphdr APIs - http://elixir.free-electrons.com/linux/latest/source/include/linux/udp.h
Definitions for the UDP module - http://elixir.free-electrons.com/linux/latest/source/include/net/udp.h

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:

Linux Kernel programming
Linux Kernel FileSystems Subsystem
16-Dec-2017
Linux Kernel TCP Congestion Control Algorithms
20-Nov-2017
Linux Kernel struct socket and struct sock data-structure
31-Oct-2017
Linux Kernel /proc Interface
22-Feb-2017
Linux ioctl() API interface
11-Oct-2017
Linux Kernel Network Programming
05-Nov-2017
Linux Kernel Programming
05-Jul-2016
Linux Kernel sk_buff data-structure - Episode-11 to Episode-18
26-Mar-2017
Linux Kernel sk_buff data-structure - Episode-1 to Episode-10
05-Jul-2016
Linux Kernel net_device data-structure
05-Jul-2016
Linux Kernel dst_entry data-structure
04-May-2017
Linux Kernel struct ethhdr data-structure
02-Nov-2016
Linux Kernel struct iphdr data-structure
05-Jul-2016
Linux Kernel struct tcphdr data-structure
05-Jul-2016
Linux Kernel struct udphdr data-structure
05-Jul-2016
Linux Kernel Networking Sub-system
05-Jul-2016
Linux Kernel Compilation
05-Jul-2016
Linux Kernel Architecture - Generic
13-May-2017

 

Recommended Topics:

Join a class (course):


JOBS :: Linux Device Drivers - Senior Embedded Developers:


Video series :: Linux Kernel TCP Congestion Control Algorithms:


TUTORIALS :: Linux Networking Stack :: RFS: Receive Flow Steering:


Network Packet Processing Hardware Offload:



The Linux Channel - v6.26 :: Updated: 11-Dec-2017 :: © 2017 :: Author: Kiran Kankipati
Your IP: 54.226.113.250 :: Browser: CCBot/2.0 (http://commoncrawl.org/faq/)