-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
49 changed files
with
820 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* construction. Such a class can be freely shared between threads and does not | ||
* require defensive copying (don't call clone). | ||
* | ||
* @author Andreas Wundsam <[email protected]> | ||
* @author Andreas Wundsam {@literal <}[email protected]{@literal >} | ||
*/ | ||
public @interface Immutable { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
* Abstraction of a datapath ID that can be set and/or accessed as either a | ||
* long value or a colon-separated string. Immutable | ||
* | ||
* @author Rob Vaterlaus <[email protected]> | ||
* @author Rob Vaterlaus {@literal <}[email protected]{@literal >} | ||
*/ | ||
@Immutable | ||
public class DatapathId implements PrimitiveSinkable, Comparable<DatapathId> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** a hash value that supports bit-wise combinations, mainly to calculate hash values for | ||
* reconciliation operations. | ||
* | ||
* @author Andreas Wundsam <[email protected]> | ||
* @author Andreas Wundsam {@literal <}[email protected]{@literal >} | ||
* | ||
* @param <H> - this type, for return type safety. | ||
*/ | ||
|
@@ -53,7 +53,7 @@ public interface HashValue<H extends HashValue<H>> { | |
* operations on a hashv value without the associated cost of object | ||
* reallocation. | ||
* | ||
* @author Andreas Wundsam <[email protected]> | ||
* @author Andreas Wundsam {@literal <}[email protected]{@literal >} | ||
* | ||
* @param <H> - the hashvalue | ||
*/ | ||
|
@@ -99,4 +99,4 @@ public interface Builder<H> { | |
/** @return the hash value */ | ||
public H build(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
/** | ||
* Wrapper around an IPv4Address address | ||
* | ||
* @author Andreas Wundsam <[email protected]> | ||
* @author Andreas Wundsam {@literal <}[email protected]{@literal >} | ||
*/ | ||
public class IPv4Address extends IPAddress<IPv4Address> implements Writeable { | ||
static final int LENGTH = 4; | ||
|
@@ -90,6 +90,14 @@ public boolean isBroadcast() { | |
return this.equals(NO_MASK); | ||
} | ||
|
||
/** | ||
* IPv4 multicast addresses are defined by the leading address bits of 1110 | ||
*/ | ||
@Override | ||
public boolean isMulticast() { | ||
return ((rawValue >>> 24) & 0xF0) == 0xE0; | ||
} | ||
|
||
@Override | ||
public IPv4Address and(IPv4Address other) { | ||
Preconditions.checkNotNull(other, "other must not be null"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.