Home
last modified time | relevance | path

Searched refs:PRINT_JSON (Results 1 – 18 of 18) sorted by relevance

/external/iproute2/ip/
Diplink_can.c266 print_int(PRINT_JSON, "min", NULL, min); in can_print_json_timing_min_max()
267 print_int(PRINT_JSON, "max", NULL, max); in can_print_json_timing_min_max()
296 print_int(PRINT_JSON, "tx", NULL, bc->txerr); in can_print_opt()
297 print_int(PRINT_JSON, "rx", NULL, bc->rxerr); in can_print_opt()
350 print_string(PRINT_JSON, "name", NULL, btc->name); in can_print_opt()
361 print_int(PRINT_JSON, "brp_inc", NULL, btc->brp_inc); in can_print_opt()
386 print_uint(PRINT_JSON, in can_print_opt()
389 open_json_array(PRINT_JSON, "bitrate_const"); in can_print_opt()
391 print_uint(PRINT_JSON, NULL, NULL, in can_print_opt()
393 close_json_array(PRINT_JSON, NULL); in can_print_opt()
[all …]
Dipaddress.c131 print_uint(PRINT_JSON, "operstate_index", NULL, state); in print_operstate()
142 print_string(PRINT_JSON, in print_operstate()
379 open_json_array(PRINT_JSON, "vlan_list"); in print_vfinfo()
406 close_json_array(PRINT_JSON, NULL); in print_vfinfo()
432 print_int(PRINT_JSON, "max_tx", NULL, max_tx); in print_vfinfo()
558 print_uint(PRINT_JSON, "bytes", NULL, in print_vf_stats64()
560 print_uint(PRINT_JSON, "packets", NULL, in print_vf_stats64()
562 print_uint(PRINT_JSON, "multicast", NULL, in print_vf_stats64()
564 print_uint(PRINT_JSON, "broadcast", NULL, in print_vf_stats64()
570 print_uint(PRINT_JSON, "tx_bytes", NULL, in print_vf_stats64()
[all …]
Dlink_iptnl.c428 print_int(PRINT_JSON, "ttl", NULL, ttl); in iptunnel_print_opt()
438 print_0xhex(PRINT_JSON, "tos", "%#x", tos); in iptunnel_print_opt()
473 print_string(PRINT_JSON, "prefix", NULL, prefix); in iptunnel_print_opt()
474 print_int(PRINT_JSON, "prefixlen", NULL, prefixlen); in iptunnel_print_opt()
476 print_string(PRINT_JSON, in iptunnel_print_opt()
482 print_int(PRINT_JSON, in iptunnel_print_opt()
517 print_uint(PRINT_JSON, in iptunnel_print_opt()
521 print_uint(PRINT_JSON, "dport", NULL, ntohs(dport)); in iptunnel_print_opt()
522 print_bool(PRINT_JSON, in iptunnel_print_opt()
526 print_bool(PRINT_JSON, in iptunnel_print_opt()
[all …]
Dlink_ip6tnl.c413 print_string(PRINT_JSON, "flowinfo_tclass", NULL, b1); in ip6tunnel_print_opt()
430 print_string(PRINT_JSON, "flowlabel", NULL, b1); in ip6tunnel_print_opt()
441 print_string(PRINT_JSON, "flowinfo", NULL, flwinfo); in ip6tunnel_print_opt()
494 print_uint(PRINT_JSON, in ip6tunnel_print_opt()
498 print_uint(PRINT_JSON, "dport", NULL, ntohs(dport)); in ip6tunnel_print_opt()
499 print_bool(PRINT_JSON, "csum", NULL, in ip6tunnel_print_opt()
501 print_bool(PRINT_JSON, "csum6", NULL, in ip6tunnel_print_opt()
503 print_bool(PRINT_JSON, "remcsum", NULL, in ip6tunnel_print_opt()
Dlink_gre.c432 print_int(PRINT_JSON, "ttl", NULL, ttl); in gre_print_direct_opt()
444 print_string(PRINT_JSON, "tos", NULL, b1); in gre_print_direct_opt()
458 print_bool(PRINT_JSON, "pmtudisc", NULL, true); in gre_print_direct_opt()
540 print_uint(PRINT_JSON, in gre_print_opt()
544 print_uint(PRINT_JSON, "dport", NULL, ntohs(dport)); in gre_print_opt()
546 print_bool(PRINT_JSON, in gre_print_opt()
551 print_bool(PRINT_JSON, in gre_print_opt()
556 print_bool(PRINT_JSON, in gre_print_opt()
Dlink_gre6.c457 print_int(PRINT_JSON, "ttl", NULL, ttl); in gre_print_opt()
485 print_string(PRINT_JSON, "flowlabel", NULL, b1); in gre_print_opt()
504 print_string(PRINT_JSON, "tclass", NULL, b1); in gre_print_opt()
580 print_uint(PRINT_JSON, in gre_print_opt()
584 print_uint(PRINT_JSON, "dport", NULL, ntohs(dport)); in gre_print_opt()
585 print_bool(PRINT_JSON, "csum", NULL, in gre_print_opt()
587 print_bool(PRINT_JSON, "csum6", NULL, in gre_print_opt()
589 print_bool(PRINT_JSON, "remcsum", NULL, in gre_print_opt()
Diplink_vlan.c176 open_json_array(PRINT_JSON, name_json); in vlan_print_map()
185 print_uint(PRINT_JSON, "from", NULL, m->from); in vlan_print_map()
186 print_uint(PRINT_JSON, "to", NULL, m->to); in vlan_print_map()
193 close_json_array(PRINT_JSON, NULL); in vlan_print_map()
Diplink_geneve.c275 print_0xhex(PRINT_JSON, "tos", "%#x", tos); in geneve_print_opt()
309 print_bool(PRINT_JSON, in geneve_print_opt()
322 print_bool(PRINT_JSON, in geneve_print_opt()
335 print_bool(PRINT_JSON, in geneve_print_opt()
Diplink_macvlan.c233 open_json_array(PRINT_JSON, "macaddr_data"); in macvlan_print_opt()
245 print_string(PRINT_JSON, NULL, NULL, b1); in macvlan_print_opt()
251 close_json_array(PRINT_JSON, NULL); in macvlan_print_opt()
Diplink_ipoib.c100 print_string(PRINT_JSON, "key", NULL, b1); in ipoib_print_opt()
127 print_string(PRINT_JSON, "umcast", NULL, b1); in ipoib_print_opt()
Diplink_vxlan.c484 print_uint(PRINT_JSON, "low", NULL, ntohs(r->low)); in vxlan_print_opt()
485 print_uint(PRINT_JSON, "high", NULL, ntohs(r->high)); in vxlan_print_opt()
502 print_bool(PRINT_JSON, "learning", NULL, learning); in vxlan_print_opt()
522 print_0xhex(PRINT_JSON, "tos", "%#x", tos); in vxlan_print_opt()
537 print_int(PRINT_JSON, "ttl", NULL, ttl); in vxlan_print_opt()
Diplink_bridge_slave.c70 print_bool(PRINT_JSON, flag, NULL, val); in _print_onoff()
84 print_string(PRINT_JSON, json_attr, NULL, b1); in _print_hex()
Diplink_bond.c438 open_json_array(PRINT_JSON, "arp_ip_target"); in bond_print_opt()
456 close_json_array(PRINT_JSON, NULL); in bond_print_opt()
465 print_null(PRINT_JSON, "arp_validate", NULL, NULL); in bond_print_opt()
Diplink_xdp.c95 print_uint(PRINT_JSON, "mode", NULL, mode); in xdp_dump_json()
Dipmacsec.c568 print_string(PRINT_JSON, desc, NULL, v); in print_flag()
1030 print_string(PRINT_JSON, "sci", NULL, b1); in macsec_print_opt()
1054 print_uint(PRINT_JSON, "icv_len", NULL, atoi(b2)); in macsec_print_opt()
1067 print_uint(PRINT_JSON, "encoding_sa", NULL, atoi(b2)); in macsec_print_opt()
/external/iproute2/lib/
Djson_print.c20 #define _IS_JSON_CONTEXT(type) ((type & PRINT_JSON || type & PRINT_ANY) && _jw)
56 if (_IS_JSON_CONTEXT(PRINT_JSON)) { in open_json_object()
65 if (_IS_JSON_CONTEXT(PRINT_JSON)) in close_json_object()
177 print_string(PRINT_JSON, key, NULL, b1); in print_color_0xhex()
Dbpf.c204 print_uint(PRINT_JSON, "jited", NULL, jited); in bpf_dump_prog_info()
/external/iproute2/include/
Djson_print.h28 PRINT_JSON = 2, enumerator