forked from KNEMC/KLALB
KLALB V3.6.0 写了一半
This commit is contained in:
@@ -20,7 +20,7 @@ import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import org.kne.cloud.network.NetworkPacket;
|
||||
import org.kne.cloud.network.ipv6.Inet6AddressGroup;
|
||||
import org.kne.cloud.network.ipv6.IPv6AddressGroup;
|
||||
|
||||
public class RouterInfo implements Serializable{
|
||||
|
||||
@@ -29,12 +29,12 @@ public class RouterInfo implements Serializable{
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Inet6AddressGroup locator;
|
||||
private IPv6AddressGroup locator;
|
||||
private long asn;
|
||||
public Inet6AddressGroup getLocator() {
|
||||
public IPv6AddressGroup getLocator() {
|
||||
return locator;
|
||||
}
|
||||
public void setLocator(Inet6AddressGroup locator) {
|
||||
public void setLocator(IPv6AddressGroup locator) {
|
||||
this.locator = locator;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class RouterInfo implements Serializable{
|
||||
return neighborAddresses;
|
||||
}
|
||||
|
||||
public RouterInfo( long createTime,Inet6AddressGroup locator,long asn) {
|
||||
public RouterInfo( long createTime,IPv6AddressGroup locator,long asn) {
|
||||
this.createTime = createTime;
|
||||
this.locator=locator;
|
||||
this.asn=asn;
|
||||
@@ -115,7 +115,7 @@ public class RouterInfo implements Serializable{
|
||||
readFromStream(new DataInputStream(Channels.newInputStream(din)));
|
||||
}
|
||||
public void readFromStream(DataInputStream in) throws IOException {
|
||||
locator=new Inet6AddressGroup(in);
|
||||
locator=new IPv6AddressGroup(in);
|
||||
asn=in.readLong();
|
||||
createTime=in.readLong();
|
||||
int size=in.readInt();
|
||||
|
||||
Reference in New Issue
Block a user