summaryrefslogtreecommitdiffstats
path: root/net/tcptrace
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-03-10 01:38:28 +0000
committerfenner <fenner@FreeBSD.org>2001-03-10 01:38:28 +0000
commite6e261619a429674168a30384ef59c1283211c18 (patch)
treee1f3a502573d4c3f0ed1e6b43ecdae4351fdf6b3 /net/tcptrace
parentf2f4b9cc0d026b3f84de162b1c1aefec89ff539b (diff)
downloadFreeBSD-ports-e6e261619a429674168a30384ef59c1283211c18.zip
FreeBSD-ports-e6e261619a429674168a30384ef59c1283211c18.tar.gz
Handle private differently-prototyped ether_ntoa()
Diffstat (limited to 'net/tcptrace')
-rw-r--r--net/tcptrace/files/patch-ab22
-rw-r--r--net/tcptrace/files/patch-ac23
2 files changed, 45 insertions, 0 deletions
diff --git a/net/tcptrace/files/patch-ab b/net/tcptrace/files/patch-ab
new file mode 100644
index 0000000..5b80baf
--- /dev/null
+++ b/net/tcptrace/files/patch-ab
@@ -0,0 +1,22 @@
+/usr/bin/diff --ignore-matching-lines=.*{$Id:|$Header:}.* -u tcptrace.h.orig tcptrace.h
+--- tcptrace.h.orig Fri Mar 9 17:30:34 2001
++++ tcptrace.h Fri Mar 9 17:31:08 2001
+@@ -485,7 +485,7 @@
+
+ /* external routine decls */
+ double sqrt(double x);
+-char *ether_ntoa(struct ether_addr *e);
++char *shawn_ether_ntoa(struct ether_addr *e);
+ void free(void *);
+ int finite(double);
+
+@@ -681,7 +680,9 @@
+ #define IPTOS_CE 0x01 /* Experienced Congestion */
+
+ #define TH_ECN_ECHO 0x02 /* Used by receiver to echo CE bit */
++#ifndef TH_CWR
+ #define TH_CWR 0x01 /* Congestion Window Reduced */
++#endif
+
+
+
diff --git a/net/tcptrace/files/patch-ac b/net/tcptrace/files/patch-ac
new file mode 100644
index 0000000..e9f2387
--- /dev/null
+++ b/net/tcptrace/files/patch-ac
@@ -0,0 +1,23 @@
+/usr/bin/diff --ignore-matching-lines=.*{$Id:|$Header:}.* -u print.c.orig print.c
+--- print.c.orig Fri Mar 9 17:33:16 2001
++++ print.c Fri Mar 9 17:34:12 2001
+@@ -110,8 +110,8 @@
+ printeth_packet(
+ struct ether_header *pep)
+ {
+- printf("\tETH Srce: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_shost));
+- printf("\tETH Dest: %s\n", ether_ntoa((struct ether_addr *)&pep->ether_dhost));
++ printf("\tETH Srce: %s\n", shawn_ether_ntoa((struct ether_addr *)&pep->ether_shost));
++ printf("\tETH Dest: %s\n", shawn_ether_ntoa((struct ether_addr *)&pep->ether_dhost));
+
+ printf(
+ hex?"\t Type: 0x%x %s\n":"\t Type: %d %s\n",
+@@ -708,7 +708,7 @@
+ /* and it messes up my cross-platform testing. I'll just do it the */
+ /* "one true" way! :-) */
+ char *
+-ether_ntoa (struct ether_addr *e)
++shawn_ether_ntoa (struct ether_addr *e)
+ {
+ unsigned char *pe;
+ static char buf[30];
OpenPOWER on IntegriCloud