summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-12-08 10:23:40 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-12-08 10:23:40 +0000
commit28045fe02f89a8af2ecfe366c49adaa949ae55f3 (patch)
tree0605435aa0de24717bdc41e8a0d6593dc46ef669 /sys/net
parentc0bea97b5c77237ce04693a429759169846180bd (diff)
ip_output expects network byte order; report Bob Kitella; ok deraadt
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index c761fc8bf9e..8e70b4e06ef 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.29 2003/12/03 14:52:23 markus Exp $ */
+/* $OpenBSD: if_gre.c,v 1.30 2003/12/08 10:23:39 markus Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -408,7 +408,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
((struct ip *) gh)->ip_hl = (sizeof(struct ip)) >> 2;
((struct ip *) gh)->ip_ttl = ip_defttl;
((struct ip *) gh)->ip_tos = inp->ip_tos;
- gh->gi_len = m->m_pkthdr.len;
+ gh->gi_len = htons(m->m_pkthdr.len);
}
ifp->if_opackets++;