-
Notifications
You must be signed in to change notification settings - Fork 130
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
Added static function to generate macAddress from IPv4 Multicast address #420
Conversation
Refer to this link for build results (access rights to CI server needed): |
int ipMask = 0x00EFFFFF; | ||
ipLong = ipLong & ipMask; | ||
|
||
MacAddress mac = MacAddress.of("01:00:5E:00:00:00"); |
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.
No reason to always re-allocated this Mac address every time. Make it a constant
private final static MacAddress MULTICAST_BASE_ADDRESS = MacAddress.of("01:00:5E:00:00:00")
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
|
||
|
||
/** Parse an IPv4 Multicast address and return the macAddress | ||
* corresponding to the multicast IPv4 address. |
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.
Start on the line with one *
.
Otherwise LGTM. And looks like there are some merge conflicts to be resolved. |
Refer to this link for build results (access rights to CI server needed): |
ACK |
ABAT: START_MERGE: Log file at http://vss1/abat/2015.09.15.2326-m.loxigen.master/abat.log |
Loxigen Head commit floodlight/loxigen@3030a39 commit 3030a39d5a52f198ef997d6b1e0f41a33e48511b Merge: 4776c8a 0f9126c Author: abat <abat@bigswitch.com> Date: Tue Sep 15 16:26:40 2015 -0700 Merge into master from pull request #420: Added static function to generate macAddress from IPv4 Multicast address (floodlight/loxigen#420) commit 0f9126c1da22fc8d5003e46fb5535127d8f2abf1 Merge: 5cd56cb 4776c8a Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Tue Sep 15 16:14:35 2015 -0700 Merge remote-tracking branch 'bigswitch/master' into my-loxigen commit 5cd56cb61cb5ce8e727bb67e3c09d68c59a8c421 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Tue Sep 15 16:13:28 2015 -0700 Fixed code review comments commit fbc111d2804fce865b1a010dfaa5ca1685bc7a22 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 17:01:28 2015 -0700 Fixed compilation error commit 989491e689e464a06852bd9193eef58110135429 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 16:51:26 2015 -0700 Fixed compilation warning commit faf22f589f27b20335175699f1d226bef648f970 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 16:38:20 2015 -0700 Fixed review comments and added JUnit testcases commit c90917117a8df05131f67a8ed693e081a7ce466c Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Fri Aug 28 15:05:12 2015 -0700 Added static function to generate macAddress from IPv4 Multicast address.
ABAT: ACCEPT: Successfully merged In case you want to see the build log, check out : |
Added static function to generate macAddress from IPv4 Multicast address (#420)
Loxigen Head commit floodlight/loxigen@3030a39 commit 3030a39d5a52f198ef997d6b1e0f41a33e48511b Merge: 4776c8a 0f9126c Author: abat <abat@bigswitch.com> Date: Tue Sep 15 16:26:40 2015 -0700 Merge into master from pull request #420: Added static function to generate macAddress from IPv4 Multicast address (floodlight/loxigen#420) commit 0f9126c1da22fc8d5003e46fb5535127d8f2abf1 Merge: 5cd56cb 4776c8a Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Tue Sep 15 16:14:35 2015 -0700 Merge remote-tracking branch 'bigswitch/master' into my-loxigen commit 5cd56cb61cb5ce8e727bb67e3c09d68c59a8c421 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Tue Sep 15 16:13:28 2015 -0700 Fixed code review comments commit fbc111d2804fce865b1a010dfaa5ca1685bc7a22 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 17:01:28 2015 -0700 Fixed compilation error commit 989491e689e464a06852bd9193eef58110135429 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 16:51:26 2015 -0700 Fixed compilation warning commit faf22f589f27b20335175699f1d226bef648f970 Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Wed Sep 9 16:38:20 2015 -0700 Fixed review comments and added JUnit testcases commit c90917117a8df05131f67a8ed693e081a7ce466c Author: Mary Manohar <mary.manohar@bigswitch.com> Date: Fri Aug 28 15:05:12 2015 -0700 Added static function to generate macAddress from IPv4 Multicast address. (cherry picked from commit 50185e1)
Reviewer: @ronaldchl @andi-bigswitch
LOXI-71