From 3975772f23f775b2845426ab82ce658a4fa1f816 Mon Sep 17 00:00:00 2001 From: angelos Date: Tue, 11 Apr 2000 16:28:49 +0000 Subject: [PATCH] Don't add an extra 20 bytes to ip_len, m_pkthdr.len is already updated by M_PREPEND. --- sys/netinet/ip_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index fc2d0cd17bd..57c09f3a16b 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.7 2000/04/10 07:33:44 angelos Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.8 2000/04/11 16:28:49 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -273,7 +273,7 @@ etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip, ipo->ip_v = IPVERSION; ipo->ip_hl = 5; - ipo->ip_len = htons(m->m_pkthdr.len + sizeof(struct ip)); + ipo->ip_len = htons(m->m_pkthdr.len); ipo->ip_ttl = ip_defttl; ipo->ip_p = IPPROTO_ETHERIP; ipo->ip_tos = 0; -- 2.20.1