Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 0d # version, type |
| 3 | 00 33 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 00 00 64 # buffer_id |
| 6 | 00 00 00 04 # in_port |
| 7 | 00 18 # actions_len |
| 8 | 00 00 00 00 00 00 # pad |
| 9 | 00 00 # actions[0].type |
| 10 | 00 10 # actions[0].length |
| 11 | 00 00 00 02 # actions[0].port |
| 12 | ff ff # actions[0].max_len |
| 13 | 00 00 00 00 00 00 # pad |
| 14 | 00 18 # actions[1].type |
| 15 | 00 08 # actions[1].length |
| 16 | 00 00 00 00 # pad |
| 17 | 61 62 63 # data |
| 18 | -- python |
| 19 | ofp.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") |