freebsd-ports/security/pf/files/patch-ab
Foxfair Hu d2ff3920b8 PR:
Submitted by:	maintainer
Reviewed by:
Approved by:
Obtained from:
MFC after:
Add two patches to solve the following problems:

patch-ab
 - resolves a problem with a mbuf-tag in 5.1
 - Submitted by: Pyun YongHyeon <yongari@kt-is.co.kr>

patch-ac
 - pulls in two critical fixes from OpenBSD patch branch
 - Obtained from: OpenBSD

Change BROKEN to IGNORE tag in Makefile, suggested by: kris@
&& bump PORTREVISION.
2003-06-18 04:46:34 +00:00

70 lines
2.5 KiB
Text

--- pf/pf_support.h Mon Apr 14 05:54:15 2003
+++ pf/pf_support.h Tue Jun 17 14:26:33 2003
@@ -16,10 +16,16 @@
* Original numbers changed from 11, 12, 13.
* sys/mbuf.h
*/
-#define PACKET_TAG_PF_GENERATED 19 /* PF generated, pass always */
-#define PACKET_TAG_PF_ROUTED 20 /* PF routed, no route loops */
-#define PACKET_TAG_PF_FRAGCACHE 21 /* PF fragment cached */
-#define PACKET_TAG_PF_QID 22 /* PF queue id */
+#if defined(PACKET_TAG_MACLABEL)
+#define PACKET_TAG_FB_END (PACKET_TAG_MACLABEL)
+#else
+#define PACKET_TAG_FB_END (PACKET_TAG_IPFORWARD)
+#endif
+#define PACKET_TAG_PF_GENERATED (PACKET_TAG_FB_END+1)
+#define PACKET_TAG_PF_ROUTED (PACKET_TAG_FB_END+2)
+#define PACKET_TAG_PF_FRAGCACHE (PACKET_TAG_FB_END+3)
+#define PACKET_TAG_PF_QID (PACKET_TAG_FB_END+4)
+#define PACKET_TAG_PF_TAG (PACKET_TAG_FB_END+5)
/*
* sys/limits.h
--- pfaltq/pf_support.h Mon Apr 14 06:04:19 2003
+++ pfaltq/pf_support.h Tue Jun 17 14:26:34 2003
@@ -16,10 +16,16 @@
* Original numbers changed from 11, 12, 13.
* sys/mbuf.h
*/
-#define PACKET_TAG_PF_GENERATED 19 /* PF generated, pass always */
-#define PACKET_TAG_PF_ROUTED 20 /* PF routed, no route loops */
-#define PACKET_TAG_PF_FRAGCACHE 21 /* PF fragment cached */
-#define PACKET_TAG_PF_QID 22 /* PF queue id */
+#if defined(PACKET_TAG_MACLABEL)
+#define PACKET_TAG_FB_END (PACKET_TAG_MACLABEL)
+#else
+#define PACKET_TAG_FB_END (PACKET_TAG_IPFORWARD)
+#endif
+#define PACKET_TAG_PF_GENERATED (PACKET_TAG_FB_END+1)
+#define PACKET_TAG_PF_ROUTED (PACKET_TAG_FB_END+2)
+#define PACKET_TAG_PF_FRAGCACHE (PACKET_TAG_FB_END+3)
+#define PACKET_TAG_PF_QID (PACKET_TAG_FB_END+4)
+#define PACKET_TAG_PF_TAG (PACKET_TAG_FB_END+5)
/*
* sys/limits.h
--- pfctl/pf_support.h Mon Apr 14 05:55:07 2003
+++ pfctl/pf_support.h Tue Jun 17 14:26:34 2003
@@ -16,10 +16,16 @@
* Original numbers changed from 11, 12, 13.
* sys/mbuf.h
*/
-#define PACKET_TAG_PF_GENERATED 19 /* PF generated, pass always */
-#define PACKET_TAG_PF_ROUTED 20 /* PF routed, no route loops */
-#define PACKET_TAG_PF_FRAGCACHE 21 /* PF fragment cached */
-#define PACKET_TAG_PF_QID 22 /* PF queue id */
+#if defined(PACKET_TAG_MACLABEL)
+#define PACKET_TAG_FB_END (PACKET_TAG_MACLABEL)
+#else
+#define PACKET_TAG_FB_END (PACKET_TAG_IPFORWARD)
+#endif
+#define PACKET_TAG_PF_GENERATED (PACKET_TAG_FB_END+1)
+#define PACKET_TAG_PF_ROUTED (PACKET_TAG_FB_END+2)
+#define PACKET_TAG_PF_FRAGCACHE (PACKET_TAG_FB_END+3)
+#define PACKET_TAG_PF_QID (PACKET_TAG_FB_END+4)
+#define PACKET_TAG_PF_TAG (PACKET_TAG_FB_END+5)
/*
* sys/limits.h