summaryrefslogtreecommitdiffstats
path: root/net/gspoof/files/patch-callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/gspoof/files/patch-callback.c')
-rw-r--r--net/gspoof/files/patch-callback.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/gspoof/files/patch-callback.c b/net/gspoof/files/patch-callback.c
new file mode 100644
index 0000000..d1c9e09
--- /dev/null
+++ b/net/gspoof/files/patch-callback.c
@@ -0,0 +1,24 @@
+--- callbacks.c.orig Wed Sep 25 04:19:53 2002
++++ callbacks.c Wed May 7 03:40:18 2003
+@@ -194,13 +194,21 @@
+ return;
+ }
+
++#ifdef __FreeBSD__
++ if (atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) < 0)
++#else
+ if (atoll (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_seq_txt))) < 0)
++#endif
+ {
+ info ("Error: sequence number is not valid, it must be between 0 and 2^32-1\n");
+ return;
+ }
+
++#ifdef __FreeBSD__
++ if (atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) < 0)
++#else
+ if (atoll (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) > 4294970000 || atoi (gtk_entry_get_text (GTK_ENTRY(tcp_ack_txt))) < 0)
++#endif
+ {
+ info ("Error: acknowledgement number is not valid, it must be between 0 and 2^32-1\n");
+ return;
OpenPOWER on IntegriCloud