diff options
author | darrenr <darrenr@FreeBSD.org> | 2000-08-13 04:58:02 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2000-08-13 04:58:02 +0000 |
commit | 54a215376523c9828e0092de33f29614fca24281 (patch) | |
tree | 73c5d7610005d77ef48ecc4df40b50c23486a0dc /contrib/ipfilter/fils.c | |
parent | 90778a716059d6db7810bad8d8a4e1b787dc4a06 (diff) | |
download | FreeBSD-src-54a215376523c9828e0092de33f29614fca24281.zip FreeBSD-src-54a215376523c9828e0092de33f29614fca24281.tar.gz |
Import base ipfilter 3.4.9 into contrib dir.
Diffstat (limited to 'contrib/ipfilter/fils.c')
-rw-r--r-- | contrib/ipfilter/fils.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ipfilter/fils.c b/contrib/ipfilter/fils.c index 761f905..6a4cf67 100644 --- a/contrib/ipfilter/fils.c +++ b/contrib/ipfilter/fils.c @@ -65,7 +65,7 @@ #if !defined(lint) static const char sccsid[] = "@(#)fils.c 1.21 4/20/96 (C) 1993-2000 Darren Reed"; -static const char rcsid[] = "@(#)$Id: fils.c,v 2.21.2.4 2000/05/22 12:47:38 darrenr Exp $"; +static const char rcsid[] = "@(#)$Id: fils.c,v 2.21.2.5 2000/07/20 14:13:30 darrenr Exp $"; #endif extern char *optarg; @@ -209,6 +209,7 @@ char *argv[]; opts |= OPT_ACCNT|OPT_SHOWLIST; break; case 'A' : + device = IPAUTH_NAME; opts |= OPT_AUTHSTATS; break; case 'C' : @@ -297,7 +298,7 @@ char *argv[]; bzero((char *)&ipsst, sizeof(ipsst)); bzero((char *)&ifrst, sizeof(ifrst)); - if (ioctl(fd, SIOCGETFS, &fiop) == -1) { + if (!(opts & OPT_AUTHSTATS) && ioctl(fd, SIOCGETFS, &fiop) == -1) { perror("ioctl(ipf:SIOCGETFS)"); exit(-1); } |