diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-11-03 18:03:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-11-03 18:03:05 +0000 |
commit | 2ef58bb97d0ceff4cc4b6e0623e4da3b185a0f1b (patch) | |
tree | f4cd06759b20e3c6024cad382c786e0f1b184c74 | |
parent | 2dda0c225b0c9eeb9945a23d8a279bfb7f093bc7 (diff) | |
download | FreeBSD-src-2ef58bb97d0ceff4cc4b6e0623e4da3b185a0f1b.zip FreeBSD-src-2ef58bb97d0ceff4cc4b6e0623e4da3b185a0f1b.tar.gz |
Note that when ip_output() is called from ip_forward(), it will already
have its options inserted, so the opt argument to ip_output() must be
NULL.
-rw-r--r-- | sys/netinet/ip_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index dc71879..aedab7f 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -126,6 +126,8 @@ extern struct protosw inetsw[]; * 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. + * In the IP forwarding case, the packet will arrive with options already + * inserted, so must have a NULL opt pointer. */ int ip_output(struct mbuf *m0, struct mbuf *opt, struct route *ro, |