summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-04-23 16:57:43 +0000
committerandre <andre@FreeBSD.org>2004-04-23 16:57:43 +0000
commit5b2a80f16691e0313d4f7244e6cf4ac97c05527e (patch)
tree101ba2e2682f0366f3b14043ecc8577716cfe32c
parentfe93d4f02e078a138f0eb400939cba3716c6de9d (diff)
downloadFreeBSD-src-5b2a80f16691e0313d4f7244e6cf4ac97c05527e.zip
FreeBSD-src-5b2a80f16691e0313d4f7244e6cf4ac97c05527e.tar.gz
Add the comment of the previous commit to the source file directly.
Requested by: ru
-rw-r--r--sys/net/if_gre.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 89c4b63..2cdf92b 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -385,7 +385,11 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
ifp->if_opackets++;
ifp->if_obytes += m->m_pkthdr.len;
- /* send it off */
+ /*
+ * Send it off and with IP_FORWARD flag to prevent it from
+ * overwriting the ip_id again. ip_id is already set to the
+ * ip_id of the encapsulated packet.
+ */
error = ip_output(m, NULL, &sc->route, IP_FORWARDING,
(struct ip_moptions *)NULL, (struct inpcb *)NULL);
end:
OpenPOWER on IntegriCloud