Lines Matching full:peer
21 * struct ovpn_peer - the main remote peer object
22 * @ovpn: main openvpn instance this peer belongs to
27 * @vpn_addrs.ipv4: IPv4 assigned to peer on the tunnel
28 * @vpn_addrs.ipv6: IPv6 assigned to peer on the tunnel
29 * @hash_entry_id: entry in the peer ID hashtable
30 * @hash_entry_addr4: entry in the peer IPv4 hashtable
31 * @hash_entry_addr6: entry in the peer IPv6 hashtable
32 * @hash_entry_transp_addr: entry in the peer transport address hashtable
33 * @sock: the socket being used to talk to this peer
47 * @dst_cache: cache for dst_entry used to send to peer
48 * @bind: remote peer binding
52 * @keepalive_timeout: seconds after which an inactive peer is considered dead
53 * @keepalive_recv_exp: future timestamp when the peer should expire
55 * @vpn_stats: per-peer in-VPN TX/RX stats
56 * @link_stats: per-peer link/transport TX/RX stats
57 * @delete_reason: why peer was deleted (i.e. timeout, transport error, ..)
58 * @lock: protects binding to peer (bind) and keepalive* fields
60 * @rcu: used to free peer in an RCU safe way
121 * @peer: the peer whose counter should be increased
125 static inline bool ovpn_peer_hold(struct ovpn_peer *peer) in ovpn_peer_hold() argument
127 return kref_get_unless_zero(&peer->refcount); in ovpn_peer_hold()
134 * @peer: the peer whose counter should be decreased
136 static inline void ovpn_peer_put(struct ovpn_peer *peer) in ovpn_peer_put() argument
138 kref_put(&peer->refcount, ovpn_peer_release_kref); in ovpn_peer_put()
142 int ovpn_peer_add(struct ovpn_priv *ovpn, struct ovpn_peer *peer);
143 int ovpn_peer_del(struct ovpn_peer *peer, enum ovpn_del_peer_reason reason);
152 void ovpn_peer_hash_vpn_ip(struct ovpn_peer *peer);
154 struct ovpn_peer *peer);
156 void ovpn_peer_keepalive_set(struct ovpn_peer *peer, u32 interval, u32 timeout);
159 void ovpn_peer_endpoints_update(struct ovpn_peer *peer, struct sk_buff *skb);
160 int ovpn_peer_reset_sockaddr(struct ovpn_peer *peer,