All of lore.kernel.org
 help / color / mirror / Atom feed
* What does this code do
@ 2020-03-10 21:42 Andrej Ras
  2020-03-10 22:12 ` Michal Kubecek
  0 siblings, 1 reply; 6+ messages in thread
From: Andrej Ras @ 2020-03-10 21:42 UTC (permalink / raw)
  To: netdev

While browsing the Linux networking code I came across these two lines
in __ip_append_data() which I do not understand.

                /* Check if the remaining data fits into current packet. */
                copy = mtu - skb->len;
                if (copy < length)
                        copy = maxfraglen - skb->len;
                if (copy <= 0) {

Why not just use maxfraglen.

Perhaps someone can explain why this is needed.

Regards

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-11  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 21:42 What does this code do Andrej Ras
2020-03-10 22:12 ` Michal Kubecek
2020-03-11  4:11   ` Andrej Ras
2020-03-11  5:53     ` Michal Kubecek
2020-03-11  6:17       ` Andrej Ras
2020-03-11  7:21       ` Michal Kubecek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.