The Linux Channel

VIDEOS :: Linux Kernel sk_buff data-structure - Episode-11 to Episode-18

Written by: Kiran Kankipati
Published: 26-Mar-2017


Watch Linux Kernel sk_buff data-structure - Episode-1 to Episode-10 Videos HERE.

201 Demo :: Fragmented skbuff - Linux Kernel skbuff data-structure - part18

Youtube is banned in your country/office? Download/watch this video - 201 Demo :: Fragmented skbuff - Linux Kernel skbuff data-structure - part18

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:

static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc)
{

...

//thelinuxchannel - start
	if(skb_shinfo(skb)->nr_frags) {  printk("skb - is fragmented !\n"); }
//thelinuxchannel - end

...

}

For more details refer Linux Source:
http://lxr.free-electrons.com/source/include/linux/netfilter.h#L276
http://lxr.free-electrons.com/source/net/netfilter/core.c#L339
http://lxr.free-electrons.com/source/net/core/dev.c#L4053

181 skbuff kfree_skb API and skb packet drop API return code - Linux Kernel skbuff data-structure - part17

Youtube is banned in your country/office? Download/watch this video - 181 skbuff kfree_skb API and skb packet drop API return code - Linux Kernel skbuff data-structure - part17

176 skbuff skb->next, skb->prev linked-list experiments - Linux Kernel skbuff data-structure - part16

Youtube is banned in your country/office? Download/watch this video - 176 skbuff skb->next, skb->prev linked-list experiments - Linux Kernel skbuff data-structure - part16

Using skbuff APIs - Linux Kernel skbuff data-structure - part15

skb_clone(), skb_copy() - Linux Kernel skbuff data-structure - part14

Linux Kernel skbuff data-structure - part13 - Parsing skb ip-packet

Linux Kernel skbuff data-structure - part12 - skb_headroom() skb_tailroom()

Linux Kernel skbuff data-structure - part11 - skb_put()


Thank you !




Back to Top