Rich Lane | 9a3f1fd | 2013-05-10 16:29:17 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 03 # table_id |
| 3 | 00 00 00 # pad |
| 4 | 66 6f 6f 00 00 00 00 00 # name |
| 5 | 00 00 00 00 00 00 00 00 # name |
| 6 | 00 00 00 00 00 00 00 00 # name |
| 7 | 00 00 00 00 00 00 00 00 # name |
| 8 | 00 3f ff ff # wildcards |
| 9 | 00 00 00 05 # max_entries |
| 10 | 00 00 00 02 # active_count |
| 11 | 00 00 00 ff ff ff ff ff # lookup_count |
| 12 | 81 11 11 11 11 11 11 11 # matched_count |
| 13 | -- python |
| 14 | ofp.table_stats_entry( |
| 15 | table_id=3, |
| 16 | name="foo", |
| 17 | wildcards=ofp.OFPFW_ALL, |
| 18 | max_entries=5, |
| 19 | active_count=2, |
| 20 | lookup_count=1099511627775, |
| 21 | matched_count=9300233470495232273L) |
Rich Lane | ccae031 | 2013-07-21 23:34:13 -0700 | [diff] [blame] | 22 | -- c |
| 23 | obj = of_table_stats_entry_new(OF_VERSION_1_0); |
| 24 | of_table_stats_entry_active_count_set(obj, 2); |
| 25 | of_table_stats_entry_lookup_count_set(obj, 1099511627775ULL); |
| 26 | of_table_stats_entry_matched_count_set(obj, 9300233470495232273ULL); |
| 27 | of_table_stats_entry_max_entries_set(obj, 5); |
| 28 | { |
| 29 | of_table_name_t name = "foo"; |
| 30 | of_table_stats_entry_name_set(obj, name); |
| 31 | } |
| 32 | of_table_stats_entry_table_id_set(obj, 3); |
| 33 | of_table_stats_entry_wildcards_set(obj, 4194303); |