[pf4freebsd] Patch to pf/Makefile

James Quick jq at quick.com
Wed Sep 15 20:51:57 PDT 2004


The pf Makefile does not correctly build WITH_RANDOM_ID.
The problem is a mistakenly transposed .if .else expression.

p.s. I only learned about this package this weekend.
I've been an ipfilter user on 4.x and 5.x for 4 years or
so, but am new to pf.  I have deployed in test mode on
5_1_RELENG, and have a couple of pf configuration
questions.  I have read the openbsd pf faq pages, the
man pages, and the resources listed on this project's web site.
Can I ask the questions here? If not I would appreciate being
pointed to appropriate resources.



*** pf/Makefile.orig       Wed Sep 24 07:48:44 2003
--- pf/Makefile    Mon Sep 29 09:52:11 2003
***************
*** 43,51 ****

   opt_random_ip_id.h:
   .if defined(WITH_RANDOM_ID) && (${WITH_RANDOM_ID} == "yes")
-       echo > opt_random_ip_id.h
- .else
         echo "#define RANDOM_IP_ID 1" > opt_random_ip_id.h
   .endif

   .include <bsd.kmod.mk>
--- 43,51 ----

   opt_random_ip_id.h:
   .if defined(WITH_RANDOM_ID) && (${WITH_RANDOM_ID} == "yes")
         echo "#define RANDOM_IP_ID 1" > opt_random_ip_id.h
+ .else
+       echo > opt_random_ip_id.h
   .endif

   .include <bsd.kmod.mk>





More information about the freebsd-pf mailing list