summaryrefslogtreecommitdiffstats
path: root/lib/printhostmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/printhostmap.c')
-rw-r--r--lib/printhostmap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/printhostmap.c b/lib/printhostmap.c
new file mode 100644
index 0000000..92996ed
--- /dev/null
+++ b/lib/printhostmap.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2002-2005 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * $Id: printhostmap.c,v 1.3.2.3 2006/09/30 21:42:07 darrenr Exp $
+ */
+
+#include "ipf.h"
+
+void printhostmap(hmp, hv)
+hostmap_t *hmp;
+u_int hv;
+{
+
+ printf("%s,", inet_ntoa(hmp->hm_srcip));
+ printf("%s -> ", inet_ntoa(hmp->hm_dstip));
+ printf("%s ", inet_ntoa(hmp->hm_mapip));
+ printf("(use = %d hv = %u)\n", hmp->hm_ref, hv);
+}
OpenPOWER on IntegriCloud