Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ice: rename to local pref #376

Merged
merged 1 commit into from
May 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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