|
Line 0
Link Here
|
|
|
1 |
--- trafd/traffic.c.buggy Mon Aug 7 18:45:54 2000 |
| 2 |
+++ trafd/traffic.c Mon Aug 7 18:46:42 2000 |
| 3 |
@@ -253,7 +253,7 @@ |
| 4 |
t.p_port = tp->th_sport, t.who_srv = 1; |
| 5 |
else if (tp->th_sport > tp->th_dport) |
| 6 |
t.p_port = tp->th_dport, t.who_srv = 2; |
| 7 |
- else if (tp->th_sport = tp->th_dport) |
| 8 |
+ else if (tp->th_sport == tp->th_dport) |
| 9 |
t.p_port = tp->th_sport, t.who_srv = 3; |
| 10 |
if (t.p_port > IPPORT_RESERVED) { |
| 11 |
if (s_port_big[tp->th_sport & (IPPORT_RESERVED-1)] & IPPROTO_TCP) { |
| 12 |
@@ -263,7 +263,7 @@ |
| 13 |
t.p_port = tp->th_dport; |
| 14 |
t.who_srv = 2; |
| 15 |
} |
| 16 |
- if (tp->th_sport = tp->th_dport) t.who_srv = 3; |
| 17 |
+ if (tp->th_sport == tp->th_dport) t.who_srv = 3; |
| 18 |
} |
| 19 |
traf_add(insertentry(&t), t.n_bytes, t.n_psize); |
| 20 |
|
| 21 |
@@ -300,7 +300,7 @@ |
| 22 |
t.p_port = up->uh_sport, t.who_srv = 1; |
| 23 |
else if (up->uh_sport > up->uh_dport) |
| 24 |
t.p_port = up->uh_dport, t.who_srv = 2; |
| 25 |
- else if (up->uh_sport = up->uh_dport) |
| 26 |
+ else if (up->uh_sport == up->uh_dport) |
| 27 |
t.p_port = up->uh_sport, t.who_srv = 3; |
| 28 |
if (t.p_port > IPPORT_RESERVED) { |
| 29 |
if (s_port_big[up->uh_sport & (IPPORT_RESERVED-1)] & IPPROTO_UDP) { |
| 30 |
@@ -310,7 +310,7 @@ |
| 31 |
t.p_port = up->uh_dport; |
| 32 |
t.who_srv = 2; |
| 33 |
} |
| 34 |
- if (up->uh_sport = up->uh_dport) t.who_srv = 3; |
| 35 |
+ if (up->uh_sport == up->uh_dport) t.who_srv = 3; |
| 36 |
} |
| 37 |
traf_add(insertentry(&t), t.n_bytes, t.n_psize); |
| 38 |
|
| 39 |
|