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

net_if: add IFF_LOOPBACK/POINTOPOINT/MULTICAST/BROADCAST #6543

Merged
merged 1 commit into from Jul 3, 2022

Conversation

zhhyu7
Copy link
Contributor

@zhhyu7 zhhyu7 commented Jun 29, 2022

VELAPLATFO-2660

Signed-off-by: zhanghongyu zhanghongyu@xiaomi.com
Change-Id: Ieb6b1eadefa8e2a60832346f71fff23c85d2d88a

Summary

Impact

Testing

include/net/if.h Outdated Show resolved Hide resolved
@acassis
Copy link
Contributor

acassis commented Jun 29, 2022

Please include the right summary and remove these comments:

VELAPLATFO-2660

Signed-off-by: zhanghongyu [zhanghongyu@xiaomi.com](mailto:zhanghongyu@xiaomi.com)
Change-Id: Ieb6b1eadefa8e2a60832346f71fff23c85d2d88a

@hartmannathan
Copy link
Contributor

Please fix checkpatch error: "Remove Gerrit Change-ID's before submitting upstream" Thanks!

include/net/if.h Outdated Show resolved Hide resolved
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
Comment on lines +57 to +58
#define IFF_MULTICAST (1 << 12) /* Supports multicast. */
#define IFF_BROADCAST (1 << 13) /* Broadcast address valid. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question: why 12 and 13 bits are used and not 8 and 9?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is still not answered.

Copy link
Contributor Author

@zhhyu7 zhhyu7 Jul 3, 2022

Choose a reason for hiding this comment

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

Just a question: why 12 and 13 bits are used and not 8 and 9?

I was just reusing the Linux definition, do I need to change it to bit 8 and 9?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is still not answered.

Sorry for my reply are not timely.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hello @zhhyu7

Sorry for my delay. I was away for a couple of days. The PR looks good. I will merge it now. If there is ever a need to change the bit values, they can always be changed.

@pkarashchenko
Copy link
Contributor

@hartmannathan please review and merge if you are ok.

Copy link
Contributor

@hartmannathan hartmannathan left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +57 to +58
#define IFF_MULTICAST (1 << 12) /* Supports multicast. */
#define IFF_BROADCAST (1 << 13) /* Broadcast address valid. */
Copy link
Contributor

Choose a reason for hiding this comment

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

Hello @zhhyu7

Sorry for my delay. I was away for a couple of days. The PR looks good. I will merge it now. If there is ever a need to change the bit values, they can always be changed.

@hartmannathan hartmannathan merged commit c7c5c75 into apache:master Jul 3, 2022
@zhhyu7 zhhyu7 deleted the topic-5 branch August 30, 2022 03:26
@jerpelea jerpelea added this to To-Add in Release Notes - 11.0.0 Aug 30, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 11.0.0 Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants