skbuff.c (2fe5de9ce7d57498abc14b375cad2fcf8c3ee6cc) skbuff.c (60ff746739bf805a912484643c720b6124826140)
1/*
2 * Routines having to do with the 'struct sk_buff' memory handlers.
3 *
4 * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
5 * Florian La Roche <rzsfl@rz.uni-sb.de>
6 *
7 * Fixes:
8 * Alan Cox : Fixed the worst of the load

--- 680 unchanged lines hidden (view full) ---

689 new->ooo_okay = old->ooo_okay;
690 new->no_fcs = old->no_fcs;
691 new->encapsulation = old->encapsulation;
692#ifdef CONFIG_XFRM
693 new->sp = secpath_get(old->sp);
694#endif
695 memcpy(new->cb, old->cb, sizeof(old->cb));
696 new->csum = old->csum;
1/*
2 * Routines having to do with the 'struct sk_buff' memory handlers.
3 *
4 * Authors: Alan Cox <alan@lxorguk.ukuu.org.uk>
5 * Florian La Roche <rzsfl@rz.uni-sb.de>
6 *
7 * Fixes:
8 * Alan Cox : Fixed the worst of the load

--- 680 unchanged lines hidden (view full) ---

689 new->ooo_okay = old->ooo_okay;
690 new->no_fcs = old->no_fcs;
691 new->encapsulation = old->encapsulation;
692#ifdef CONFIG_XFRM
693 new->sp = secpath_get(old->sp);
694#endif
695 memcpy(new->cb, old->cb, sizeof(old->cb));
696 new->csum = old->csum;
697 new->local_df = old->local_df;
697 new->ignore_df = old->ignore_df;
698 new->pkt_type = old->pkt_type;
699 new->ip_summed = old->ip_summed;
700 skb_copy_queue_mapping(new, old);
701 new->priority = old->priority;
702#if IS_ENABLED(CONFIG_IP_VS)
703 new->ipvs_property = old->ipvs_property;
704#endif
705 new->pfmemalloc = old->pfmemalloc;

--- 3202 unchanged lines hidden (view full) ---

3908 */
3909void skb_scrub_packet(struct sk_buff *skb, bool xnet)
3910{
3911 if (xnet)
3912 skb_orphan(skb);
3913 skb->tstamp.tv64 = 0;
3914 skb->pkt_type = PACKET_HOST;
3915 skb->skb_iif = 0;
698 new->pkt_type = old->pkt_type;
699 new->ip_summed = old->ip_summed;
700 skb_copy_queue_mapping(new, old);
701 new->priority = old->priority;
702#if IS_ENABLED(CONFIG_IP_VS)
703 new->ipvs_property = old->ipvs_property;
704#endif
705 new->pfmemalloc = old->pfmemalloc;

--- 3202 unchanged lines hidden (view full) ---

3908 */
3909void skb_scrub_packet(struct sk_buff *skb, bool xnet)
3910{
3911 if (xnet)
3912 skb_orphan(skb);
3913 skb->tstamp.tv64 = 0;
3914 skb->pkt_type = PACKET_HOST;
3915 skb->skb_iif = 0;
3916 skb->local_df = 0;
3916 skb->ignore_df = 0;
3917 skb_dst_drop(skb);
3918 skb->mark = 0;
3919 secpath_reset(skb);
3920 nf_reset(skb);
3921 nf_reset_trace(skb);
3922}
3923EXPORT_SYMBOL_GPL(skb_scrub_packet);
3924

--- 24 unchanged lines hidden ---
3917 skb_dst_drop(skb);
3918 skb->mark = 0;
3919 secpath_reset(skb);
3920 nf_reset(skb);
3921 nf_reset_trace(skb);
3922}
3923EXPORT_SYMBOL_GPL(skb_scrub_packet);
3924

--- 24 unchanged lines hidden ---