if (x = y) -> if (x == y)
PR: 20825 Submitted by: Oddbjorn Steffensen <oddbjorn@tricknology.org>
This commit is contained in:
parent
39f331f5b7
commit
3a6807cc0e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32042
39
net-mgmt/trafd/files/patch-ah
Normal file
39
net-mgmt/trafd/files/patch-ah
Normal file
@ -0,0 +1,39 @@
|
||||
--- trafd/traffic.c.buggy Mon Aug 7 18:45:54 2000
|
||||
+++ trafd/traffic.c Mon Aug 7 18:46:42 2000
|
||||
@@ -253,7 +253,7 @@
|
||||
t.p_port = tp->th_sport, t.who_srv = 1;
|
||||
else if (tp->th_sport > tp->th_dport)
|
||||
t.p_port = tp->th_dport, t.who_srv = 2;
|
||||
- else if (tp->th_sport = tp->th_dport)
|
||||
+ else if (tp->th_sport == tp->th_dport)
|
||||
t.p_port = tp->th_sport, t.who_srv = 3;
|
||||
if (t.p_port > IPPORT_RESERVED) {
|
||||
if (s_port_big[tp->th_sport & (IPPORT_RESERVED-1)] & IPPROTO_TCP) {
|
||||
@@ -263,7 +263,7 @@
|
||||
t.p_port = tp->th_dport;
|
||||
t.who_srv = 2;
|
||||
}
|
||||
- if (tp->th_sport = tp->th_dport) t.who_srv = 3;
|
||||
+ if (tp->th_sport == tp->th_dport) t.who_srv = 3;
|
||||
}
|
||||
traf_add(insertentry(&t), t.n_bytes, t.n_psize);
|
||||
|
||||
@@ -300,7 +300,7 @@
|
||||
t.p_port = up->uh_sport, t.who_srv = 1;
|
||||
else if (up->uh_sport > up->uh_dport)
|
||||
t.p_port = up->uh_dport, t.who_srv = 2;
|
||||
- else if (up->uh_sport = up->uh_dport)
|
||||
+ else if (up->uh_sport == up->uh_dport)
|
||||
t.p_port = up->uh_sport, t.who_srv = 3;
|
||||
if (t.p_port > IPPORT_RESERVED) {
|
||||
if (s_port_big[up->uh_sport & (IPPORT_RESERVED-1)] & IPPROTO_UDP) {
|
||||
@@ -310,7 +310,7 @@
|
||||
t.p_port = up->uh_dport;
|
||||
t.who_srv = 2;
|
||||
}
|
||||
- if (up->uh_sport = up->uh_dport) t.who_srv = 3;
|
||||
+ if (up->uh_sport == up->uh_dport) t.who_srv = 3;
|
||||
}
|
||||
traf_add(insertentry(&t), t.n_bytes, t.n_psize);
|
||||
|
||||
|
39
net/trafd/files/patch-ah
Normal file
39
net/trafd/files/patch-ah
Normal file
@ -0,0 +1,39 @@
|
||||
--- trafd/traffic.c.buggy Mon Aug 7 18:45:54 2000
|
||||
+++ trafd/traffic.c Mon Aug 7 18:46:42 2000
|
||||
@@ -253,7 +253,7 @@
|
||||
t.p_port = tp->th_sport, t.who_srv = 1;
|
||||
else if (tp->th_sport > tp->th_dport)
|
||||
t.p_port = tp->th_dport, t.who_srv = 2;
|
||||
- else if (tp->th_sport = tp->th_dport)
|
||||
+ else if (tp->th_sport == tp->th_dport)
|
||||
t.p_port = tp->th_sport, t.who_srv = 3;
|
||||
if (t.p_port > IPPORT_RESERVED) {
|
||||
if (s_port_big[tp->th_sport & (IPPORT_RESERVED-1)] & IPPROTO_TCP) {
|
||||
@@ -263,7 +263,7 @@
|
||||
t.p_port = tp->th_dport;
|
||||
t.who_srv = 2;
|
||||
}
|
||||
- if (tp->th_sport = tp->th_dport) t.who_srv = 3;
|
||||
+ if (tp->th_sport == tp->th_dport) t.who_srv = 3;
|
||||
}
|
||||
traf_add(insertentry(&t), t.n_bytes, t.n_psize);
|
||||
|
||||
@@ -300,7 +300,7 @@
|
||||
t.p_port = up->uh_sport, t.who_srv = 1;
|
||||
else if (up->uh_sport > up->uh_dport)
|
||||
t.p_port = up->uh_dport, t.who_srv = 2;
|
||||
- else if (up->uh_sport = up->uh_dport)
|
||||
+ else if (up->uh_sport == up->uh_dport)
|
||||
t.p_port = up->uh_sport, t.who_srv = 3;
|
||||
if (t.p_port > IPPORT_RESERVED) {
|
||||
if (s_port_big[up->uh_sport & (IPPORT_RESERVED-1)] & IPPROTO_UDP) {
|
||||
@@ -310,7 +310,7 @@
|
||||
t.p_port = up->uh_dport;
|
||||
t.who_srv = 2;
|
||||
}
|
||||
- if (up->uh_sport = up->uh_dport) t.who_srv = 3;
|
||||
+ if (up->uh_sport == up->uh_dport) t.who_srv = 3;
|
||||
}
|
||||
traf_add(insertentry(&t), t.n_bytes, t.n_psize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user