mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
De-anonymity a couple of messages I missed in a previous sweep.
Move one of them under DEB macro. Noticed by: Wiktor Niesiobedzki <w@evip.pl>
This commit is contained in:
parent
60b7777e9b
commit
2adf7582da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109569
@ -983,7 +983,7 @@ red_drops(struct dn_flow_set *fs, struct dn_flow_queue *q, int len)
|
||||
p_b = SCALE_MUL((int64_t) fs->c_3, (int64_t) q->avg) - fs->c_4;
|
||||
} else {
|
||||
q->count = -1;
|
||||
printf("- drop");
|
||||
DEB(printf("dummynet: - drop"););
|
||||
return 1 ;
|
||||
}
|
||||
} else if (q->avg > fs->min_th) {
|
||||
@ -1005,7 +1005,7 @@ red_drops(struct dn_flow_set *fs, struct dn_flow_queue *q, int len)
|
||||
*/
|
||||
if (SCALE_MUL(p_b, SCALE((int64_t) q->count)) > q->random) {
|
||||
q->count = 0;
|
||||
DEB(printf("- red drop");)
|
||||
DEB(printf("dummynet: - red drop");)
|
||||
/* after a drop we calculate a new random value */
|
||||
q->random = random() & 0xffff;
|
||||
return 1; /* drop */
|
||||
|
Loading…
Reference in New Issue
Block a user