with first IP address from Host service
This fixes ONOS-1010
Also, add protocol-related constants to class NeighborAdvertisement.
Change-Id: Iacf9e48a8a03a86e1cc4e89e7e2b2b4ccc4a7e3a
SDN-IP can now support peering and routing between hosts that are connected
on VLANs.
Changes include:
* Updated NetworkConfigReader app to read (optional) VLAN configuration
* Updated VlanId to support the 'VLAN present' value - in a match this means
that a VLAN tag must be present, but it can contain any value.
* Updated SDN-IP to set destination VLAN tag values if appropriate
* Updated FlowModBuilder and FlowEntryBuilder to support 'VLAN present' value
* Slew of test updates.
Change-Id: Ief48cede5c1fd50e1efa851da5a97fb4a8edda29
* Create IExtensionHeader interface
- setNextHeader, getNextHeader interface for all extension header classes
- Except EncapSecurityPayload, in which the nextHeader field is encrypted
* Create BaseOptions class
- Super class of HopByHopOptions and DestinationOptions, since these two are very similar
* Implement following classes with unit test
- HopByHopOptions
- DestinationOptions
- Fragment
- Routing
- Authentication
- EncapSecurityPayload
Change-Id: If65894eccf20ac90f04bc2b0cb42aac6dd5a9674
Create an exception to throw when no resources are available
Simple, Hazelcast and Distributed link resource stores throw ResourceAllocationException
Unit tests for successful and unsuccessful bandwidth and lambda allocations
Change-Id: If062d10d2233935dd59efabfa5f37a446e275a5b
* Resolve ONOS-511
* Refactor: Move NDP-related classes into org.onlab.packet.ndp package
* Bugfix: payload is not properly set in testSerialize
Change-Id: Idb2dbfbd0297152c0e26ac2d5d5f8dba62824660
ONOS-511: Implement NeighborSolicitation
Change-Id: I9aaf35d499cfc7885c74f9c4bf281210ef9f3969
ONOS-507: Trace NeighborSolicitation/NeighborAdvertisement/IPv6 packets in HostLocationProvider
* Complete Javadoc of IPv6, ICMP6, NeighborAdvertisement and NeighborSolicitation
- The Javadoc for serialize() is removed since the one in its superclass just works fine.
* Change 'diffServ' in IPv6 to 'trafficClass' to meet the field name in RFC.
- The setter method, getter method and unit test are also updated accordingly.
* Add IpAddress.isZero() to determine if this address is zero.
- The unit test is also updated accordingly.
* Fix misuse of IpAddress.valueOf(int) in HostLocationProvider
Change-Id: Id0d873aeb1bc61bf26d4964e7aab4bb06ccd0a38
Create ICMP6 class, which is mostly like ICMP
Change-Id: I11d7abec4a8f1fd202e5dfb0a500f621773c2c3a
Create IPv6 class, which is mostly like IPv4
Change-Id: I7a301a0f94263df5d6d30f73050332ec7acfe611
Register handler class of IPv6 to Ethernet
Change-Id: Iccdef1680664520f9d66360a289809710982ce54
Fix FIXED_HEADER_LENGTH
Change-Id: Iff4fb22638416595f2865ff46b682a0579ba33d5
Fix payloadLength
Change-Id: I8dea4dd52f0bb5926fbff0d9e74fdd19404cabff
Add unittest for serialize
Change-Id: If194aa2530ce517a33b36b97b8478b0a4c463954
Add unittest for deserialize. Fix assertArrayEquals. Refine test structure.
Change-Id: I94f2a348b2be2f5907d8bac6b9029b37eb31456d
Payload length should be handled during serializing/deserializing procedure
Change-Id: Ib079bf939a01a38356c824ed972793293ed8ca1e
Add unittest for comparator
Change-Id: I937dd9330d7c23a81ecd8434ac0fcf7345cc5c00
Fix typo. Fix checkstyle error
Change-Id: I2fe1af81c65416b0fddaa0fb9ae206b87b889628
Add implementation and unittest for NeighborAdvertisement
Change-Id: I7610462a5712f9fee5be0416c08e1de302e0780d
Register handler class of NeighborAdvertisement to ICMP6
Change-Id: I3a7a9cf044cfdcd8908579942c159c2f0aad198d
- removed tests no longer useful now that all Intent objects are unique
- fixed intent object equality tests
- enabled several immutable base class tests
- renamed several Test....java classes to ...Test.Java to
match project best practices
Change-Id: Ic829d6d39556d2f63323f5e82f3807dba86c62ec
Fixed some code that was reporting findbugs errors
Implemented a suppression mechanism for findbugs
reported errors and a suppression file.
Change-Id: Ie8a2e84cc57ec6ddfa14d782ee89feb095b9dd59
It lacks the guarantee the underlying IP address is IPv4.
Potential users of toInt() should use Ip4Address.toInt()
or IpAddress.getIp4Address().toInt()
Tthe latter obviously might require the explicit check that
getIp4Address() is not null.
Change-Id: I3f939695cf3c496e3fdd3fbd4a2988b565cca69a
if both objects are instanceof IpAddress.
I.e., comparing IpAddress and Ip4Address objects could return true
if the underlying value is same.
Applied the same change to IpPrefix.equals() as well.
Change-Id: Ie0644565501d3ecce2a8603117b994d033d5b82f
to get the Ip4Address and Ip6Address view of the IpAddress.
* Added methods IpPrefix.getIp4Prefix() and IpPrefix.getIp6Prefix()
to get the Ip4Prefix and Ip6Prefix view of the IpPrefix.
Added the corresponding unit tests as well.
and the corresponding unit tests.
* Reimplemented classes Ip4Address and Ip6Address by inheriting from
class IpAddress
* Reimplemented classes Ip4Prefix and Ip6Prefix by inheriting from
class IpPrefix
* Reimplemented the unit tests Ip4AddressTest and Ip6AddressTest to
match the corresponding IpAddressTest unit tests
* Reimplemented the unit tests Ip4PrefixTest and Ip6PrefixTest to
match the corresponding IpPrefixTest unit tests
* Minor refactoring/cleanup of classes IpAddress and IpPrefix