PERFORCE change 35474 for review
Robert Watson
rwatson at FreeBSD.org
Mon Aug 4 14:36:53 GMT 2003
http://perforce.freebsd.org/chv.cgi?CH=35474
Change 35474 by rwatson at 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)
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list