summaryrefslogtreecommitdiff
path: root/usr.sbin/portmap/from_local.c
diff options
context:
space:
mode:
authorPhilippe Charnier <charnier@FreeBSD.org>1997-10-09 07:17:36 +0000
committerPhilippe Charnier <charnier@FreeBSD.org>1997-10-09 07:17:36 +0000
commit4a9670dd7611f7099912f5326cadb5cdc64393c0 (patch)
tree14bbc7ebec0eafaf55a14663a65033ecff46983e /usr.sbin/portmap/from_local.c
parenta624e84fff4bac9c001947c7d6c2c64294b0421d (diff)
Notes
Diffstat (limited to 'usr.sbin/portmap/from_local.c')
-rw-r--r--usr.sbin/portmap/from_local.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/portmap/from_local.c b/usr.sbin/portmap/from_local.c
index 6554de4f4a621..a1bfa72180224 100644
--- a/usr.sbin/portmap/from_local.c
+++ b/usr.sbin/portmap/from_local.c
@@ -36,8 +36,12 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#) from_local.c 1.2 93/11/16 21:50:02";
#endif
+static const char rcsid[] =
+ "$Id$";
+#endif
#ifdef TEST
#undef perror
@@ -50,6 +54,7 @@ static char sccsid[] = "@(#) from_local.c 1.2 93/11/16 21:50:02";
#include <netdb.h>
#include <syslog.h>
+#include <unistd.h>
#include <net/if.h>
#include <netinet/in.h>
@@ -67,6 +72,7 @@ static struct in_addr addrs[MAX_LOCAL];
/* find_local - find all IP addresses for this host */
+int
find_local()
{
struct ifconf ifc;
@@ -119,6 +125,7 @@ find_local()
/* from_local - determine whether request comes from the local system */
+int
from_local(addr)
struct sockaddr_in *addr;
{