Lines 1-6
Link Here
|
1 |
--- bandwidthd.c.orig Fri Oct 10 20:22:39 2003 |
1 |
--- bandwidthd.c.orig Mon Nov 10 17:16:04 2003 |
2 |
+++ bandwidthd.c Sun Nov 2 12:21:17 2003 |
2 |
+++ bandwidthd.c Tue Nov 11 13:52:27 2003 |
3 |
@@ -114,7 +114,11 @@ |
3 |
@@ -129,7 +129,11 @@ |
4 |
} |
4 |
} |
5 |
else |
5 |
else |
6 |
{ |
6 |
{ |
Lines 12-23
Link Here
|
12 |
exit(1); |
12 |
exit(1); |
13 |
} |
13 |
} |
14 |
} |
14 |
} |
15 |
@@ -244,7 +248,7 @@ |
15 |
@@ -264,7 +268,7 @@ |
16 |
tcp = (struct tcphdr *)(ip+1); |
16 |
tcp = (struct tcphdr *)(ip+1); |
17 |
tcp = (struct tcphdr *) ( ((char *)tcp) + ((ip->ip_hl-5)*4) ); // Compensate for IP Options |
17 |
tcp = (struct tcphdr *) ( ((char *)tcp) + ((ip->ip_hl-5)*4) ); // Compensate for IP Options |
18 |
Stats->tcp += size; |
18 |
Stats->tcp += size; |
19 |
-#ifdef SOLARIS |
19 |
-#if defined(SOLARIS) |
20 |
+#if defined(SOLARIS) || defined(FREEBSD) |
20 |
+#if defined(SOLARIS) || defined (FREEBSD) |
21 |
sport = ntohs(tcp->th_sport); |
21 |
sport = ntohs(tcp->th_sport); |
22 |
dport = ntohs(tcp->th_dport); |
22 |
dport = ntohs(tcp->th_dport); |
23 |
#else |
23 |
#else |