blob: ae8fa649092354a1d543493fc6d7f15cb321f3fa [file] [log] [blame]
Rich Lanec9fc57d2013-05-16 16:39:12 -07001-- binary
204 0d # version, type
300 33 # length
412 34 56 78 # xid
500 00 00 64 # buffer_id
600 00 00 04 # in_port
700 18 # actions_len
800 00 00 00 00 00 # pad
900 00 # actions[0].type
1000 10 # actions[0].length
1100 00 00 02 # actions[0].port
12ff ff # actions[0].max_len
1300 00 00 00 00 00 # pad
1400 18 # actions[1].type
1500 08 # actions[1].length
1600 00 00 00 # pad
1761 62 63 # data
18-- python
19ofp.message.packet_out(
20 xid=0x12345678,
21 buffer_id=100,
22 in_port=4,
23 actions=[
24 ofp.action.output(port=2, max_len=0xffff),
25 ofp.action.dec_nw_ttl()],
26 data="abc")