Skip to content

Commit

Permalink
ice: rename to local pref (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored May 28, 2022
1 parent b2b73ea commit 5f690d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/re_ice.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const char *ice_role2name(enum ice_role role);
const char *ice_candpair_state2name(enum ice_candpair_state st);


uint32_t ice_cand_calc_prio(enum ice_cand_type type, uint16_t local,
uint32_t ice_cand_calc_prio(enum ice_cand_type type, uint16_t lpref,
unsigned compid);


Expand Down
4 changes: 2 additions & 2 deletions src/ice/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ static uint32_t type_prio(enum ice_cand_type type)
}


uint32_t ice_cand_calc_prio(enum ice_cand_type type, uint16_t local,
uint32_t ice_cand_calc_prio(enum ice_cand_type type, uint16_t lpref,
unsigned compid)
{
return type_prio(type)<<24 | (uint32_t)local<<8 | (256 - compid);
return type_prio(type)<<24 | (uint32_t)lpref<<8 | (256 - compid);
}


Expand Down

0 comments on commit 5f690d4

Please sign in to comment.