HC2VPP-314 - fix for IPV6 routes with 128 subnet prefix 71/12371/1
authorMichal Cmarada <[email protected]>
Thu, 3 May 2018 07:42:34 +0000 (09:42 +0200)
committerMarek Gradzki <[email protected]>
Thu, 3 May 2018 08:31:54 +0000 (08:31 +0000)
commit7f65e3e6e35dafca1fd7e386c62d0c8e76a21484
tree09ae1fa2df10b9513cfdb1fd535dc2963e01fbe4
parent493da31bc6f605d5a68b1810df4a8ca6326eb889
HC2VPP-314 - fix for IPV6 routes with 128 subnet prefix

VPP uses byte in range of 0 to 255 but when jni is used
and this type is converted to java byte which has range
of -128 to 127 it will convert it to negative value.
It then fails to create Ip6Prefix from this value.

Change-Id: Ic18686959682c153da2e4ee4a7f7841c9b56e5d3
Signed-off-by: Michal Cmarada <[email protected]>
routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/naming/Ipv6RouteNamesFactory.java
routing/routing-impl/src/main/java/io/fd/hc2vpp/routing/write/trait/RouteRequestProducer.java
vpp-common/vpp-translate-utils/src/main/java/io/fd/hc2vpp/common/translate/util/Ipv6Translator.java