summaryrefslogtreecommitdiffstats
path: root/net/oproute/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/oproute/files')
-rw-r--r--net/oproute/files/patch-Makefile11
-rw-r--r--net/oproute/files/patch-oproute.cpp28
-rw-r--r--net/oproute/files/patch-oproute.h12
3 files changed, 51 insertions, 0 deletions
diff --git a/net/oproute/files/patch-Makefile b/net/oproute/files/patch-Makefile
new file mode 100644
index 0000000..022c885
--- /dev/null
+++ b/net/oproute/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Sat Mar 3 23:03:42 2001
++++ Makefile Sat Mar 3 23:03:59 2001
+@@ -1,7 +1,7 @@
+
+ CPPFLAGS = -O3
+ VERSION = 0.7
+-BIN = /usr/local/bin
++BIN = %%PREFIX%%/bin
+
+ all: oproute
+
diff --git a/net/oproute/files/patch-oproute.cpp b/net/oproute/files/patch-oproute.cpp
new file mode 100644
index 0000000..324e25c
--- /dev/null
+++ b/net/oproute/files/patch-oproute.cpp
@@ -0,0 +1,28 @@
+--- oproute.cpp.orig Sat Mar 3 23:16:17 2001
++++ oproute.cpp Sat Mar 3 23:18:11 2001
+@@ -706,7 +706,7 @@
+ udp = (struct udphdr *)(recvbuf + hlen1 + 8 +hlen2);
+ if(hip->ip_p == IPPROTO_UDP)
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_COMPLETED;
+ pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
+@@ -721,14 +721,14 @@
+ {
+ if (icmp->icmp_code == ICMP_UNREACH_PORT)
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_ENDOFLINE;
+ pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
+ }
+ else
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_FAILED;
+ }
diff --git a/net/oproute/files/patch-oproute.h b/net/oproute/files/patch-oproute.h
new file mode 100644
index 0000000..22407f8
--- /dev/null
+++ b/net/oproute/files/patch-oproute.h
@@ -0,0 +1,12 @@
+--- oproute.h.orig Thu Mar 1 10:28:31 2001
++++ oproute.h Sat Mar 3 23:12:12 2001
+@@ -3,6 +3,9 @@
+
+ #include <vector>
+ #include <string>
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
+ #include <sys/time.h>
+ #include <map>
+
OpenPOWER on IntegriCloud