2009-04-27 11:51:44 -05:00
|
|
|
import "protocol.proto";
|
|
|
|
|
|
|
|
package OstProto;
|
|
|
|
|
|
|
|
// Ethernet
|
|
|
|
message Mac {
|
|
|
|
|
|
|
|
enum MacAddrMode {
|
|
|
|
e_mm_fixed = 0;
|
|
|
|
e_mm_inc = 1;
|
|
|
|
e_mm_dec = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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];
|
|
|
|
|
|
|
|
// Src Mac
|
2009-09-23 09:53:26 -05:00
|
|
|
optional uint64 src_mac = 5;
|
2009-04-27 11:51:44 -05:00
|
|
|
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-08-02 09:52:34 -05:00
|
|
|
extend Protocol {
|
2009-04-27 11:51:44 -05:00
|
|
|
optional Mac mac = 51;
|
|
|
|
}
|