// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) B.A.T.M.A.N. contributors: * * Alexander Sarmanow * * License-Filename: LICENSES/preferred/GPL-2.0 */ #include "main.h" #include "genl_json.h" static struct json_query_data batctl_json_query_neighbors = { .nlm_flags = NLM_F_DUMP, .cmd = BATADV_CMD_GET_NEIGHBORS, }; COMMAND_NAMED(JSON_MIF, neighbors_json, "nj", handle_json_query, COMMAND_FLAG_MESH_IFACE | COMMAND_FLAG_NETLINK, &batctl_json_query_neighbors, "");