Lines Matching refs:jw_global
29 json_writer_t *jw_global; variable
56 if (jw_global) { in __print_router_port_stats()
62 jsonw_string_field(jw_global, "timer", formatted_time); in __print_router_port_stats()
70 if (jw_global) in __print_router_port_stats()
71 jsonw_string_field(jw_global, "type", in __print_router_port_stats()
86 if (jw_global) { in br_print_router_ports()
87 jsonw_name(jw_global, ll_index_to_name(brifidx)); in br_print_router_ports()
88 jsonw_start_array(jw_global); in br_print_router_ports()
91 jsonw_start_object(jw_global); in br_print_router_ports()
92 jsonw_string_field(jw_global, in br_print_router_ports()
97 jsonw_end_object(jw_global); in br_print_router_ports()
99 jsonw_end_array(jw_global); in br_print_router_ports()
126 jsonw_name(jw_global, "flags"); in start_json_mdb_flags_array()
127 jsonw_start_array(jw_global); in start_json_mdb_flags_array()
144 if (jw_global) in print_mdb_entry()
145 jsonw_start_object(jw_global); in print_mdb_entry()
147 if (jw_global) in print_mdb_entry()
148 jsonw_string_field(jw_global, "opCode", "deleted"); in print_mdb_entry()
152 if (jw_global) { in print_mdb_entry()
153 jsonw_string_field(jw_global, "dev", ll_index_to_name(ifindex)); in print_mdb_entry()
154 jsonw_string_field(jw_global, in print_mdb_entry()
157 jsonw_string_field(jw_global, "grp", inet_ntop(af, src, in print_mdb_entry()
159 jsonw_string_field(jw_global, "state", in print_mdb_entry()
163 jsonw_string(jw_global, "offload"); in print_mdb_entry()
166 jsonw_end_array(jw_global); in print_mdb_entry()
176 if (jw_global) in print_mdb_entry()
177 jsonw_uint_field(jw_global, "vid", e->vid); in print_mdb_entry()
185 if (jw_global) { in print_mdb_entry()
191 jsonw_string_field(jw_global, "timer", formatted_time); in print_mdb_entry()
197 if (jw_global) in print_mdb_entry()
198 jsonw_end_object(jw_global); in print_mdb_entry()
263 if (jw_global) in print_mdb()
264 jsonw_string_field(jw_global, in print_mdb()
270 if (jw_global) { in print_mdb()
271 jsonw_name(jw_global, in print_mdb()
273 jsonw_start_array(jw_global); in print_mdb()
274 jsonw_start_object(jw_global); in print_mdb()
275 jsonw_string_field(jw_global, "port", in print_mdb()
277 jsonw_end_object(jw_global); in print_mdb()
278 jsonw_end_array(jw_global); in print_mdb()
287 if (!jw_global) in print_mdb()
336 jw_global = jsonw_new(stdout); in mdb_show()
337 jsonw_pretty(jw_global, 1); in mdb_show()
338 jsonw_start_object(jw_global); in mdb_show()
339 jsonw_name(jw_global, "mdb"); in mdb_show()
340 jsonw_start_array(jw_global); in mdb_show()
349 jsonw_end_array(jw_global); in mdb_show()
356 jsonw_name(jw_global, "router"); in mdb_show()
357 jsonw_start_object(jw_global); in mdb_show()
366 jsonw_end_object(jw_global); in mdb_show()
367 jsonw_end_object(jw_global); in mdb_show()
368 jsonw_destroy(&jw_global); in mdb_show()