- if (send_what & SIW_LINKS)
- ipc_print_links(&abuf);
- if (send_what & SIW_NEIGHBORS)
- ipc_print_neighbors(&abuf, false);
- if (send_what & SIW_TOPOLOGY)
- ipc_print_topology(&abuf);
- if (send_what & SIW_HNA)
- ipc_print_hna(&abuf);
- if (send_what & SIW_SGW)
- ipc_print_sgw(&abuf);
- if (send_what & SIW_MID)
- ipc_print_mid(&abuf);
- if (send_what & SIW_ROUTES)
- ipc_print_routes(&abuf);
- if (send_what & SIW_GATEWAYS)
- ipc_print_gateways(&abuf);
- if (send_what & SIW_CONFIG)
- ipc_print_config(&abuf);
- if (send_what & SIW_INTERFACES)
- ipc_print_interfaces(&abuf);
- if (send_what & SIW_2HOP)
- ipc_print_neighbors(&abuf, true);
- if (send_what & SIW_VERSION)
- ipc_print_version(&abuf);
- if (send_what & SIW_PLUGINS)
- ipc_print_plugins(&abuf);
+ if ((send_what & SIW_LINKS) && printer_functions.links)
+ (*printer_functions.links)(&abuf);
+ if ((send_what & SIW_NEIGHBORS) && printer_functions.neighbors)
+ (*printer_functions.neighbors)(&abuf, false);
+ if ((send_what & SIW_TOPOLOGY) && printer_functions.topology)
+ (*printer_functions.topology)(&abuf);
+ if ((send_what & SIW_HNA) && printer_functions.hna)
+ (*printer_functions.hna)(&abuf);
+ if ((send_what & SIW_SGW) && printer_functions.sgw)
+ (*printer_functions.sgw)(&abuf);
+ if ((send_what & SIW_MID) && printer_functions.mid)
+ (*printer_functions.mid)(&abuf);
+ if ((send_what & SIW_ROUTES) && printer_functions.routes)
+ (*printer_functions.routes)(&abuf);
+ if ((send_what & SIW_GATEWAYS) && printer_functions.gateways)
+ (*printer_functions.gateways)(&abuf);
+ if ((send_what & SIW_CONFIG) && printer_functions.config)
+ (*printer_functions.config)(&abuf);
+ if ((send_what & SIW_INTERFACES) && printer_functions.interfaces)
+ (*printer_functions.interfaces)(&abuf);
+ if ((send_what & SIW_2HOP) && printer_functions.neighbors)
+ (*printer_functions.neighbors)(&abuf, true);
+ if ((send_what & SIW_VERSION) && printer_functions.version)
+ (*printer_functions.version)(&abuf);
+ if ((send_what & SIW_PLUGINS) && printer_functions.plugins)
+ (*printer_functions.plugins)(&abuf);