diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-27 02:52:41 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-27 02:52:41 +0000 |
commit | 843bd6bc4a0a078825cf58147e45167464364a1c (patch) | |
tree | 17b1997ab13eaeea2cb45534add0bde3b202d4db | |
parent | 9bdef3615072a1fcf491719ee97e861d42a3296b (diff) |
Add length to pkthdr.len directly.
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |