Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | | /* json-c wrapper |
3 | | * Copyright (C) 2015 Cumulus Networks, Inc. |
4 | | */ |
5 | | |
6 | | #ifndef _QUAGGA_JSON_H |
7 | | #define _QUAGGA_JSON_H |
8 | | |
9 | | #ifdef __cplusplus |
10 | | extern "C" { |
11 | | #endif |
12 | | |
13 | | #include "command.h" |
14 | | #include "printfrr.h" |
15 | | #include <json-c/json.h> |
16 | | |
17 | | /* |
18 | | * FRR style JSON iteration. |
19 | | * Usage: JSON_FOREACH(...) { ... } |
20 | | */ |
21 | | #define JSON_FOREACH(jo, joi, join) \ |
22 | | /* struct json_object *jo; */ \ |
23 | | /* struct json_object_iterator joi; */ \ |
24 | | /* struct json_object_iterator join; */ \ |
25 | | for ((joi) = json_object_iter_begin((jo)), \ |
26 | | (join) = json_object_iter_end((jo)); \ |
27 | | json_object_iter_equal(&(joi), &(join)) == 0; \ |
28 | | json_object_iter_next(&(joi))) |
29 | | |
30 | | #define JSON_OBJECT_NEW_ARRAY(json_func, fields, n) \ |
31 | | ({ \ |
32 | | struct json_object *_json_array = json_object_new_array(); \ |
33 | | for (int _i = 0; _i < (n); _i++) \ |
34 | | json_object_array_add(_json_array, \ |
35 | | (json_func)((fields)[_i])); \ |
36 | | (_json_array); \ |
37 | | }) |
38 | | |
39 | | extern bool use_json(const int argc, struct cmd_token *argv[]); |
40 | | extern void json_object_string_add(struct json_object *obj, const char *key, |
41 | | const char *s); |
42 | | extern void json_object_int_add(struct json_object *obj, const char *key, |
43 | | int64_t i); |
44 | | void json_object_boolean_add(struct json_object *obj, const char *key, |
45 | | bool val); |
46 | | |
47 | | extern void json_object_double_add(struct json_object *obj, const char *key, |
48 | | double i); |
49 | | extern void json_object_boolean_false_add(struct json_object *obj, |
50 | | const char *key); |
51 | | extern void json_object_boolean_true_add(struct json_object *obj, |
52 | | const char *key); |
53 | | extern struct json_object *json_object_lock(struct json_object *obj); |
54 | | extern void json_object_free(struct json_object *obj); |
55 | | extern void json_array_string_add(json_object *json, const char *str); |
56 | | |
57 | | /* printfrr => json helpers */ |
58 | | |
59 | | PRINTFRR(3, 0) |
60 | | extern void json_object_string_addv(struct json_object *obj, const char *key, |
61 | | const char *fmt, va_list args); |
62 | | PRINTFRR(3, 4) |
63 | | static inline void json_object_string_addf(struct json_object *obj, |
64 | | const char *key, const char *fmt, |
65 | | ...) |
66 | 0 | { |
67 | 0 | va_list args; |
68 | |
|
69 | 0 | va_start(args, fmt); |
70 | 0 | json_object_string_addv(obj, key, fmt, args); |
71 | 0 | va_end(args); |
72 | 0 | } Unexecuted instantiation: ospf_main.c:json_object_string_addf Unexecuted instantiation: ospf_bfd.c:json_object_string_addf Unexecuted instantiation: ospf_dump.c:json_object_string_addf Unexecuted instantiation: ospf_dump_api.c:json_object_string_addf Unexecuted instantiation: ospf_interface.c:json_object_string_addf Unexecuted instantiation: ospf_lsa.c:json_object_string_addf Unexecuted instantiation: ospf_lsdb.c:json_object_string_addf Unexecuted instantiation: ospf_neighbor.c:json_object_string_addf Unexecuted instantiation: ospf_network.c:json_object_string_addf Unexecuted instantiation: ospf_nsm.c:json_object_string_addf Unexecuted instantiation: ospf_opaque.c:json_object_string_addf Unexecuted instantiation: ospf_packet.c:json_object_string_addf Unexecuted instantiation: ospf_ri.c:json_object_string_addf Unexecuted instantiation: ospf_routemap.c:json_object_string_addf Unexecuted instantiation: ospf_spf.c:json_object_string_addf Unexecuted instantiation: ospf_ti_lfa.c:json_object_string_addf Unexecuted instantiation: ospf_sr.c:json_object_string_addf Unexecuted instantiation: ospf_te.c:json_object_string_addf Unexecuted instantiation: ospf_vty.c:json_object_string_addf Unexecuted instantiation: ospf_zebra.c:json_object_string_addf Unexecuted instantiation: ospfd.c:json_object_string_addf Unexecuted instantiation: ospf_gr_helper.c:json_object_string_addf Unexecuted instantiation: ospf_abr.c:json_object_string_addf Unexecuted instantiation: ospf_apiserver.c:json_object_string_addf Unexecuted instantiation: ospf_asbr.c:json_object_string_addf Unexecuted instantiation: ospf_ase.c:json_object_string_addf Unexecuted instantiation: ospf_ext.c:json_object_string_addf Unexecuted instantiation: ospf_flood.c:json_object_string_addf Unexecuted instantiation: ospf_gr.c:json_object_string_addf Unexecuted instantiation: ospf_ia.c:json_object_string_addf Unexecuted instantiation: ospf_ism.c:json_object_string_addf Unexecuted instantiation: ospf_ldp_sync.c:json_object_string_addf Unexecuted instantiation: ospf_route.c:json_object_string_addf Unexecuted instantiation: ospf_api.c:json_object_string_addf Unexecuted instantiation: affinitymap.c:json_object_string_addf Unexecuted instantiation: asn.c:json_object_string_addf Unexecuted instantiation: bfd.c:json_object_string_addf Unexecuted instantiation: command_match.c:json_object_string_addf Unexecuted instantiation: ferr.c:json_object_string_addf Unexecuted instantiation: filter.c:json_object_string_addf Unexecuted instantiation: hash.c:json_object_string_addf Unexecuted instantiation: json.c:json_object_string_addf Unexecuted instantiation: ldp_sync.c:json_object_string_addf Unexecuted instantiation: libfrr.c:json_object_string_addf Unexecuted instantiation: link_state.c:json_object_string_addf Unexecuted instantiation: log.c:json_object_string_addf Unexecuted instantiation: srv6.c:json_object_string_addf Unexecuted instantiation: nexthop.c:json_object_string_addf Unexecuted instantiation: nexthop_group.c:json_object_string_addf Unexecuted instantiation: northbound_cli.c:json_object_string_addf Unexecuted instantiation: plist.c:json_object_string_addf Unexecuted instantiation: routemap.c:json_object_string_addf Unexecuted instantiation: termtable.c:json_object_string_addf Unexecuted instantiation: vrf.c:json_object_string_addf Unexecuted instantiation: vty.c:json_object_string_addf Unexecuted instantiation: yang_wrappers.c:json_object_string_addf Unexecuted instantiation: zclient.c:json_object_string_addf Unexecuted instantiation: connected.c:json_object_string_addf Unexecuted instantiation: if_netlink.c:json_object_string_addf Unexecuted instantiation: interface.c:json_object_string_addf Unexecuted instantiation: ioctl.c:json_object_string_addf Unexecuted instantiation: kernel_netlink.c:json_object_string_addf Unexecuted instantiation: label_manager.c:json_object_string_addf Unexecuted instantiation: main.c:json_object_string_addf Unexecuted instantiation: netconf_netlink.c:json_object_string_addf Unexecuted instantiation: redistribute.c:json_object_string_addf Unexecuted instantiation: router-id.c:json_object_string_addf Unexecuted instantiation: rt_netlink.c:json_object_string_addf Unexecuted instantiation: rtadv.c:json_object_string_addf Unexecuted instantiation: rtread_netlink.c:json_object_string_addf Unexecuted instantiation: rule_netlink.c:json_object_string_addf Unexecuted instantiation: table_manager.c:json_object_string_addf Unexecuted instantiation: tc_netlink.c:json_object_string_addf Unexecuted instantiation: zapi_msg.c:json_object_string_addf Unexecuted instantiation: zebra_affinitymap.c:json_object_string_addf Unexecuted instantiation: zebra_dplane.c:json_object_string_addf Unexecuted instantiation: zebra_gr.c:json_object_string_addf Unexecuted instantiation: zebra_l2.c:json_object_string_addf Unexecuted instantiation: zebra_l2_bridge_if.c:json_object_string_addf Unexecuted instantiation: zebra_evpn.c:json_object_string_addf Unexecuted instantiation: zebra_evpn_mac.c:json_object_string_addf Unexecuted instantiation: zebra_evpn_neigh.c:json_object_string_addf Unexecuted instantiation: zebra_mlag.c:json_object_string_addf Unexecuted instantiation: zebra_mlag_vty.c:json_object_string_addf Unexecuted instantiation: zebra_mpls.c:json_object_string_addf Unexecuted instantiation: zebra_mpls_netlink.c:json_object_string_addf Unexecuted instantiation: zebra_mpls_null.c:json_object_string_addf Unexecuted instantiation: zebra_mpls_vty.c:json_object_string_addf Unexecuted instantiation: zebra_srv6.c:json_object_string_addf Unexecuted instantiation: zebra_srv6_vty.c:json_object_string_addf Unexecuted instantiation: zebra_mroute.c:json_object_string_addf Unexecuted instantiation: zebra_nb.c:json_object_string_addf Unexecuted instantiation: zebra_nb_config.c:json_object_string_addf Unexecuted instantiation: zebra_nb_rpcs.c:json_object_string_addf Unexecuted instantiation: zebra_nb_state.c:json_object_string_addf Unexecuted instantiation: zebra_netns_id.c:json_object_string_addf Unexecuted instantiation: zebra_netns_notify.c:json_object_string_addf Unexecuted instantiation: zebra_nhg.c:json_object_string_addf Unexecuted instantiation: zebra_ns.c:json_object_string_addf Unexecuted instantiation: zebra_opaque.c:json_object_string_addf Unexecuted instantiation: zebra_pbr.c:json_object_string_addf Unexecuted instantiation: zebra_ptm.c:json_object_string_addf Unexecuted instantiation: zebra_ptm_redistribute.c:json_object_string_addf Unexecuted instantiation: zebra_pw.c:json_object_string_addf Unexecuted instantiation: zebra_rib.c:json_object_string_addf Unexecuted instantiation: zebra_router.c:json_object_string_addf Unexecuted instantiation: zebra_rnh.c:json_object_string_addf Unexecuted instantiation: zebra_routemap.c:json_object_string_addf Unexecuted instantiation: zebra_routemap_nb_config.c:json_object_string_addf Unexecuted instantiation: zebra_script.c:json_object_string_addf Unexecuted instantiation: zebra_srte.c:json_object_string_addf Unexecuted instantiation: zebra_tc.c:json_object_string_addf Unexecuted instantiation: zebra_vrf.c:json_object_string_addf Unexecuted instantiation: zebra_vty.c:json_object_string_addf Unexecuted instantiation: zebra_vxlan.c:json_object_string_addf Unexecuted instantiation: zebra_vxlan_if.c:json_object_string_addf Unexecuted instantiation: zebra_evpn_mh.c:json_object_string_addf Unexecuted instantiation: zebra_neigh.c:json_object_string_addf Unexecuted instantiation: zserv.c:json_object_string_addf Unexecuted instantiation: debug_nl.c:json_object_string_addf Unexecuted instantiation: bgp_main.c:json_object_string_addf Unexecuted instantiation: bgp_attr.c:json_object_string_addf Unexecuted instantiation: bgp_attr_evpn.c:json_object_string_addf Unexecuted instantiation: bgp_clist.c:json_object_string_addf Unexecuted instantiation: bgp_community.c:json_object_string_addf Unexecuted instantiation: bgp_community_alias.c:json_object_string_addf Unexecuted instantiation: bgp_debug.c:json_object_string_addf Unexecuted instantiation: bgp_dump.c:json_object_string_addf Unexecuted instantiation: bgp_ecommunity.c:json_object_string_addf Unexecuted instantiation: bgp_evpn.c:json_object_string_addf Unexecuted instantiation: bgp_evpn_mh.c:json_object_string_addf Unexecuted instantiation: bgp_evpn_vty.c:json_object_string_addf Unexecuted instantiation: bgp_filter.c:json_object_string_addf Unexecuted instantiation: bgp_flowspec_vty.c:json_object_string_addf Unexecuted instantiation: bgp_fsm.c:json_object_string_addf Unexecuted instantiation: bgp_io.c:json_object_string_addf Unexecuted instantiation: bgp_keepalives.c:json_object_string_addf Unexecuted instantiation: bgp_labelpool.c:json_object_string_addf Unexecuted instantiation: bgp_lcommunity.c:json_object_string_addf Unexecuted instantiation: bgp_mac.c:json_object_string_addf Unexecuted instantiation: bgp_mpath.c:json_object_string_addf Unexecuted instantiation: bgp_mplsvpn.c:json_object_string_addf Unexecuted instantiation: bgp_network.c:json_object_string_addf Unexecuted instantiation: bgp_nexthop.c:json_object_string_addf Unexecuted instantiation: bgp_nht.c:json_object_string_addf Unexecuted instantiation: bgp_packet.c:json_object_string_addf Unexecuted instantiation: bgp_pbr.c:json_object_string_addf Unexecuted instantiation: bgp_rd.c:json_object_string_addf Unexecuted instantiation: bgp_regex.c:json_object_string_addf Unexecuted instantiation: bgp_route.c:json_object_string_addf Unexecuted instantiation: bgp_routemap.c:json_object_string_addf Unexecuted instantiation: bgp_routemap_nb.c:json_object_string_addf Unexecuted instantiation: bgp_routemap_nb_config.c:json_object_string_addf Unexecuted instantiation: bgp_table.c:json_object_string_addf Unexecuted instantiation: bgp_updgrp.c:json_object_string_addf Unexecuted instantiation: bgp_updgrp_adv.c:json_object_string_addf Unexecuted instantiation: bgp_updgrp_packet.c:json_object_string_addf Unexecuted instantiation: bgp_vpn.c:json_object_string_addf Unexecuted instantiation: bgp_vty.c:json_object_string_addf Unexecuted instantiation: bgp_zebra.c:json_object_string_addf Unexecuted instantiation: bgpd.c:json_object_string_addf Unexecuted instantiation: bgp_rfapi_cfg.c:json_object_string_addf Unexecuted instantiation: rfapi_import.c:json_object_string_addf Unexecuted instantiation: rfapi.c:json_object_string_addf Unexecuted instantiation: rfapi_ap.c:json_object_string_addf Unexecuted instantiation: rfapi_encap_tlv.c:json_object_string_addf Unexecuted instantiation: rfapi_nve_addr.c:json_object_string_addf Unexecuted instantiation: rfapi_monitor.c:json_object_string_addf Unexecuted instantiation: rfapi_rib.c:json_object_string_addf Unexecuted instantiation: rfapi_vty.c:json_object_string_addf Unexecuted instantiation: vnc_export_bgp.c:json_object_string_addf Unexecuted instantiation: vnc_export_table.c:json_object_string_addf Unexecuted instantiation: vnc_import_bgp.c:json_object_string_addf Unexecuted instantiation: vnc_zebra.c:json_object_string_addf Unexecuted instantiation: bgp_addpath.c:json_object_string_addf Unexecuted instantiation: bgp_advertise.c:json_object_string_addf Unexecuted instantiation: bgp_aspath.c:json_object_string_addf Unexecuted instantiation: bgp_bfd.c:json_object_string_addf Unexecuted instantiation: bgp_conditional_adv.c:json_object_string_addf Unexecuted instantiation: bgp_damp.c:json_object_string_addf Unexecuted instantiation: bgp_encap_tlv.c:json_object_string_addf Unexecuted instantiation: bgp_flowspec.c:json_object_string_addf Unexecuted instantiation: bgp_flowspec_util.c:json_object_string_addf Unexecuted instantiation: bgp_label.c:json_object_string_addf Unexecuted instantiation: bgp_open.c:json_object_string_addf Unexecuted instantiation: rfp_example.c:json_object_string_addf Unexecuted instantiation: pim_assert.c:json_object_string_addf Unexecuted instantiation: pim_bfd.c:json_object_string_addf Unexecuted instantiation: pim_bsm.c:json_object_string_addf Unexecuted instantiation: pim_cmd_common.c:json_object_string_addf Unexecuted instantiation: pim_hello.c:json_object_string_addf Unexecuted instantiation: pim_iface.c:json_object_string_addf Unexecuted instantiation: pim_ifchannel.c:json_object_string_addf Unexecuted instantiation: pim_instance.c:json_object_string_addf Unexecuted instantiation: pim_join.c:json_object_string_addf Unexecuted instantiation: pim_jp_agg.c:json_object_string_addf Unexecuted instantiation: pim_macro.c:json_object_string_addf Unexecuted instantiation: pim_mroute.c:json_object_string_addf Unexecuted instantiation: pim_msg.c:json_object_string_addf Unexecuted instantiation: pim_nb_config.c:json_object_string_addf Unexecuted instantiation: pim_neighbor.c:json_object_string_addf Unexecuted instantiation: pim_nht.c:json_object_string_addf Unexecuted instantiation: pim_oil.c:json_object_string_addf Unexecuted instantiation: pim_pim.c:json_object_string_addf Unexecuted instantiation: pim_rp.c:json_object_string_addf Unexecuted instantiation: pim_rpf.c:json_object_string_addf Unexecuted instantiation: pim_sock.c:json_object_string_addf Unexecuted instantiation: pim_ssm.c:json_object_string_addf Unexecuted instantiation: pim_ssmpingd.c:json_object_string_addf Unexecuted instantiation: pim_static.c:json_object_string_addf Unexecuted instantiation: pim_tib.c:json_object_string_addf Unexecuted instantiation: pim_tlv.c:json_object_string_addf Unexecuted instantiation: pim_upstream.c:json_object_string_addf Unexecuted instantiation: pim_util.c:json_object_string_addf Unexecuted instantiation: pim_vty.c:json_object_string_addf Unexecuted instantiation: pim_zebra.c:json_object_string_addf Unexecuted instantiation: pim_zlookup.c:json_object_string_addf Unexecuted instantiation: pim_vxlan.c:json_object_string_addf Unexecuted instantiation: pim_register.c:json_object_string_addf Unexecuted instantiation: pimd.c:json_object_string_addf Unexecuted instantiation: pim_cmd.c:json_object_string_addf Unexecuted instantiation: pim_igmp.c:json_object_string_addf Unexecuted instantiation: pim_igmp_mtrace.c:json_object_string_addf Unexecuted instantiation: pim_igmpv2.c:json_object_string_addf Unexecuted instantiation: pim_igmpv3.c:json_object_string_addf Unexecuted instantiation: pim_main.c:json_object_string_addf Unexecuted instantiation: pim_mlag.c:json_object_string_addf Unexecuted instantiation: pim_msdp.c:json_object_string_addf Unexecuted instantiation: pim_msdp_packet.c:json_object_string_addf Unexecuted instantiation: pim_msdp_socket.c:json_object_string_addf Unexecuted instantiation: pim_zpthread.c:json_object_string_addf |
73 | | |
74 | | PRINTFRR(2, 0) |
75 | | extern void json_array_string_addv(json_object *json, const char *fmt, |
76 | | va_list args); |
77 | | PRINTFRR(2, 3) |
78 | | static inline void json_array_string_addf(struct json_object *obj, |
79 | | const char *fmt, ...) |
80 | 0 | { |
81 | 0 | va_list args; |
82 | 0 |
|
83 | 0 | va_start(args, fmt); |
84 | 0 | json_array_string_addv(obj, fmt, args); |
85 | 0 | va_end(args); |
86 | 0 | } Unexecuted instantiation: ospf_main.c:json_array_string_addf Unexecuted instantiation: ospf_bfd.c:json_array_string_addf Unexecuted instantiation: ospf_dump.c:json_array_string_addf Unexecuted instantiation: ospf_dump_api.c:json_array_string_addf Unexecuted instantiation: ospf_interface.c:json_array_string_addf Unexecuted instantiation: ospf_lsa.c:json_array_string_addf Unexecuted instantiation: ospf_lsdb.c:json_array_string_addf Unexecuted instantiation: ospf_neighbor.c:json_array_string_addf Unexecuted instantiation: ospf_network.c:json_array_string_addf Unexecuted instantiation: ospf_nsm.c:json_array_string_addf Unexecuted instantiation: ospf_opaque.c:json_array_string_addf Unexecuted instantiation: ospf_packet.c:json_array_string_addf Unexecuted instantiation: ospf_ri.c:json_array_string_addf Unexecuted instantiation: ospf_routemap.c:json_array_string_addf Unexecuted instantiation: ospf_spf.c:json_array_string_addf Unexecuted instantiation: ospf_ti_lfa.c:json_array_string_addf Unexecuted instantiation: ospf_sr.c:json_array_string_addf Unexecuted instantiation: ospf_te.c:json_array_string_addf Unexecuted instantiation: ospf_vty.c:json_array_string_addf Unexecuted instantiation: ospf_zebra.c:json_array_string_addf Unexecuted instantiation: ospfd.c:json_array_string_addf Unexecuted instantiation: ospf_gr_helper.c:json_array_string_addf Unexecuted instantiation: ospf_abr.c:json_array_string_addf Unexecuted instantiation: ospf_apiserver.c:json_array_string_addf Unexecuted instantiation: ospf_asbr.c:json_array_string_addf Unexecuted instantiation: ospf_ase.c:json_array_string_addf Unexecuted instantiation: ospf_ext.c:json_array_string_addf Unexecuted instantiation: ospf_flood.c:json_array_string_addf Unexecuted instantiation: ospf_gr.c:json_array_string_addf Unexecuted instantiation: ospf_ia.c:json_array_string_addf Unexecuted instantiation: ospf_ism.c:json_array_string_addf Unexecuted instantiation: ospf_ldp_sync.c:json_array_string_addf Unexecuted instantiation: ospf_route.c:json_array_string_addf Unexecuted instantiation: ospf_api.c:json_array_string_addf Unexecuted instantiation: affinitymap.c:json_array_string_addf Unexecuted instantiation: asn.c:json_array_string_addf Unexecuted instantiation: bfd.c:json_array_string_addf Unexecuted instantiation: command_match.c:json_array_string_addf Unexecuted instantiation: ferr.c:json_array_string_addf Unexecuted instantiation: filter.c:json_array_string_addf Unexecuted instantiation: hash.c:json_array_string_addf Unexecuted instantiation: json.c:json_array_string_addf Unexecuted instantiation: ldp_sync.c:json_array_string_addf Unexecuted instantiation: libfrr.c:json_array_string_addf Unexecuted instantiation: link_state.c:json_array_string_addf Unexecuted instantiation: log.c:json_array_string_addf Unexecuted instantiation: srv6.c:json_array_string_addf Unexecuted instantiation: nexthop.c:json_array_string_addf Unexecuted instantiation: nexthop_group.c:json_array_string_addf Unexecuted instantiation: northbound_cli.c:json_array_string_addf Unexecuted instantiation: plist.c:json_array_string_addf Unexecuted instantiation: routemap.c:json_array_string_addf Unexecuted instantiation: termtable.c:json_array_string_addf Unexecuted instantiation: vrf.c:json_array_string_addf Unexecuted instantiation: vty.c:json_array_string_addf Unexecuted instantiation: yang_wrappers.c:json_array_string_addf Unexecuted instantiation: zclient.c:json_array_string_addf Unexecuted instantiation: connected.c:json_array_string_addf Unexecuted instantiation: if_netlink.c:json_array_string_addf Unexecuted instantiation: interface.c:json_array_string_addf Unexecuted instantiation: ioctl.c:json_array_string_addf Unexecuted instantiation: kernel_netlink.c:json_array_string_addf Unexecuted instantiation: label_manager.c:json_array_string_addf Unexecuted instantiation: main.c:json_array_string_addf Unexecuted instantiation: netconf_netlink.c:json_array_string_addf Unexecuted instantiation: redistribute.c:json_array_string_addf Unexecuted instantiation: router-id.c:json_array_string_addf Unexecuted instantiation: rt_netlink.c:json_array_string_addf Unexecuted instantiation: rtadv.c:json_array_string_addf Unexecuted instantiation: rtread_netlink.c:json_array_string_addf Unexecuted instantiation: rule_netlink.c:json_array_string_addf Unexecuted instantiation: table_manager.c:json_array_string_addf Unexecuted instantiation: tc_netlink.c:json_array_string_addf Unexecuted instantiation: zapi_msg.c:json_array_string_addf Unexecuted instantiation: zebra_affinitymap.c:json_array_string_addf Unexecuted instantiation: zebra_dplane.c:json_array_string_addf Unexecuted instantiation: zebra_gr.c:json_array_string_addf Unexecuted instantiation: zebra_l2.c:json_array_string_addf Unexecuted instantiation: zebra_l2_bridge_if.c:json_array_string_addf Unexecuted instantiation: zebra_evpn.c:json_array_string_addf Unexecuted instantiation: zebra_evpn_mac.c:json_array_string_addf Unexecuted instantiation: zebra_evpn_neigh.c:json_array_string_addf Unexecuted instantiation: zebra_mlag.c:json_array_string_addf Unexecuted instantiation: zebra_mlag_vty.c:json_array_string_addf Unexecuted instantiation: zebra_mpls.c:json_array_string_addf Unexecuted instantiation: zebra_mpls_netlink.c:json_array_string_addf Unexecuted instantiation: zebra_mpls_null.c:json_array_string_addf Unexecuted instantiation: zebra_mpls_vty.c:json_array_string_addf Unexecuted instantiation: zebra_srv6.c:json_array_string_addf Unexecuted instantiation: zebra_srv6_vty.c:json_array_string_addf Unexecuted instantiation: zebra_mroute.c:json_array_string_addf Unexecuted instantiation: zebra_nb.c:json_array_string_addf Unexecuted instantiation: zebra_nb_config.c:json_array_string_addf Unexecuted instantiation: zebra_nb_rpcs.c:json_array_string_addf Unexecuted instantiation: zebra_nb_state.c:json_array_string_addf Unexecuted instantiation: zebra_netns_id.c:json_array_string_addf Unexecuted instantiation: zebra_netns_notify.c:json_array_string_addf Unexecuted instantiation: zebra_nhg.c:json_array_string_addf Unexecuted instantiation: zebra_ns.c:json_array_string_addf Unexecuted instantiation: zebra_opaque.c:json_array_string_addf Unexecuted instantiation: zebra_pbr.c:json_array_string_addf Unexecuted instantiation: zebra_ptm.c:json_array_string_addf Unexecuted instantiation: zebra_ptm_redistribute.c:json_array_string_addf Unexecuted instantiation: zebra_pw.c:json_array_string_addf Unexecuted instantiation: zebra_rib.c:json_array_string_addf Unexecuted instantiation: zebra_router.c:json_array_string_addf Unexecuted instantiation: zebra_rnh.c:json_array_string_addf Unexecuted instantiation: zebra_routemap.c:json_array_string_addf Unexecuted instantiation: zebra_routemap_nb_config.c:json_array_string_addf Unexecuted instantiation: zebra_script.c:json_array_string_addf Unexecuted instantiation: zebra_srte.c:json_array_string_addf Unexecuted instantiation: zebra_tc.c:json_array_string_addf Unexecuted instantiation: zebra_vrf.c:json_array_string_addf Unexecuted instantiation: zebra_vty.c:json_array_string_addf Unexecuted instantiation: zebra_vxlan.c:json_array_string_addf Unexecuted instantiation: zebra_vxlan_if.c:json_array_string_addf Unexecuted instantiation: zebra_evpn_mh.c:json_array_string_addf Unexecuted instantiation: zebra_neigh.c:json_array_string_addf Unexecuted instantiation: zserv.c:json_array_string_addf Unexecuted instantiation: debug_nl.c:json_array_string_addf Unexecuted instantiation: bgp_main.c:json_array_string_addf Unexecuted instantiation: bgp_attr.c:json_array_string_addf Unexecuted instantiation: bgp_attr_evpn.c:json_array_string_addf Unexecuted instantiation: bgp_clist.c:json_array_string_addf Unexecuted instantiation: bgp_community.c:json_array_string_addf Unexecuted instantiation: bgp_community_alias.c:json_array_string_addf Unexecuted instantiation: bgp_debug.c:json_array_string_addf Unexecuted instantiation: bgp_dump.c:json_array_string_addf Unexecuted instantiation: bgp_ecommunity.c:json_array_string_addf Unexecuted instantiation: bgp_evpn.c:json_array_string_addf Unexecuted instantiation: bgp_evpn_mh.c:json_array_string_addf Unexecuted instantiation: bgp_evpn_vty.c:json_array_string_addf Unexecuted instantiation: bgp_filter.c:json_array_string_addf Unexecuted instantiation: bgp_flowspec_vty.c:json_array_string_addf Unexecuted instantiation: bgp_fsm.c:json_array_string_addf Unexecuted instantiation: bgp_io.c:json_array_string_addf Unexecuted instantiation: bgp_keepalives.c:json_array_string_addf Unexecuted instantiation: bgp_labelpool.c:json_array_string_addf Unexecuted instantiation: bgp_lcommunity.c:json_array_string_addf Unexecuted instantiation: bgp_mac.c:json_array_string_addf Unexecuted instantiation: bgp_mpath.c:json_array_string_addf Unexecuted instantiation: bgp_mplsvpn.c:json_array_string_addf Unexecuted instantiation: bgp_network.c:json_array_string_addf Unexecuted instantiation: bgp_nexthop.c:json_array_string_addf Unexecuted instantiation: bgp_nht.c:json_array_string_addf Unexecuted instantiation: bgp_packet.c:json_array_string_addf Unexecuted instantiation: bgp_pbr.c:json_array_string_addf Unexecuted instantiation: bgp_rd.c:json_array_string_addf Unexecuted instantiation: bgp_regex.c:json_array_string_addf Unexecuted instantiation: bgp_route.c:json_array_string_addf Unexecuted instantiation: bgp_routemap.c:json_array_string_addf Unexecuted instantiation: bgp_routemap_nb.c:json_array_string_addf Unexecuted instantiation: bgp_routemap_nb_config.c:json_array_string_addf Unexecuted instantiation: bgp_table.c:json_array_string_addf Unexecuted instantiation: bgp_updgrp.c:json_array_string_addf Unexecuted instantiation: bgp_updgrp_adv.c:json_array_string_addf Unexecuted instantiation: bgp_updgrp_packet.c:json_array_string_addf Unexecuted instantiation: bgp_vpn.c:json_array_string_addf Unexecuted instantiation: bgp_vty.c:json_array_string_addf Unexecuted instantiation: bgp_zebra.c:json_array_string_addf Unexecuted instantiation: bgpd.c:json_array_string_addf Unexecuted instantiation: bgp_rfapi_cfg.c:json_array_string_addf Unexecuted instantiation: rfapi_import.c:json_array_string_addf Unexecuted instantiation: rfapi.c:json_array_string_addf Unexecuted instantiation: rfapi_ap.c:json_array_string_addf Unexecuted instantiation: rfapi_encap_tlv.c:json_array_string_addf Unexecuted instantiation: rfapi_nve_addr.c:json_array_string_addf Unexecuted instantiation: rfapi_monitor.c:json_array_string_addf Unexecuted instantiation: rfapi_rib.c:json_array_string_addf Unexecuted instantiation: rfapi_vty.c:json_array_string_addf Unexecuted instantiation: vnc_export_bgp.c:json_array_string_addf Unexecuted instantiation: vnc_export_table.c:json_array_string_addf Unexecuted instantiation: vnc_import_bgp.c:json_array_string_addf Unexecuted instantiation: vnc_zebra.c:json_array_string_addf Unexecuted instantiation: bgp_addpath.c:json_array_string_addf Unexecuted instantiation: bgp_advertise.c:json_array_string_addf Unexecuted instantiation: bgp_aspath.c:json_array_string_addf Unexecuted instantiation: bgp_bfd.c:json_array_string_addf Unexecuted instantiation: bgp_conditional_adv.c:json_array_string_addf Unexecuted instantiation: bgp_damp.c:json_array_string_addf Unexecuted instantiation: bgp_encap_tlv.c:json_array_string_addf Unexecuted instantiation: bgp_flowspec.c:json_array_string_addf Unexecuted instantiation: bgp_flowspec_util.c:json_array_string_addf Unexecuted instantiation: bgp_label.c:json_array_string_addf Unexecuted instantiation: bgp_open.c:json_array_string_addf Unexecuted instantiation: rfp_example.c:json_array_string_addf Unexecuted instantiation: pim_assert.c:json_array_string_addf Unexecuted instantiation: pim_bfd.c:json_array_string_addf Unexecuted instantiation: pim_bsm.c:json_array_string_addf Unexecuted instantiation: pim_cmd_common.c:json_array_string_addf Unexecuted instantiation: pim_hello.c:json_array_string_addf Unexecuted instantiation: pim_iface.c:json_array_string_addf Unexecuted instantiation: pim_ifchannel.c:json_array_string_addf Unexecuted instantiation: pim_instance.c:json_array_string_addf Unexecuted instantiation: pim_join.c:json_array_string_addf Unexecuted instantiation: pim_jp_agg.c:json_array_string_addf Unexecuted instantiation: pim_macro.c:json_array_string_addf Unexecuted instantiation: pim_mroute.c:json_array_string_addf Unexecuted instantiation: pim_msg.c:json_array_string_addf Unexecuted instantiation: pim_nb_config.c:json_array_string_addf Unexecuted instantiation: pim_neighbor.c:json_array_string_addf Unexecuted instantiation: pim_nht.c:json_array_string_addf Unexecuted instantiation: pim_oil.c:json_array_string_addf Unexecuted instantiation: pim_pim.c:json_array_string_addf Unexecuted instantiation: pim_rp.c:json_array_string_addf Unexecuted instantiation: pim_rpf.c:json_array_string_addf Unexecuted instantiation: pim_sock.c:json_array_string_addf Unexecuted instantiation: pim_ssm.c:json_array_string_addf Unexecuted instantiation: pim_ssmpingd.c:json_array_string_addf Unexecuted instantiation: pim_static.c:json_array_string_addf Unexecuted instantiation: pim_tib.c:json_array_string_addf Unexecuted instantiation: pim_tlv.c:json_array_string_addf Unexecuted instantiation: pim_upstream.c:json_array_string_addf Unexecuted instantiation: pim_util.c:json_array_string_addf Unexecuted instantiation: pim_vty.c:json_array_string_addf Unexecuted instantiation: pim_zebra.c:json_array_string_addf Unexecuted instantiation: pim_zlookup.c:json_array_string_addf Unexecuted instantiation: pim_vxlan.c:json_array_string_addf Unexecuted instantiation: pim_register.c:json_array_string_addf Unexecuted instantiation: pimd.c:json_array_string_addf Unexecuted instantiation: pim_cmd.c:json_array_string_addf Unexecuted instantiation: pim_igmp.c:json_array_string_addf Unexecuted instantiation: pim_igmp_mtrace.c:json_array_string_addf Unexecuted instantiation: pim_igmpv2.c:json_array_string_addf Unexecuted instantiation: pim_igmpv3.c:json_array_string_addf Unexecuted instantiation: pim_main.c:json_array_string_addf Unexecuted instantiation: pim_mlag.c:json_array_string_addf Unexecuted instantiation: pim_msdp.c:json_array_string_addf Unexecuted instantiation: pim_msdp_packet.c:json_array_string_addf Unexecuted instantiation: pim_msdp_socket.c:json_array_string_addf Unexecuted instantiation: pim_zpthread.c:json_array_string_addf |
87 | | |
88 | | PRINTFRR(1, 0) |
89 | | extern struct json_object *json_object_new_stringv(const char *fmt, |
90 | | va_list args); |
91 | | PRINTFRR(1, 2) |
92 | | static inline struct json_object *json_object_new_stringf(const char *fmt, ...) |
93 | 0 | { |
94 | 0 | struct json_object *ret; |
95 | 0 | va_list args; |
96 | |
|
97 | 0 | va_start(args, fmt); |
98 | 0 | ret = json_object_new_stringv(fmt, args); |
99 | 0 | va_end(args); |
100 | |
|
101 | 0 | return ret; |
102 | 0 | } Unexecuted instantiation: ospf_main.c:json_object_new_stringf Unexecuted instantiation: ospf_bfd.c:json_object_new_stringf Unexecuted instantiation: ospf_dump.c:json_object_new_stringf Unexecuted instantiation: ospf_dump_api.c:json_object_new_stringf Unexecuted instantiation: ospf_interface.c:json_object_new_stringf Unexecuted instantiation: ospf_lsa.c:json_object_new_stringf Unexecuted instantiation: ospf_lsdb.c:json_object_new_stringf Unexecuted instantiation: ospf_neighbor.c:json_object_new_stringf Unexecuted instantiation: ospf_network.c:json_object_new_stringf Unexecuted instantiation: ospf_nsm.c:json_object_new_stringf Unexecuted instantiation: ospf_opaque.c:json_object_new_stringf Unexecuted instantiation: ospf_packet.c:json_object_new_stringf Unexecuted instantiation: ospf_ri.c:json_object_new_stringf Unexecuted instantiation: ospf_routemap.c:json_object_new_stringf Unexecuted instantiation: ospf_spf.c:json_object_new_stringf Unexecuted instantiation: ospf_ti_lfa.c:json_object_new_stringf Unexecuted instantiation: ospf_sr.c:json_object_new_stringf Unexecuted instantiation: ospf_te.c:json_object_new_stringf Unexecuted instantiation: ospf_vty.c:json_object_new_stringf Unexecuted instantiation: ospf_zebra.c:json_object_new_stringf Unexecuted instantiation: ospfd.c:json_object_new_stringf Unexecuted instantiation: ospf_gr_helper.c:json_object_new_stringf Unexecuted instantiation: ospf_abr.c:json_object_new_stringf Unexecuted instantiation: ospf_apiserver.c:json_object_new_stringf Unexecuted instantiation: ospf_asbr.c:json_object_new_stringf Unexecuted instantiation: ospf_ase.c:json_object_new_stringf Unexecuted instantiation: ospf_ext.c:json_object_new_stringf Unexecuted instantiation: ospf_flood.c:json_object_new_stringf Unexecuted instantiation: ospf_gr.c:json_object_new_stringf Unexecuted instantiation: ospf_ia.c:json_object_new_stringf Unexecuted instantiation: ospf_ism.c:json_object_new_stringf Unexecuted instantiation: ospf_ldp_sync.c:json_object_new_stringf Unexecuted instantiation: ospf_route.c:json_object_new_stringf Unexecuted instantiation: ospf_api.c:json_object_new_stringf Unexecuted instantiation: affinitymap.c:json_object_new_stringf Unexecuted instantiation: asn.c:json_object_new_stringf Unexecuted instantiation: bfd.c:json_object_new_stringf Unexecuted instantiation: command_match.c:json_object_new_stringf Unexecuted instantiation: ferr.c:json_object_new_stringf Unexecuted instantiation: filter.c:json_object_new_stringf Unexecuted instantiation: hash.c:json_object_new_stringf Unexecuted instantiation: json.c:json_object_new_stringf Unexecuted instantiation: ldp_sync.c:json_object_new_stringf Unexecuted instantiation: libfrr.c:json_object_new_stringf Unexecuted instantiation: link_state.c:json_object_new_stringf Unexecuted instantiation: log.c:json_object_new_stringf Unexecuted instantiation: srv6.c:json_object_new_stringf Unexecuted instantiation: nexthop.c:json_object_new_stringf Unexecuted instantiation: nexthop_group.c:json_object_new_stringf Unexecuted instantiation: northbound_cli.c:json_object_new_stringf Unexecuted instantiation: plist.c:json_object_new_stringf Unexecuted instantiation: routemap.c:json_object_new_stringf Unexecuted instantiation: termtable.c:json_object_new_stringf Unexecuted instantiation: vrf.c:json_object_new_stringf Unexecuted instantiation: vty.c:json_object_new_stringf Unexecuted instantiation: yang_wrappers.c:json_object_new_stringf Unexecuted instantiation: zclient.c:json_object_new_stringf Unexecuted instantiation: connected.c:json_object_new_stringf Unexecuted instantiation: if_netlink.c:json_object_new_stringf Unexecuted instantiation: interface.c:json_object_new_stringf Unexecuted instantiation: ioctl.c:json_object_new_stringf Unexecuted instantiation: kernel_netlink.c:json_object_new_stringf Unexecuted instantiation: label_manager.c:json_object_new_stringf Unexecuted instantiation: main.c:json_object_new_stringf Unexecuted instantiation: netconf_netlink.c:json_object_new_stringf Unexecuted instantiation: redistribute.c:json_object_new_stringf Unexecuted instantiation: router-id.c:json_object_new_stringf Unexecuted instantiation: rt_netlink.c:json_object_new_stringf Unexecuted instantiation: rtadv.c:json_object_new_stringf Unexecuted instantiation: rtread_netlink.c:json_object_new_stringf Unexecuted instantiation: rule_netlink.c:json_object_new_stringf Unexecuted instantiation: table_manager.c:json_object_new_stringf Unexecuted instantiation: tc_netlink.c:json_object_new_stringf Unexecuted instantiation: zapi_msg.c:json_object_new_stringf Unexecuted instantiation: zebra_affinitymap.c:json_object_new_stringf Unexecuted instantiation: zebra_dplane.c:json_object_new_stringf Unexecuted instantiation: zebra_gr.c:json_object_new_stringf Unexecuted instantiation: zebra_l2.c:json_object_new_stringf Unexecuted instantiation: zebra_l2_bridge_if.c:json_object_new_stringf Unexecuted instantiation: zebra_evpn.c:json_object_new_stringf Unexecuted instantiation: zebra_evpn_mac.c:json_object_new_stringf Unexecuted instantiation: zebra_evpn_neigh.c:json_object_new_stringf Unexecuted instantiation: zebra_mlag.c:json_object_new_stringf Unexecuted instantiation: zebra_mlag_vty.c:json_object_new_stringf Unexecuted instantiation: zebra_mpls.c:json_object_new_stringf Unexecuted instantiation: zebra_mpls_netlink.c:json_object_new_stringf Unexecuted instantiation: zebra_mpls_null.c:json_object_new_stringf Unexecuted instantiation: zebra_mpls_vty.c:json_object_new_stringf Unexecuted instantiation: zebra_srv6.c:json_object_new_stringf Unexecuted instantiation: zebra_srv6_vty.c:json_object_new_stringf Unexecuted instantiation: zebra_mroute.c:json_object_new_stringf Unexecuted instantiation: zebra_nb.c:json_object_new_stringf Unexecuted instantiation: zebra_nb_config.c:json_object_new_stringf Unexecuted instantiation: zebra_nb_rpcs.c:json_object_new_stringf Unexecuted instantiation: zebra_nb_state.c:json_object_new_stringf Unexecuted instantiation: zebra_netns_id.c:json_object_new_stringf Unexecuted instantiation: zebra_netns_notify.c:json_object_new_stringf Unexecuted instantiation: zebra_nhg.c:json_object_new_stringf Unexecuted instantiation: zebra_ns.c:json_object_new_stringf Unexecuted instantiation: zebra_opaque.c:json_object_new_stringf Unexecuted instantiation: zebra_pbr.c:json_object_new_stringf Unexecuted instantiation: zebra_ptm.c:json_object_new_stringf Unexecuted instantiation: zebra_ptm_redistribute.c:json_object_new_stringf Unexecuted instantiation: zebra_pw.c:json_object_new_stringf Unexecuted instantiation: zebra_rib.c:json_object_new_stringf Unexecuted instantiation: zebra_router.c:json_object_new_stringf Unexecuted instantiation: zebra_rnh.c:json_object_new_stringf Unexecuted instantiation: zebra_routemap.c:json_object_new_stringf Unexecuted instantiation: zebra_routemap_nb_config.c:json_object_new_stringf Unexecuted instantiation: zebra_script.c:json_object_new_stringf Unexecuted instantiation: zebra_srte.c:json_object_new_stringf Unexecuted instantiation: zebra_tc.c:json_object_new_stringf Unexecuted instantiation: zebra_vrf.c:json_object_new_stringf Unexecuted instantiation: zebra_vty.c:json_object_new_stringf Unexecuted instantiation: zebra_vxlan.c:json_object_new_stringf Unexecuted instantiation: zebra_vxlan_if.c:json_object_new_stringf Unexecuted instantiation: zebra_evpn_mh.c:json_object_new_stringf Unexecuted instantiation: zebra_neigh.c:json_object_new_stringf Unexecuted instantiation: zserv.c:json_object_new_stringf Unexecuted instantiation: debug_nl.c:json_object_new_stringf Unexecuted instantiation: bgp_main.c:json_object_new_stringf Unexecuted instantiation: bgp_attr.c:json_object_new_stringf Unexecuted instantiation: bgp_attr_evpn.c:json_object_new_stringf Unexecuted instantiation: bgp_clist.c:json_object_new_stringf Unexecuted instantiation: bgp_community.c:json_object_new_stringf Unexecuted instantiation: bgp_community_alias.c:json_object_new_stringf Unexecuted instantiation: bgp_debug.c:json_object_new_stringf Unexecuted instantiation: bgp_dump.c:json_object_new_stringf Unexecuted instantiation: bgp_ecommunity.c:json_object_new_stringf Unexecuted instantiation: bgp_evpn.c:json_object_new_stringf Unexecuted instantiation: bgp_evpn_mh.c:json_object_new_stringf Unexecuted instantiation: bgp_evpn_vty.c:json_object_new_stringf Unexecuted instantiation: bgp_filter.c:json_object_new_stringf Unexecuted instantiation: bgp_flowspec_vty.c:json_object_new_stringf Unexecuted instantiation: bgp_fsm.c:json_object_new_stringf Unexecuted instantiation: bgp_io.c:json_object_new_stringf Unexecuted instantiation: bgp_keepalives.c:json_object_new_stringf Unexecuted instantiation: bgp_labelpool.c:json_object_new_stringf Unexecuted instantiation: bgp_lcommunity.c:json_object_new_stringf Unexecuted instantiation: bgp_mac.c:json_object_new_stringf Unexecuted instantiation: bgp_mpath.c:json_object_new_stringf Unexecuted instantiation: bgp_mplsvpn.c:json_object_new_stringf Unexecuted instantiation: bgp_network.c:json_object_new_stringf Unexecuted instantiation: bgp_nexthop.c:json_object_new_stringf Unexecuted instantiation: bgp_nht.c:json_object_new_stringf Unexecuted instantiation: bgp_packet.c:json_object_new_stringf Unexecuted instantiation: bgp_pbr.c:json_object_new_stringf Unexecuted instantiation: bgp_rd.c:json_object_new_stringf Unexecuted instantiation: bgp_regex.c:json_object_new_stringf Unexecuted instantiation: bgp_route.c:json_object_new_stringf Unexecuted instantiation: bgp_routemap.c:json_object_new_stringf Unexecuted instantiation: bgp_routemap_nb.c:json_object_new_stringf Unexecuted instantiation: bgp_routemap_nb_config.c:json_object_new_stringf Unexecuted instantiation: bgp_table.c:json_object_new_stringf Unexecuted instantiation: bgp_updgrp.c:json_object_new_stringf Unexecuted instantiation: bgp_updgrp_adv.c:json_object_new_stringf Unexecuted instantiation: bgp_updgrp_packet.c:json_object_new_stringf Unexecuted instantiation: bgp_vpn.c:json_object_new_stringf Unexecuted instantiation: bgp_vty.c:json_object_new_stringf Unexecuted instantiation: bgp_zebra.c:json_object_new_stringf Unexecuted instantiation: bgpd.c:json_object_new_stringf Unexecuted instantiation: bgp_rfapi_cfg.c:json_object_new_stringf Unexecuted instantiation: rfapi_import.c:json_object_new_stringf Unexecuted instantiation: rfapi.c:json_object_new_stringf Unexecuted instantiation: rfapi_ap.c:json_object_new_stringf Unexecuted instantiation: rfapi_encap_tlv.c:json_object_new_stringf Unexecuted instantiation: rfapi_nve_addr.c:json_object_new_stringf Unexecuted instantiation: rfapi_monitor.c:json_object_new_stringf Unexecuted instantiation: rfapi_rib.c:json_object_new_stringf Unexecuted instantiation: rfapi_vty.c:json_object_new_stringf Unexecuted instantiation: vnc_export_bgp.c:json_object_new_stringf Unexecuted instantiation: vnc_export_table.c:json_object_new_stringf Unexecuted instantiation: vnc_import_bgp.c:json_object_new_stringf Unexecuted instantiation: vnc_zebra.c:json_object_new_stringf Unexecuted instantiation: bgp_addpath.c:json_object_new_stringf Unexecuted instantiation: bgp_advertise.c:json_object_new_stringf Unexecuted instantiation: bgp_aspath.c:json_object_new_stringf Unexecuted instantiation: bgp_bfd.c:json_object_new_stringf Unexecuted instantiation: bgp_conditional_adv.c:json_object_new_stringf Unexecuted instantiation: bgp_damp.c:json_object_new_stringf Unexecuted instantiation: bgp_encap_tlv.c:json_object_new_stringf Unexecuted instantiation: bgp_flowspec.c:json_object_new_stringf Unexecuted instantiation: bgp_flowspec_util.c:json_object_new_stringf Unexecuted instantiation: bgp_label.c:json_object_new_stringf Unexecuted instantiation: bgp_open.c:json_object_new_stringf Unexecuted instantiation: rfp_example.c:json_object_new_stringf Unexecuted instantiation: pim_assert.c:json_object_new_stringf Unexecuted instantiation: pim_bfd.c:json_object_new_stringf Unexecuted instantiation: pim_bsm.c:json_object_new_stringf Unexecuted instantiation: pim_cmd_common.c:json_object_new_stringf Unexecuted instantiation: pim_hello.c:json_object_new_stringf Unexecuted instantiation: pim_iface.c:json_object_new_stringf Unexecuted instantiation: pim_ifchannel.c:json_object_new_stringf Unexecuted instantiation: pim_instance.c:json_object_new_stringf Unexecuted instantiation: pim_join.c:json_object_new_stringf Unexecuted instantiation: pim_jp_agg.c:json_object_new_stringf Unexecuted instantiation: pim_macro.c:json_object_new_stringf Unexecuted instantiation: pim_mroute.c:json_object_new_stringf Unexecuted instantiation: pim_msg.c:json_object_new_stringf Unexecuted instantiation: pim_nb_config.c:json_object_new_stringf Unexecuted instantiation: pim_neighbor.c:json_object_new_stringf Unexecuted instantiation: pim_nht.c:json_object_new_stringf Unexecuted instantiation: pim_oil.c:json_object_new_stringf Unexecuted instantiation: pim_pim.c:json_object_new_stringf Unexecuted instantiation: pim_rp.c:json_object_new_stringf Unexecuted instantiation: pim_rpf.c:json_object_new_stringf Unexecuted instantiation: pim_sock.c:json_object_new_stringf Unexecuted instantiation: pim_ssm.c:json_object_new_stringf Unexecuted instantiation: pim_ssmpingd.c:json_object_new_stringf Unexecuted instantiation: pim_static.c:json_object_new_stringf Unexecuted instantiation: pim_tib.c:json_object_new_stringf Unexecuted instantiation: pim_tlv.c:json_object_new_stringf Unexecuted instantiation: pim_upstream.c:json_object_new_stringf Unexecuted instantiation: pim_util.c:json_object_new_stringf Unexecuted instantiation: pim_vty.c:json_object_new_stringf Unexecuted instantiation: pim_zebra.c:json_object_new_stringf Unexecuted instantiation: pim_zlookup.c:json_object_new_stringf Unexecuted instantiation: pim_vxlan.c:json_object_new_stringf Unexecuted instantiation: pim_register.c:json_object_new_stringf Unexecuted instantiation: pimd.c:json_object_new_stringf Unexecuted instantiation: pim_cmd.c:json_object_new_stringf Unexecuted instantiation: pim_igmp.c:json_object_new_stringf Unexecuted instantiation: pim_igmp_mtrace.c:json_object_new_stringf Unexecuted instantiation: pim_igmpv2.c:json_object_new_stringf Unexecuted instantiation: pim_igmpv3.c:json_object_new_stringf Unexecuted instantiation: pim_main.c:json_object_new_stringf Unexecuted instantiation: pim_mlag.c:json_object_new_stringf Unexecuted instantiation: pim_msdp.c:json_object_new_stringf Unexecuted instantiation: pim_msdp_packet.c:json_object_new_stringf Unexecuted instantiation: pim_msdp_socket.c:json_object_new_stringf Unexecuted instantiation: pim_zpthread.c:json_object_new_stringf |
103 | | |
104 | | /* NOTE: argument order differs! (due to varargs) |
105 | | * json_object_object_add(parent, key, child) |
106 | | * json_object_object_addv(parent, child, key, va) |
107 | | * json_object_object_addf(parent, child, key, ...) |
108 | | * (would be weird to have the child inbetween the format string and args) |
109 | | */ |
110 | | PRINTFRR(3, 0) |
111 | | extern void json_object_object_addv(struct json_object *parent, |
112 | | struct json_object *child, |
113 | | const char *keyfmt, va_list args); |
114 | | PRINTFRR(3, 4) |
115 | | static inline void json_object_object_addf(struct json_object *parent, |
116 | | struct json_object *child, |
117 | | const char *keyfmt, ...) |
118 | 0 | { |
119 | 0 | va_list args; |
120 | |
|
121 | 0 | va_start(args, keyfmt); |
122 | 0 | json_object_object_addv(parent, child, keyfmt, args); |
123 | | va_end(args); |
124 | 0 | } Unexecuted instantiation: ospf_main.c:json_object_object_addf Unexecuted instantiation: ospf_bfd.c:json_object_object_addf Unexecuted instantiation: ospf_dump.c:json_object_object_addf Unexecuted instantiation: ospf_dump_api.c:json_object_object_addf Unexecuted instantiation: ospf_interface.c:json_object_object_addf Unexecuted instantiation: ospf_lsa.c:json_object_object_addf Unexecuted instantiation: ospf_lsdb.c:json_object_object_addf Unexecuted instantiation: ospf_neighbor.c:json_object_object_addf Unexecuted instantiation: ospf_network.c:json_object_object_addf Unexecuted instantiation: ospf_nsm.c:json_object_object_addf Unexecuted instantiation: ospf_opaque.c:json_object_object_addf Unexecuted instantiation: ospf_packet.c:json_object_object_addf Unexecuted instantiation: ospf_ri.c:json_object_object_addf Unexecuted instantiation: ospf_routemap.c:json_object_object_addf Unexecuted instantiation: ospf_spf.c:json_object_object_addf Unexecuted instantiation: ospf_ti_lfa.c:json_object_object_addf Unexecuted instantiation: ospf_sr.c:json_object_object_addf Unexecuted instantiation: ospf_te.c:json_object_object_addf Unexecuted instantiation: ospf_vty.c:json_object_object_addf Unexecuted instantiation: ospf_zebra.c:json_object_object_addf Unexecuted instantiation: ospfd.c:json_object_object_addf Unexecuted instantiation: ospf_gr_helper.c:json_object_object_addf Unexecuted instantiation: ospf_abr.c:json_object_object_addf Unexecuted instantiation: ospf_apiserver.c:json_object_object_addf Unexecuted instantiation: ospf_asbr.c:json_object_object_addf Unexecuted instantiation: ospf_ase.c:json_object_object_addf Unexecuted instantiation: ospf_ext.c:json_object_object_addf Unexecuted instantiation: ospf_flood.c:json_object_object_addf Unexecuted instantiation: ospf_gr.c:json_object_object_addf Unexecuted instantiation: ospf_ia.c:json_object_object_addf Unexecuted instantiation: ospf_ism.c:json_object_object_addf Unexecuted instantiation: ospf_ldp_sync.c:json_object_object_addf Unexecuted instantiation: ospf_route.c:json_object_object_addf Unexecuted instantiation: ospf_api.c:json_object_object_addf Unexecuted instantiation: affinitymap.c:json_object_object_addf Unexecuted instantiation: asn.c:json_object_object_addf Unexecuted instantiation: bfd.c:json_object_object_addf Unexecuted instantiation: command_match.c:json_object_object_addf Unexecuted instantiation: ferr.c:json_object_object_addf Unexecuted instantiation: filter.c:json_object_object_addf Unexecuted instantiation: hash.c:json_object_object_addf Unexecuted instantiation: json.c:json_object_object_addf Unexecuted instantiation: ldp_sync.c:json_object_object_addf Unexecuted instantiation: libfrr.c:json_object_object_addf Unexecuted instantiation: link_state.c:json_object_object_addf Unexecuted instantiation: log.c:json_object_object_addf Unexecuted instantiation: srv6.c:json_object_object_addf Unexecuted instantiation: nexthop.c:json_object_object_addf Unexecuted instantiation: nexthop_group.c:json_object_object_addf Unexecuted instantiation: northbound_cli.c:json_object_object_addf Unexecuted instantiation: plist.c:json_object_object_addf Unexecuted instantiation: routemap.c:json_object_object_addf Unexecuted instantiation: termtable.c:json_object_object_addf Unexecuted instantiation: vrf.c:json_object_object_addf Unexecuted instantiation: vty.c:json_object_object_addf Unexecuted instantiation: yang_wrappers.c:json_object_object_addf Unexecuted instantiation: zclient.c:json_object_object_addf Unexecuted instantiation: connected.c:json_object_object_addf Unexecuted instantiation: if_netlink.c:json_object_object_addf Unexecuted instantiation: interface.c:json_object_object_addf Unexecuted instantiation: ioctl.c:json_object_object_addf Unexecuted instantiation: kernel_netlink.c:json_object_object_addf Unexecuted instantiation: label_manager.c:json_object_object_addf Unexecuted instantiation: main.c:json_object_object_addf Unexecuted instantiation: netconf_netlink.c:json_object_object_addf Unexecuted instantiation: redistribute.c:json_object_object_addf Unexecuted instantiation: router-id.c:json_object_object_addf Unexecuted instantiation: rt_netlink.c:json_object_object_addf Unexecuted instantiation: rtadv.c:json_object_object_addf Unexecuted instantiation: rtread_netlink.c:json_object_object_addf Unexecuted instantiation: rule_netlink.c:json_object_object_addf Unexecuted instantiation: table_manager.c:json_object_object_addf Unexecuted instantiation: tc_netlink.c:json_object_object_addf Unexecuted instantiation: zapi_msg.c:json_object_object_addf Unexecuted instantiation: zebra_affinitymap.c:json_object_object_addf Unexecuted instantiation: zebra_dplane.c:json_object_object_addf Unexecuted instantiation: zebra_gr.c:json_object_object_addf Unexecuted instantiation: zebra_l2.c:json_object_object_addf Unexecuted instantiation: zebra_l2_bridge_if.c:json_object_object_addf Unexecuted instantiation: zebra_evpn.c:json_object_object_addf Unexecuted instantiation: zebra_evpn_mac.c:json_object_object_addf Unexecuted instantiation: zebra_evpn_neigh.c:json_object_object_addf Unexecuted instantiation: zebra_mlag.c:json_object_object_addf Unexecuted instantiation: zebra_mlag_vty.c:json_object_object_addf Unexecuted instantiation: zebra_mpls.c:json_object_object_addf Unexecuted instantiation: zebra_mpls_netlink.c:json_object_object_addf Unexecuted instantiation: zebra_mpls_null.c:json_object_object_addf Unexecuted instantiation: zebra_mpls_vty.c:json_object_object_addf Unexecuted instantiation: zebra_srv6.c:json_object_object_addf Unexecuted instantiation: zebra_srv6_vty.c:json_object_object_addf Unexecuted instantiation: zebra_mroute.c:json_object_object_addf Unexecuted instantiation: zebra_nb.c:json_object_object_addf Unexecuted instantiation: zebra_nb_config.c:json_object_object_addf Unexecuted instantiation: zebra_nb_rpcs.c:json_object_object_addf Unexecuted instantiation: zebra_nb_state.c:json_object_object_addf Unexecuted instantiation: zebra_netns_id.c:json_object_object_addf Unexecuted instantiation: zebra_netns_notify.c:json_object_object_addf Unexecuted instantiation: zebra_nhg.c:json_object_object_addf Unexecuted instantiation: zebra_ns.c:json_object_object_addf Unexecuted instantiation: zebra_opaque.c:json_object_object_addf Unexecuted instantiation: zebra_pbr.c:json_object_object_addf Unexecuted instantiation: zebra_ptm.c:json_object_object_addf Unexecuted instantiation: zebra_ptm_redistribute.c:json_object_object_addf Unexecuted instantiation: zebra_pw.c:json_object_object_addf Unexecuted instantiation: zebra_rib.c:json_object_object_addf Unexecuted instantiation: zebra_router.c:json_object_object_addf Unexecuted instantiation: zebra_rnh.c:json_object_object_addf Unexecuted instantiation: zebra_routemap.c:json_object_object_addf Unexecuted instantiation: zebra_routemap_nb_config.c:json_object_object_addf Unexecuted instantiation: zebra_script.c:json_object_object_addf Unexecuted instantiation: zebra_srte.c:json_object_object_addf Unexecuted instantiation: zebra_tc.c:json_object_object_addf Unexecuted instantiation: zebra_vrf.c:json_object_object_addf Unexecuted instantiation: zebra_vty.c:json_object_object_addf Unexecuted instantiation: zebra_vxlan.c:json_object_object_addf Unexecuted instantiation: zebra_vxlan_if.c:json_object_object_addf Unexecuted instantiation: zebra_evpn_mh.c:json_object_object_addf Unexecuted instantiation: zebra_neigh.c:json_object_object_addf Unexecuted instantiation: zserv.c:json_object_object_addf Unexecuted instantiation: debug_nl.c:json_object_object_addf Unexecuted instantiation: bgp_main.c:json_object_object_addf Unexecuted instantiation: bgp_attr.c:json_object_object_addf Unexecuted instantiation: bgp_attr_evpn.c:json_object_object_addf Unexecuted instantiation: bgp_clist.c:json_object_object_addf Unexecuted instantiation: bgp_community.c:json_object_object_addf Unexecuted instantiation: bgp_community_alias.c:json_object_object_addf Unexecuted instantiation: bgp_debug.c:json_object_object_addf Unexecuted instantiation: bgp_dump.c:json_object_object_addf Unexecuted instantiation: bgp_ecommunity.c:json_object_object_addf Unexecuted instantiation: bgp_evpn.c:json_object_object_addf Unexecuted instantiation: bgp_evpn_mh.c:json_object_object_addf Unexecuted instantiation: bgp_evpn_vty.c:json_object_object_addf Unexecuted instantiation: bgp_filter.c:json_object_object_addf Unexecuted instantiation: bgp_flowspec_vty.c:json_object_object_addf Unexecuted instantiation: bgp_fsm.c:json_object_object_addf Unexecuted instantiation: bgp_io.c:json_object_object_addf Unexecuted instantiation: bgp_keepalives.c:json_object_object_addf Unexecuted instantiation: bgp_labelpool.c:json_object_object_addf Unexecuted instantiation: bgp_lcommunity.c:json_object_object_addf Unexecuted instantiation: bgp_mac.c:json_object_object_addf Unexecuted instantiation: bgp_mpath.c:json_object_object_addf Unexecuted instantiation: bgp_mplsvpn.c:json_object_object_addf Unexecuted instantiation: bgp_network.c:json_object_object_addf Unexecuted instantiation: bgp_nexthop.c:json_object_object_addf Unexecuted instantiation: bgp_nht.c:json_object_object_addf Unexecuted instantiation: bgp_packet.c:json_object_object_addf Unexecuted instantiation: bgp_pbr.c:json_object_object_addf Unexecuted instantiation: bgp_rd.c:json_object_object_addf Unexecuted instantiation: bgp_regex.c:json_object_object_addf Unexecuted instantiation: bgp_route.c:json_object_object_addf Unexecuted instantiation: bgp_routemap.c:json_object_object_addf Unexecuted instantiation: bgp_routemap_nb.c:json_object_object_addf Unexecuted instantiation: bgp_routemap_nb_config.c:json_object_object_addf Unexecuted instantiation: bgp_table.c:json_object_object_addf Unexecuted instantiation: bgp_updgrp.c:json_object_object_addf Unexecuted instantiation: bgp_updgrp_adv.c:json_object_object_addf Unexecuted instantiation: bgp_updgrp_packet.c:json_object_object_addf Unexecuted instantiation: bgp_vpn.c:json_object_object_addf Unexecuted instantiation: bgp_vty.c:json_object_object_addf Unexecuted instantiation: bgp_zebra.c:json_object_object_addf Unexecuted instantiation: bgpd.c:json_object_object_addf Unexecuted instantiation: bgp_rfapi_cfg.c:json_object_object_addf Unexecuted instantiation: rfapi_import.c:json_object_object_addf Unexecuted instantiation: rfapi.c:json_object_object_addf Unexecuted instantiation: rfapi_ap.c:json_object_object_addf Unexecuted instantiation: rfapi_encap_tlv.c:json_object_object_addf Unexecuted instantiation: rfapi_nve_addr.c:json_object_object_addf Unexecuted instantiation: rfapi_monitor.c:json_object_object_addf Unexecuted instantiation: rfapi_rib.c:json_object_object_addf Unexecuted instantiation: rfapi_vty.c:json_object_object_addf Unexecuted instantiation: vnc_export_bgp.c:json_object_object_addf Unexecuted instantiation: vnc_export_table.c:json_object_object_addf Unexecuted instantiation: vnc_import_bgp.c:json_object_object_addf Unexecuted instantiation: vnc_zebra.c:json_object_object_addf Unexecuted instantiation: bgp_addpath.c:json_object_object_addf Unexecuted instantiation: bgp_advertise.c:json_object_object_addf Unexecuted instantiation: bgp_aspath.c:json_object_object_addf Unexecuted instantiation: bgp_bfd.c:json_object_object_addf Unexecuted instantiation: bgp_conditional_adv.c:json_object_object_addf Unexecuted instantiation: bgp_damp.c:json_object_object_addf Unexecuted instantiation: bgp_encap_tlv.c:json_object_object_addf Unexecuted instantiation: bgp_flowspec.c:json_object_object_addf Unexecuted instantiation: bgp_flowspec_util.c:json_object_object_addf Unexecuted instantiation: bgp_label.c:json_object_object_addf Unexecuted instantiation: bgp_open.c:json_object_object_addf Unexecuted instantiation: rfp_example.c:json_object_object_addf Unexecuted instantiation: pim_assert.c:json_object_object_addf Unexecuted instantiation: pim_bfd.c:json_object_object_addf Unexecuted instantiation: pim_bsm.c:json_object_object_addf Unexecuted instantiation: pim_cmd_common.c:json_object_object_addf Unexecuted instantiation: pim_hello.c:json_object_object_addf Unexecuted instantiation: pim_iface.c:json_object_object_addf Unexecuted instantiation: pim_ifchannel.c:json_object_object_addf Unexecuted instantiation: pim_instance.c:json_object_object_addf Unexecuted instantiation: pim_join.c:json_object_object_addf Unexecuted instantiation: pim_jp_agg.c:json_object_object_addf Unexecuted instantiation: pim_macro.c:json_object_object_addf Unexecuted instantiation: pim_mroute.c:json_object_object_addf Unexecuted instantiation: pim_msg.c:json_object_object_addf Unexecuted instantiation: pim_nb_config.c:json_object_object_addf Unexecuted instantiation: pim_neighbor.c:json_object_object_addf Unexecuted instantiation: pim_nht.c:json_object_object_addf Unexecuted instantiation: pim_oil.c:json_object_object_addf Unexecuted instantiation: pim_pim.c:json_object_object_addf Unexecuted instantiation: pim_rp.c:json_object_object_addf Unexecuted instantiation: pim_rpf.c:json_object_object_addf Unexecuted instantiation: pim_sock.c:json_object_object_addf Unexecuted instantiation: pim_ssm.c:json_object_object_addf Unexecuted instantiation: pim_ssmpingd.c:json_object_object_addf Unexecuted instantiation: pim_static.c:json_object_object_addf Unexecuted instantiation: pim_tib.c:json_object_object_addf Unexecuted instantiation: pim_tlv.c:json_object_object_addf Unexecuted instantiation: pim_upstream.c:json_object_object_addf Unexecuted instantiation: pim_util.c:json_object_object_addf Unexecuted instantiation: pim_vty.c:json_object_object_addf Unexecuted instantiation: pim_zebra.c:json_object_object_addf Unexecuted instantiation: pim_zlookup.c:json_object_object_addf Unexecuted instantiation: pim_vxlan.c:json_object_object_addf Unexecuted instantiation: pim_register.c:json_object_object_addf Unexecuted instantiation: pimd.c:json_object_object_addf Unexecuted instantiation: pim_cmd.c:json_object_object_addf Unexecuted instantiation: pim_igmp.c:json_object_object_addf Unexecuted instantiation: pim_igmp_mtrace.c:json_object_object_addf Unexecuted instantiation: pim_igmpv2.c:json_object_object_addf Unexecuted instantiation: pim_igmpv3.c:json_object_object_addf Unexecuted instantiation: pim_main.c:json_object_object_addf Unexecuted instantiation: pim_mlag.c:json_object_object_addf Unexecuted instantiation: pim_msdp.c:json_object_object_addf Unexecuted instantiation: pim_msdp_packet.c:json_object_object_addf Unexecuted instantiation: pim_msdp_socket.c:json_object_object_addf Unexecuted instantiation: pim_zpthread.c:json_object_object_addf |
125 | | |
126 | | #define JSON_STR "JavaScript Object Notation\n" |
127 | | |
128 | | /* NOTE: json-c lib has following commit 316da85 which |
129 | | * handles escape of forward slash. |
130 | | * This allows prefix "20.0.14.0\/24":{ |
131 | | * to "20.0.14.0/24":{ some platforms do not have |
132 | | * latest copy of json-c where defining below macro. |
133 | | */ |
134 | | |
135 | | #ifndef JSON_C_TO_STRING_NOSLASHESCAPE |
136 | | |
137 | | /** |
138 | | * Don't escape forward slashes. |
139 | | */ |
140 | | #define JSON_C_TO_STRING_NOSLASHESCAPE (1<<4) |
141 | | #endif |
142 | | |
143 | | #ifdef __cplusplus |
144 | | } |
145 | | #endif |
146 | | |
147 | | #endif /* _QUAGGA_JSON_H */ |