Linux Kernel Network Programming – struct sk_buff data-structure – Kernel Architecture
https://youtu.be/sWsKh1FeA0k
a Linux and Tech Youtube Channel for advance Linux users, systems and network software programmers and tech enthusiasts
https://youtu.be/sWsKh1FeA0k
Refer:struct sk_buff data-structure ↗struct sk_buff APIs ↗Linux Kernel Networking subsystem ↗ And here is the copy paste of struct sk_buff data-structure (/include/linux/skbuff.h) from the Kernel-source version 4.13 for quick reference:
struct sk_buff is the Linux Kernel Networking sub-system data-structure in which the contents of individual network packets and its corresponding metadata (port details, socket details, protocol, etc) is stored. It…
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…
For more details refer Linux Kernel Source:struct ethhdr ↗eth_hdr() API ↗skb_mac_header() API ↗ QUICK LINKS for students and advance developers:Linux Kernel Network stack and architecture ↗ Videos related to protocol…
Refer: Kernel Doc printk-formats.txt ↗ Here is the screenshot of my Sample Example Code discussed in the video above:
Refer:struct tcphdr data-structure ↗sk_buff to tcphdr APIs ↗Definitions for the TCP module ↗ And here is the copy paste of struct tcp data-structure (/include/uapi/linux/tcp.h) from the Kernel-source version 4.13 for…
Here is my sample source-code discussed in the video: Its makefile:
Refer: Kernel Doc printk-formats.txt ↗ Here is the screenshot of my Sample Example Code discussed in the video above:
Refer:struct iphdr data-structure ↗sk_buff to iphdr APIs ↗Definitions for the IP module ↗ And here is the copy paste of struct iphdr data-structure (/include/uapi/linux/ip.h) from the Kernel-source version 4.13 for…