From 843bd6bc4a0a078825cf58147e45167464364a1c Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Wed, 27 Jun 2001 02:52:41 +0000 Subject: Add length to pkthdr.len directly. --- sys/netinet/ip_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index d1fcd970d7e..3ad478bd0e3 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.128 2001/06/27 01:34:07 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.129 2001/06/27 02:52:40 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -849,7 +849,7 @@ ip_insertoptions(m, opt, phlen) if (n == 0) return (m); M_COPY_HDR(n, m); - n->m_pkthdr.len = m->m_pkthdr.len + optlen; + n->m_pkthdr.len += optlen; m->m_len -= sizeof(struct ip); m->m_data += sizeof(struct ip); n->m_next = m; -- cgit v1.2.3