2009-04-27 11:51:44 -05:00
|
|
|
import "protocol.proto";
|
|
|
|
|
|
|
|
package OstProto;
|
|
|
|
|
|
|
|
// Ethernet
|
|
|
|
message Mac {
|
|
|
|
|
2009-12-28 02:31:28 -06:00
|
|
|
enum MacAddrMode {
|
|
|
|
e_mm_fixed = 0;
|
|
|
|
e_mm_inc = 1;
|
|
|
|
e_mm_dec = 2;
|
|
|
|
}
|
2009-04-27 11:51:44 -05:00
|
|
|
|
2009-12-28 02:31:28 -06:00
|
|
|
// Dst Mac
|
|
|
|
optional uint64 dst_mac = 1;
|
|
|
|
optional MacAddrMode dst_mac_mode = 2 [default = e_mm_fixed];
|
|
|
|
optional uint32 dst_mac_count = 3 [default = 16];
|
|
|
|
optional uint32 dst_mac_step = 4 [default = 1];
|
2009-04-27 11:51:44 -05:00
|
|
|
|
2009-12-28 02:31:28 -06:00
|
|
|
// Src Mac
|
|
|
|
optional uint64 src_mac = 5;
|
|
|
|
optional MacAddrMode src_mac_mode = 6 [default = e_mm_fixed];
|
|
|
|
optional uint32 src_mac_count = 7 [default = 16];
|
|
|
|
optional uint32 src_mac_step = 8 [default = 1];
|
2009-04-27 11:51:44 -05:00
|
|
|
}
|
|
|
|
|
2009-08-02 09:52:34 -05:00
|
|
|
extend Protocol {
|
2009-12-28 02:31:28 -06:00
|
|
|
optional Mac mac = 51;
|
2009-04-27 11:51:44 -05:00
|
|
|
}
|