svn commit: r234384 - projects/pf/head/sys/sys
Gleb Smirnoff
glebius at FreeBSD.org
Tue Apr 17 14:37:30 UTC 2012
Author: glebius
Date: Tue Apr 17 14:37:29 2012
New Revision: 234384
URL: http://svn.freebsd.org/changeset/base/234384
Log:
Add MTAG_PERSISTENT to pf(4) tags. In OpenBSD they
store the pf(4) information right in the mbuf header,
and a persistent tag gives us similar behavior.
This flag is crucial for infinite recursion protection
in the pf_route() and pf_route6().
Discussed with: eri
Modified:
projects/pf/head/sys/sys/mbuf.h
Modified: projects/pf/head/sys/sys/mbuf.h
==============================================================================
--- projects/pf/head/sys/sys/mbuf.h Tue Apr 17 14:31:02 2012 (r234383)
+++ projects/pf/head/sys/sys/mbuf.h Tue Apr 17 14:37:29 2012 (r234384)
@@ -989,7 +989,7 @@ struct mbuf *m_unshare(struct mbuf *, in
#define PACKET_TAG_DIVERT 17 /* divert info */
#define PACKET_TAG_IPFORWARD 18 /* ipforward info */
#define PACKET_TAG_MACLABEL (19 | MTAG_PERSISTENT) /* MAC label */
-#define PACKET_TAG_PF 21 /* PF + ALTQ information */
+#define PACKET_TAG_PF (21 | MTAG_PERSISTENT) /* PF/ALTQ information */
#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
#define PACKET_TAG_CARP 28 /* CARP info */
More information about the svn-src-projects
mailing list