Date: Tue, 17 Apr 2012 14:37:30 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r234384 - projects/pf/head/sys/sys Message-ID: <201204171437.q3HEbUH8086352@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204171437.q3HEbUH8086352>