summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-personality.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-04-18 07:38:15 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-04-18 07:38:15 +0000
commitd5d2b7649bbaa03192defdec55146a31ed918621 (patch)
tree138227b775593965a901458996485a1bbc46fa79 /net/honeyd/files/patch-personality.c
parentSoekris ist a i386-look-alike, so set ONLY_FOR_ARCHS accordingly (diff)
- Update to 1.0
PR: ports/79909 Submitted by: Vasil Dimov <vd@datamax.bg> Approved by: Yann Berthier <yb@bashibuzuk.net> (maintainer)
Notes
Notes: svn path=/head/; revision=133562
Diffstat (limited to 'net/honeyd/files/patch-personality.c')
-rw-r--r--net/honeyd/files/patch-personality.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/honeyd/files/patch-personality.c b/net/honeyd/files/patch-personality.c
new file mode 100644
index 000000000000..31ecd385a3f9
--- /dev/null
+++ b/net/honeyd/files/patch-personality.c
@@ -0,0 +1,38 @@
+--- personality.c.orig Thu Apr 14 16:07:26 2005
++++ personality.c Thu Apr 14 12:57:11 2005
+@@ -64,6 +64,8 @@
+ #include "xprobe_assoc.h"
+ #include "template.h"
+
++//#define DEBUG_XPROBE_STRUCT
++
+ /* ET - Moved SPLAY_HEAD to personality.h so xprobe_assoc.c could use it. */
+ int npersons;
+
+@@ -1633,6 +1635,7 @@
+
+ /* !!!DEBUG FUNCTION!!! */
+
++#ifdef DEBUG_XPROBE_STRUCT
+ static void
+ print_xprobe_struct(struct xp_fingerprint *pers)
+ {
+@@ -1693,6 +1696,7 @@
+ printf ("icmp_unreach_echoed_3bit_flags: %d\n",
+ pers->flags.icmp_unreach_echoed_3bit_flags);
+ }
++#endif /* DEBUG_XPROBE_STRUCT */
+
+ void
+ print_perstree(void)
+@@ -1727,7 +1731,9 @@
+ /* Get a single fingerprint */
+ new_print = get_fprint (fp);
+ if (new_print != NULL) {
+- /* print_xprobe_struct (new_print); */
++#ifdef DEBUG_XPROBE_STRUCT
++ print_xprobe_struct (new_print);
++#endif /* DEBUG_XPROBE_STRUCT */
+ SPLAY_INSERT(xp_fprint_tree, &xp_fprints, new_print);
+ new_print = NULL;
+ }