Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
2 | 01 0a # version / type | ||||
3 | 00 15 # length | ||||
4 | 12 34 56 78 # xid | ||||
5 | ab cd ef 01 # buffer_id | ||||
6 | 00 09 # total_len | ||||
7 | ff fe # in_port | ||||
8 | 01 # reason | ||||
9 | 00 # pad | ||||
10 | 61 62 63 # data | ||||
11 | -- python | ||||
12 | ofp.message.packet_in( | ||||
13 | xid=0x12345678, | ||||
14 | buffer_id=0xabcdef01, | ||||
15 | total_len=9, | ||||
16 | in_port=ofp.OFPP_LOCAL, | ||||
17 | reason=ofp.OFPR_ACTION, | ||||
18 | data='abc') |