Lines Matching refs:from
550 static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) in ip_copy_metadata() argument
552 to->pkt_type = from->pkt_type; in ip_copy_metadata()
553 to->priority = from->priority; in ip_copy_metadata()
554 to->protocol = from->protocol; in ip_copy_metadata()
555 to->skb_iif = from->skb_iif; in ip_copy_metadata()
557 skb_dst_copy(to, from); in ip_copy_metadata()
558 to->dev = from->dev; in ip_copy_metadata()
559 to->mark = from->mark; in ip_copy_metadata()
561 skb_copy_hash(to, from); in ip_copy_metadata()
564 to->tc_index = from->tc_index; in ip_copy_metadata()
566 nf_copy(to, from); in ip_copy_metadata()
567 skb_ext_copy(to, from); in ip_copy_metadata()
569 to->ipvs_property = from->ipvs_property; in ip_copy_metadata()
571 skb_copy_secmark(to, from); in ip_copy_metadata()
660 static void ip_frag_ipcb(struct sk_buff *from, struct sk_buff *to, in ip_frag_ipcb() argument
664 IPCB(to)->flags = IPCB(from)->flags; in ip_frag_ipcb()
673 ip_options_fragment(from); in ip_frag_ipcb()
931 ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) in ip_generic_getfrag() argument
933 struct msghdr *msg = from; in ip_generic_getfrag()
964 int getfrag(void *from, char *to, int offset, in __ip_append_data() argument
966 void *from, int length, int transhdrlen, in __ip_append_data()
1143 if (copy > 0 && getfrag(from, data + transhdrlen, offset, copy, fraggap, skb) < 0) { in __ip_append_data()
1185 if (getfrag(from, skb_put(skb, copy), in __ip_append_data()
1210 if (getfrag(from, in __ip_append_data()
1222 err = skb_zerocopy_iter_dgram(skb, from, copy); in __ip_append_data()
1306 int getfrag(void *from, char *to, int offset, int len, in ip_append_data() argument
1308 void *from, int length, int transhdrlen, in ip_append_data()
1328 from, length, transhdrlen, flags); in ip_append_data()
1626 int getfrag(void *from, char *to, int offset, in ip_make_skb() argument
1628 void *from, int length, int transhdrlen, in ip_make_skb()
1649 from, length, transhdrlen, flags); in ip_make_skb()