aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/monitor.h
diff options
context:
space:
mode:
authorParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>2016-07-26 08:47:22 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-26 14:26:42 -0700
commitcf6f7e1d51090772d5ff7355aaf0fcff17f20d1a (patch)
treef80b57ee326824ceda895bab95b821eb14b9b9d1 /net/tipc/monitor.h
parenttipc: add a function to get the bearer name (diff)
downloadlinux-dev-cf6f7e1d51090772d5ff7355aaf0fcff17f20d1a.tar.xz
linux-dev-cf6f7e1d51090772d5ff7355aaf0fcff17f20d1a.zip
tipc: dump monitor attributes
In this commit, we dump the monitor attributes when queried. The link monitor attributes are separated into two kinds: 1. general attributes per bearer 2. specific attributes per node/peer This style resembles the socket attributes and the nametable publications per socket. Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/monitor.h')
-rw-r--r--net/tipc/monitor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/tipc/monitor.h b/net/tipc/monitor.h
index aedf62c60bd3..2a21b93e0d04 100644
--- a/net/tipc/monitor.h
+++ b/net/tipc/monitor.h
@@ -36,6 +36,8 @@
#ifndef _TIPC_MONITOR_H
#define _TIPC_MONITOR_H
+#include "netlink.h"
+
/* struct tipc_mon_state: link instance's cache of monitor list and domain state
* @list_gen: current generation of this node's monitor list
* @gen: current generation of this node's local domain
@@ -71,6 +73,10 @@ void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
int tipc_nl_monitor_get_threshold(struct net *net);
+int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg,
+ u32 bearer_id);
+int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg,
+ u32 bearer_id, u32 *prev_node);
extern const int tipc_max_domain_size;
#endif