From 5b2a80f16691e0313d4f7244e6cf4ac97c05527e Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 23 Apr 2004 16:57:43 +0000 Subject: Add the comment of the previous commit to the source file directly. Requested by: ru --- sys/net/if_gre.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/net/if_gre.c') 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: -- cgit v1.1