Han,
diff -r 21a7f243a4c9 binding/example.py
--- a/binding/example.py Fri Jan 16 20:29:11 2015 +0530
+++ b/binding/example.py Fri Feb 13 20:27:43 2015 +0530
@@ -12,6 +12,7 @@
from core import ost_pb, DroneProxy
from protocols.mac_pb2 import mac
from protocols.ip4_pb2 import ip4, Ip4
+from protocols.payload_pb2 import payload, Payload
# initialize defaults
use_defaults = False
@@ -132,7 +133,11 @@
ip.dst_ip_mode = Ip4.e_im_inc_host
s.protocol.add().
protocol_id.id = ost_pb.Protocol.kUdpFieldNumber
- s.protocol.add().
protocol_id.id = ost_pb.Protocol.kPayloadFieldNumber
+ #s.protocol.add().
protocol_id.id = ost_pb.Protocol.kPayloadFieldNumber
+ p = s.protocol.add()
+
p.protocol_id.id = ost_pb.Protocol.kPayloadFieldNumber
+ p.Extensions[payload].pattern_mode = Payload.e_dp_fixed_word;
+ p.Extensions[payload].pattern = 0xa1b2c3d4;
log.info('configuring tx_stream %d' % stream_id.stream_id[0].id)
drone.modifyStream(stream_cfg)
Srivats
> --
> Get Ostinato News and Updates on Twitter - Follow @ostinato
> (
http://twitter.com/ostinato)
> ---------
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To post to this group, send email to
osti...@googlegroups.com
> To unsubscribe from this group, send email to
>
ostinato+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/ostinato?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "ostinato" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ostinato+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
http://ostinato.org/
@ostinato