summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/printifname.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/lib/printifname.c')
-rw-r--r--contrib/ipfilter/lib/printifname.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/printifname.c b/contrib/ipfilter/lib/printifname.c
new file mode 100644
index 0000000..53a7fd7
--- /dev/null
+++ b/contrib/ipfilter/lib/printifname.c
@@ -0,0 +1,20 @@
+/* $NetBSD$ */
+
+/*
+ * Copyright (C) 1993-2001 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * Id: printifname.c,v 1.2 2002/01/28 06:50:47 darrenr Exp
+ */
+
+#include "ipf.h"
+
+void printifname(format, name, ifp)
+char *format, *name;
+void *ifp;
+{
+ printf("%s%s", format, name);
+ if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
+ printf("(!)");
+}
OpenPOWER on IntegriCloud