monitor.h (bf1035b2ff5296c7c49e262152253ce29d87e82d) monitor.h (cf6f7e1d51090772d5ff7355aaf0fcff17f20d1a)
1/*
2 * net/tipc/monitor.h
3 *
4 * Copyright (c) 2015, Ericsson AB
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 22 unchanged lines hidden (view full) ---

31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef _TIPC_MONITOR_H
37#define _TIPC_MONITOR_H
38
1/*
2 * net/tipc/monitor.h
3 *
4 * Copyright (c) 2015, Ericsson AB
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 22 unchanged lines hidden (view full) ---

31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36#ifndef _TIPC_MONITOR_H
37#define _TIPC_MONITOR_H
38
39#include "netlink.h"
40
39/* struct tipc_mon_state: link instance's cache of monitor list and domain state
40 * @list_gen: current generation of this node's monitor list
41 * @gen: current generation of this node's local domain
42 * @peer_gen: most recent domain generation received from peer
43 * @acked_gen: most recent generation of self's domain acked by peer
44 * @monitoring: this peer endpoint should continuously monitored
45 * @probing: peer endpoint should be temporarily probed for potential loss
46 * @synched: domain record's generation has been synched with peer after reset

--- 19 unchanged lines hidden (view full) ---

66 struct tipc_mon_state *state, int bearer_id);
67void tipc_mon_get_state(struct net *net, u32 addr,
68 struct tipc_mon_state *state,
69 int bearer_id);
70void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
71
72int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
73int tipc_nl_monitor_get_threshold(struct net *net);
41/* struct tipc_mon_state: link instance's cache of monitor list and domain state
42 * @list_gen: current generation of this node's monitor list
43 * @gen: current generation of this node's local domain
44 * @peer_gen: most recent domain generation received from peer
45 * @acked_gen: most recent generation of self's domain acked by peer
46 * @monitoring: this peer endpoint should continuously monitored
47 * @probing: peer endpoint should be temporarily probed for potential loss
48 * @synched: domain record's generation has been synched with peer after reset

--- 19 unchanged lines hidden (view full) ---

68 struct tipc_mon_state *state, int bearer_id);
69void tipc_mon_get_state(struct net *net, u32 addr,
70 struct tipc_mon_state *state,
71 int bearer_id);
72void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
73
74int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
75int tipc_nl_monitor_get_threshold(struct net *net);
76int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg,
77 u32 bearer_id);
78int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg,
79 u32 bearer_id, u32 *prev_node);
74
75extern const int tipc_max_domain_size;
76#endif
80
81extern const int tipc_max_domain_size;
82#endif