Feature (contd.): Device Emulation - added/updated IPv6 fields in emulproto

This commit is contained in:
Srivats P 2015-12-24 19:00:32 +05:30
parent e0f9e6a703
commit 12d17ef6de

View File

@ -60,17 +60,17 @@ message Ip4Emulation {
// FIXME: step for gateway?
}
// FIXME: should we have a 'message Ip6Address' with 'hi', 'lo' fields
// and use that everywhere instead of having to define _hi and _lo?
message Ip6Emulation {
optional uint64 address_hi = 1;
optional uint64 address_lo = 2;
optional uint32 prefix_length = 3;
optional uint64 default_gateway_hi = 4;
optional uint64 default_gateway_lo = 5;
message Ip6Address {
optional uint64 hi = 1;
optional uint64 lo = 2;
}
optional uint64 step_hi = 10 [default = 0];
optional uint64 step_lo = 11 [default = 1];
message Ip6Emulation {
optional Ip6Address address = 1;
optional uint32 prefix_length = 2;
optional Ip6Address default_gateway = 3;
optional Ip6Address step = 10;
// FIXME: step for gateway?
}
@ -90,7 +90,9 @@ message Device {
optional uint32 ip4_prefix_length = 11;
optional uint32 ip4_default_gateway = 12;
// TODO: IPv6 fields
optional Ip6Address ip6 = 20;
optional uint32 ip6_prefix_length = 21;
optional Ip6Address ip6_default_gateway = 22;
}
extend OstProto.PortDeviceList {
@ -103,9 +105,8 @@ message ArpEntry {
}
message NdEntry {
optional uint64 ip6_hi = 1;
optional uint64 ip6_lo = 2;
optional uint64 mac = 3;
optional Ip6Address ip6 = 1;
optional uint64 mac = 2;
}
message DeviceNeighborList {