From b2dd3c5def719b7f67e91d714f5142f17035b386 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Tue, 26 Jun 2001 05:03:37 +0000 Subject: avoid useless m_copyback --- sys/net/pf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/net/pf.c b/sys/net/pf.c index e3bd0766dde..06661383fcb 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.46 2001/06/26 05:02:11 itojun Exp $ */ +/* $OpenBSD: pf.c,v 1.47 2001/06/26 05:03:36 itojun Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -1861,10 +1861,8 @@ pf_test_state_icmp(int direction, struct ifnet *ifp, struct mbuf **m, * copy back packet headers if we performed NAT * operations */ - if (rewrite) { + if (rewrite) m_copyback((*m), ipoff, sizeof(*h), (caddr_t)h); - m_copyback((*m), off, sizeof(*ih), (caddr_t)ih); - } return (s); } -- cgit v1.2.3