Check manual priority of adapter before interface weighting so that priority settings are obeyed.
This commit is contained in:
parent
e113c3bc22
commit
98abc06cf3
1 changed files with 4 additions and 3 deletions
|
@ -1120,15 +1120,16 @@ service_refresh_channel(service_t *t)
|
|||
|
||||
|
||||
/**
|
||||
* Weight then prio?
|
||||
* Priority Then Weight
|
||||
*/
|
||||
static int
|
||||
si_cmp(const service_instance_t *a, const service_instance_t *b)
|
||||
{
|
||||
int r;
|
||||
r = a->si_weight - b->si_weight;
|
||||
r = a->si_prio - b->si_prio;
|
||||
|
||||
if (!r)
|
||||
r = a->si_prio - b->si_prio;
|
||||
r = a->si_weight - b->si_weight;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue