summaryrefslogtreecommitdiffstats
path: root/lib/initparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/initparse.c')
-rw-r--r--lib/initparse.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/initparse.c b/lib/initparse.c
new file mode 100644
index 0000000..b9f162f
--- /dev/null
+++ b/lib/initparse.c
@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) 2000-2002 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * $Id: initparse.c,v 1.6.4.1 2006/06/16 17:21:02 darrenr Exp $
+ */
+#include "ipf.h"
+
+
+char thishost[MAXHOSTNAMELEN];
+
+
+void initparse __P((void))
+{
+ gethostname(thishost, sizeof(thishost));
+ thishost[sizeof(thishost) - 1] = '\0';
+}
OpenPOWER on IntegriCloud