public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RE: TCP/IP Stack packet regrouping
@ 2001-07-16 15:50 Anthony Massa
  0 siblings, 0 replies; only message in thread
From: Anthony Massa @ 2001-07-16 15:50 UTC (permalink / raw)
  To: eCos (E-mail)

These are fields in the IP header for handling fragmentation.  I believe the
IP_DF field is the Don't Fragment flag.  In that case, if the MTU below the
IP layer is not big enough to hold all of the data, it will not be sent on
the link.

>I just looked, and it bases it on if_mtu if it's a broadcast packet.  I
>don't understand the code below though because I don't know what ip_off
>or IP_DF are.  I might look them up at a later time though.  I'm
>primarily doing documentation/design for networking right now so I don't
>have time for this at the moment.

	if (ip->ip_off & IP_DF) {	// Line 847 of ip_output.c
		error = EMSGSIZE;
		ipstat.ips_cantfrag++;
		goto bad;
	}
	len = (ifp->if_mtu - hlen) &~ 7;
	if (len < 8) {
		error = EMSGSIZE;
		goto bad;
	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-16 15:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-16 15:50 [ECOS] RE: TCP/IP Stack packet regrouping Anthony Massa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).