diff options
author | Rob Gulewich <robert.gulewich@joyent.com> | 2012-11-28 06:45:34 +0000 |
---|---|---|
committer | Rob Gulewich <robert.gulewich@joyent.com> | 2012-11-28 06:45:34 +0000 |
commit | b8582a6ecee6602b1531544725880703e3ba97ef (patch) | |
tree | 669a41b2c555147521c4433fd928ce6b5663ae07 | |
parent | 82b839f8150b5e521f86c7fbf84bc038a8642dc7 (diff) | |
download | illumos-joyent-b8582a6ecee6602b1531544725880703e3ba97ef.tar.gz |
OS-777 ipfilter should support loading / modifying per-zone rules from the GZ (clean up includes)
-rw-r--r-- | usr/src/cmd/ipf/tools/ipfzone.c | 8 | ||||
-rw-r--r-- | usr/src/cmd/ipf/tools/ipfzone.h | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/usr/src/cmd/ipf/tools/ipfzone.c b/usr/src/cmd/ipf/tools/ipfzone.c index e158c1d80f..1dabbcd447 100644 --- a/usr/src/cmd/ipf/tools/ipfzone.c +++ b/usr/src/cmd/ipf/tools/ipfzone.c @@ -6,10 +6,14 @@ */ -#include <zone.h> +#include <errno.h> +#include <net/if.h> #include <stdio.h> -#include <sys/ioctl.h> +#include <string.h> +#include <unistd.h> +#include <zone.h> +#include "netinet/ip_fil.h" #include "ipfzone.h" static ipfzoneobj_t ipzo; diff --git a/usr/src/cmd/ipf/tools/ipfzone.h b/usr/src/cmd/ipf/tools/ipfzone.h index f1998e43f3..a62747af7d 100644 --- a/usr/src/cmd/ipf/tools/ipfzone.h +++ b/usr/src/cmd/ipf/tools/ipfzone.h @@ -8,15 +8,9 @@ #ifndef __IPFZONE_H__ #define __IPFZONE_H__ -#include <stdarg.h> -#include <net/if.h> -#include "netinet/ip_fil.h" - void getzonearg(int, char *[], const char *); void getzoneopt(int, char *[], const char *); int setzone(int); void setzonename(const char *); -extern zoneid_t zoneid; - #endif /* __IPFZONE_H__ */ |