summaryrefslogtreecommitdiff
path: root/net/despoof/files/patch-despoof.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 01:59:16 +0000
commit69ea23ed7175d5c34a21bba1ef9262f311c69284 (patch)
treee2e604e83659be7f58596e80b3cf18e9d7d06dae /net/despoof/files/patch-despoof.c
parentStage net-mgmt/routers2 and cleanup (diff)
Rename net/ patch-xy patches to reflect the files they modify.
Approve by: portmgr (not really, but one of these is modifying an unstaged port)
Notes
Notes: svn path=/head/; revision=363285
Diffstat (limited to 'net/despoof/files/patch-despoof.c')
-rw-r--r--net/despoof/files/patch-despoof.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/despoof/files/patch-despoof.c b/net/despoof/files/patch-despoof.c
new file mode 100644
index 000000000000..fde6ceb4a075
--- /dev/null
+++ b/net/despoof/files/patch-despoof.c
@@ -0,0 +1,11 @@
+--- despoof.c.orig Sat Sep 2 18:34:37 2000
++++ despoof.c Sat Sep 2 18:34:45 2000
+@@ -150,7 +150,7 @@
+
+ if (targetaddr == ip->ip_src.s_addr)
+ {
+- if (((inquery == 1) && (icmp->icmp_type == ICMP_ECHOREPLY)) || ((inquery == 2) && (icmp->icmp_type == ICMP_TIMESTAMPREPLY)) || ((inquery == 3) && (sport == ntohs(tcphdr->th_dport))))
++ if (((inquery == 1) && (icmp->icmp_type == ICMP_ECHOREPLY)) || ((inquery == 2) && (icmp->icmp_type == ICMP_TSTAMPREPLY)) || ((inquery == 3) && (sport == ntohs(tcphdr->th_dport))))
+ {
+ if (ttlval == ip->ip_ttl)
+ {