Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 2015 17:19:54 +0000
From:      "nvass-gmx.com (Nikos Vassiliadis)" <phabric-noreply@FreeBSD.org>
To:        freebsd-pf@freebsd.org
Subject:   [Differential] [Updated, 197 lines] D1944: PF and VIMAGE fixes
Message-ID:  <9ba5b83b76886d7d482c70e02f5fe274@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-clct73g5zt63yh3lvwzr-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-clct73g5zt63yh3lvwzr-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_9ba5b83b76886d7d482c70e02f5fe274
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit

nvass-gmx.com updated this revision to Diff 5290.
nvass-gmx.com added a comment.

Hi,

Please review this. It updates the previous patch, with another way to unload pf.

Eventhandlers are also touched, they should behave correctly now.


CHANGES SINCE LAST UPDATE
  https://reviews.freebsd.org/D1944?vs=3915&id=5290

REVISION DETAIL
  https://reviews.freebsd.org/D1944

AFFECTED FILES
  sys/net/pfvar.h
  sys/netpfil/pf/pf.c
  sys/netpfil/pf/pf_if.c
  sys/netpfil/pf/pf_ioctl.c
  sys/netpfil/pf/pf_norm.c

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: nvass-gmx.com, bz, zec, trociny, glebius, rodrigc, kristof, gnn
Cc: robak, freebsd-virtualization, freebsd-pf, freebsd-net

--b1_9ba5b83b76886d7d482c70e02f5fe274
Content-Type: text/x-patch; charset=utf-8; name="D1944.5290.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D1944.5290.patch"

ZGlmZiAtLWdpdCBhL3N5cy9uZXRwZmlsL3BmL3BmX25vcm0uYyBiL3N5cy9uZXRwZmlsL3BmL3Bm
X25vcm0uYwotLS0gYS9zeXMvbmV0cGZpbC9wZi9wZl9ub3JtLmMKKysrIGIvc3lzL25ldHBmaWwv
cGYvcGZfbm9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