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

Many alias names #348

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Many alias names #348

merged 1 commit into from
Feb 24, 2021

Conversation

olbjo
Copy link
Collaborator

@olbjo olbjo commented Feb 17, 2021

Handle multiple alias names.

@pyhys pyhys mentioned this pull request Feb 18, 2021
Copy link
Collaborator

@pyhys pyhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
Remember to update the commit message about "exclude alias".

src/common/pf_lldp.h Outdated Show resolved Hide resolved
src/common/pf_lldp.c Outdated Show resolved Hide resolved
@olbjo olbjo force-pushed the many_alias_names branch 3 times, most recently from c04fd51 to ebad5dd Compare February 18, 2021 11:13
Copy link
Collaborator

@pyhys pyhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@pyhys pyhys requested a review from hefloryd February 18, 2021 11:25
@olbjo olbjo force-pushed the many_alias_names branch 2 times, most recently from ea8906f to 88be926 Compare February 19, 2021 12:44
skip = append_alias_name ? 0 : 1;
value_length = (uint16_t)strlen ((char *)p_value);
skip = alias_name ? 0 : 1;
if (skip == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip is a boolean, skip = alias_name == NULL and if (!skip)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Do not store alias name for each LLDP peer. Instead build
and check alias when alias is part of id request received.
@hefloryd hefloryd merged commit 38965fd into rtlabs-com:master Feb 24, 2021
@olbjo olbjo deleted the many_alias_names branch May 19, 2021 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants