Date: Mon, 4 Aug 2003 07:36:53 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 35474 for review Message-ID: <200308041436.h74EarVL021130@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=35474 Change 35474 by rwatson@rwatson_tislabs on 2003/08/04 07:36:15 Expand the annotation for ip_output(): in the IP forwarding case, the options will already be in the IP header of (m), so the opt pointer must be NULL (we can't insert options into a packet that already holds options). Affected files ... .. //depot/projects/trustedbsd/mac/sys/netinet/ip_output.c#29 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/netinet/ip_output.c#29 (text+ko) ==== @@ -118,10 +118,12 @@ extern struct protosw inetsw[]; /* - * IP output. The packet in mbuf chain m contains a skeletal IP - * header (with len, off, ttl, proto, tos, src, dst). + * IP output. The packet in mbuf chain m contains a skeletal IP header (with + * len, off, ttl, proto, tos, src, dst). * The mbuf chain containing the packet will be freed. - * The mbuf opt, if present, will not be freed. + * The mbuf opt, if present, will not be freed. In the IP forwarding + * case, the packet will arrive with options already inserted, so must + * have a NULL opt pointer. */ int ip_output(m0, opt, ro, flags, imo, inp)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308041436.h74EarVL021130>