blob: 017e8ba6c3991ead92e1c5f9fc8d0b0c5e8eb688 [file] [log] [blame]
Rich Lane9a3f1fd2013-05-10 16:29:17 -07001-- binary
203 # table_id
300 00 00 # pad
466 6f 6f 00 00 00 00 00 # name
500 00 00 00 00 00 00 00 # name
600 00 00 00 00 00 00 00 # name
700 00 00 00 00 00 00 00 # name
800 3f ff ff # wildcards
900 00 00 05 # max_entries
1000 00 00 02 # active_count
1100 00 00 ff ff ff ff ff # lookup_count
1281 11 11 11 11 11 11 11 # matched_count
13-- python
14ofp.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 Laneccae0312013-07-21 23:34:13 -070022-- c
23obj = of_table_stats_entry_new(OF_VERSION_1_0);
24of_table_stats_entry_active_count_set(obj, 2);
25of_table_stats_entry_lookup_count_set(obj, 1099511627775ULL);
26of_table_stats_entry_matched_count_set(obj, 9300233470495232273ULL);
27of_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}
32of_table_stats_entry_table_id_set(obj, 3);
33of_table_stats_entry_wildcards_set(obj, 4194303);