svn commit: r198163 - user/eri/pf45/head/sys/contrib/pf/net

Ermal Luçi eri at FreeBSD.org
Thu Oct 15 23:30:57 UTC 2009


Author: eri
Date: Thu Oct 15 23:30:56 2009
New Revision: 198163
URL: http://svn.freebsd.org/changeset/base/198163

Log:
  Make visible to userland the ioctl definitions so ifconfig can compile.

Modified:
  user/eri/pf45/head/sys/contrib/pf/net/if_pflow.h
  user/eri/pf45/head/sys/contrib/pf/net/if_pfsync.h

Modified: user/eri/pf45/head/sys/contrib/pf/net/if_pflow.h
==============================================================================
--- user/eri/pf45/head/sys/contrib/pf/net/if_pflow.h	Thu Oct 15 23:20:23 2009	(r198162)
+++ user/eri/pf45/head/sys/contrib/pf/net/if_pflow.h	Thu Oct 15 23:30:56 2009	(r198163)
@@ -123,12 +123,12 @@ struct pflowreq {
 #define PFLOW_MASK_DSTPRT	0x04
 };
 
-#ifdef _KERNEL
 #ifdef __FreeBSD__
 #define SIOCSETPFLOW   _IOW('i', 249, struct ifreq)
 #define SIOCGETPFLOW   _IOWR('i', 250, struct ifreq)
 #endif
 
+#ifdef _KERNEL
 int export_pflow(struct pf_state *);
 int pflow_sysctl(int *, u_int,  void *, size_t *, void *, size_t);
 #endif /* _KERNEL */

Modified: user/eri/pf45/head/sys/contrib/pf/net/if_pfsync.h
==============================================================================
--- user/eri/pf45/head/sys/contrib/pf/net/if_pfsync.h	Thu Oct 15 23:20:23 2009	(r198162)
+++ user/eri/pf45/head/sys/contrib/pf/net/if_pfsync.h	Thu Oct 15 23:30:56 2009	(r198163)
@@ -268,13 +268,13 @@ struct pfsyncreq {
 	int		 pfsyncr_authlevel;
 };
 
-#ifdef _KERNEL
-
 #ifdef __FreeBSD__
 #define SIOCSETPFSYNC   _IOW('i', 247, struct ifreq)
 #define SIOCGETPFSYNC   _IOWR('i', 248, struct ifreq)
 #endif
 
+#ifdef _KERNEL
+
 /*
  * this shows where a pf state is with respect to the syncing.
  */


More information about the svn-src-user mailing list