Lines Matching refs:jw_global
34 json_writer_t *jw_global; variable
89 jsonw_name(jw_global, "flags"); in start_json_fdb_flags_array()
90 jsonw_start_array(jw_global); in start_json_fdb_flags_array()
134 if (jw_global) { in print_fdb()
135 jsonw_pretty(jw_global, 1); in print_fdb()
136 jsonw_start_object(jw_global); in print_fdb()
140 if (jw_global) in print_fdb()
141 jsonw_string_field(jw_global, "opCode", "deleted"); in print_fdb()
152 if (jw_global) in print_fdb()
153 jsonw_string_field(jw_global, "mac", b1); in print_fdb()
159 if (jw_global) in print_fdb()
160 jsonw_string_field(jw_global, "dev", in print_fdb()
177 if (jw_global) in print_fdb()
178 jsonw_string_field(jw_global, "dst", abuf_s); in print_fdb()
184 if (jw_global) in print_fdb()
185 jsonw_uint_field(jw_global, "vlan", vid); in print_fdb()
191 if (jw_global) in print_fdb()
192 jsonw_uint_field(jw_global, "port", in print_fdb()
200 if (jw_global) in print_fdb()
201 jsonw_uint_field(jw_global, "vni", in print_fdb()
216 if (jw_global) in print_fdb()
217 jsonw_string_field(jw_global, "viaIf", in print_fdb()
222 if (jw_global) in print_fdb()
223 jsonw_uint_field(jw_global, "viaIfIndex", in print_fdb()
232 if (jw_global) in print_fdb()
233 jsonw_uint_field(jw_global, "linkNetNsId", in print_fdb()
244 if (jw_global) { in print_fdb()
245 jsonw_uint_field(jw_global, "used", in print_fdb()
247 jsonw_uint_field(jw_global, "updated", in print_fdb()
255 if (jw_global) { in print_fdb()
258 jsonw_string(jw_global, "self"); in print_fdb()
262 jsonw_string(jw_global, "router"); in print_fdb()
266 jsonw_string(jw_global, "extern_learn"); in print_fdb()
270 jsonw_string(jw_global, "offload"); in print_fdb()
273 jsonw_string(jw_global, "master"); in print_fdb()
275 jsonw_end_array(jw_global); in print_fdb()
278 jsonw_string_field(jw_global, in print_fdb()
300 if (jw_global) { in print_fdb()
302 jsonw_string_field(jw_global, "state", state_s); in print_fdb()
304 jsonw_end_object(jw_global); in print_fdb()
383 jw_global = jsonw_new(stdout); in fdb_show()
384 if (!jw_global) { in fdb_show()
388 jsonw_start_array(jw_global); in fdb_show()
394 if (jw_global) { in fdb_show()
395 jsonw_end_array(jw_global); in fdb_show()
396 jsonw_destroy(&jw_global); in fdb_show()