Linux Kernel Network Programming – struct sk_buff data-structure – sk_buff skb->next skb->prev Linked-list Experiments
https://youtu.be/1zE2GJw7AbA
a Linux and Tech Youtube Channel for advance Linux users, systems and network software programmers and tech enthusiasts
https://youtu.be/1zE2GJw7AbA
Refer:Linux Kernel Map picture/banner ↗Socket Buffer Functions ↗
Refer:skb_clone() – duplicate an sk_buff ↗skb_copy() – create private copy of an sk_buff ↗ Here is the copy paste of skb_clone() and skb_copy() APIs (/net/core/skbuff.c) from the Kernel-source version 6.5.9…
https://youtu.be/0elOirGA_5g
Refer:skb_headroom() – bytes at buffer head ↗skb_tailroom() – bytes at buffer end ↗ Here is the copy paste of skb_headroom() and skb_tailroom() APIs (/include/linux/skbuff.h) from the Kernel-source version 6.5.8 for…
Refer:skb_put() – add data to a buffer ↗ Here is the copy paste of skb_put() API (/net/core/skbuff.c) from the Kernel-source version 6.5.8 for quick reference:
Refer:skb_pull() – remove data from the start of a buffer ↗ Here is the copy paste of skb_pull() API (/net/core/skbuff.c) from the Kernel-source version 6.5.8 for quick reference: Which points…
Refer:skb_trim() – remove end from a buffer ↗ And here is the copy paste of skb_trim() API (/net/core/skbuff.c) from the Kernel-source version 6.5.8 for quick reference: Which points to __skb_trim()…
Refer:skb_push() – add data to the start of a buffer ↗ And here is the copy paste of skb_push() API (/net/core/skbuff.c) from the Kernel-source version 6.5.8 for quick reference: