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
Conversation
Please include the right summary and remove these comments:
|
Please fix checkpatch error: "Remove Gerrit Change-ID's before submitting upstream" Thanks! |
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
#define IFF_MULTICAST (1 << 12) /* Supports multicast. */ | ||
#define IFF_BROADCAST (1 << 13) /* Broadcast address valid. */ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 please review and merge if you are ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#define IFF_MULTICAST (1 << 12) /* Supports multicast. */ | ||
#define IFF_BROADCAST (1 << 13) /* Broadcast address valid. */ |
There was a problem hiding this comment.
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.
VELAPLATFO-2660
Signed-off-by: zhanghongyu zhanghongyu@xiaomi.com
Change-Id: Ieb6b1eadefa8e2a60832346f71fff23c85d2d88a
Summary
Impact
Testing