IPv4 Stack Transport Layer L4 TCP/UDP Registration – Protocol APIs – Part 1
Refer:Linux Kernel Source: net/ipv4/af_inet.c ↗
a Linux and Tech Youtube Channel for advance Linux users, systems and network software programmers and tech enthusiasts
Refer:Linux Kernel Source: net/ipv4/af_inet.c ↗
You can check fragmented packets as suggested in the video by tapping RX path in net/core/dev.c – __netif_receive_skb_core() API as shown below from the Kernel-source version 6.5.9:
https://youtu.be/z4Any08ImcQ
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…