ovpn_peer_keepalive_work(9)
π NAME π
okay bestie, this page is ovpn_peer_keepalive_work β run keepalive logic on each known peer. That's the whole vibe, periodt. We're in the Kernel API Manual with ovpn_peer_keepalive_work(9), and it's giving very important background-worker energy. β¨
β¨ SYNOPSIS β¨
the function signature is exactly this, no cap:
void ovpn_peer_keepalive_work (struct work_struct *work );
π ARGUMENTS π
workβ pointer to the work member of the related ovpn object. that's your pointer, bestie π«Ά
πΈ DESCRIPTION πΈ
Each peer has two timers (if configured):
- peer timeout β when no data is received for a certain interval, the peer is considered dead and it gets killed. π no cap, dead means dead.
- peer keepalive β when no data is sent to a certain peer for a certain interval, a special
'keepalive'packet is explicitly sent. π keeping the connection cute and alive.
This function iterates across the whole peer collection while checking the timers described above. So yeah, it lowkey does a full sweep of all the peers and gives those timers a vibe check. π
π SEE ALSO π
Kernel file first: ./drivers/net/ovpn/peer.c β then the whole function squad:
ovpn_peer_keepalive_set(9)ovpn_peer_keepalive_send(9)ovpn_peer_new(9)ovpn_peer_reset_sockaddr(9)ovpn_peer_endpoints_update(9)ovpn_peer_release_rcu(9)ovpn_peer_release(9)ovpn_peer_release_kref(9)ovpn_peer_skb_to_sockaddr(9)ovpn_nexthop_from_skb4(9)ovpn_nexthop_from_skb6(9)ovpn_peer_get_by_vpn_addr4(9)ovpn_peer_get_by_vpn_addr6(9)ovpn_peer_vpn_addr_conflict4(9)ovpn_peer_vpn_addr_conflict6(9)ovpn_peer_transp_match(9)ovpn_peer_get_by_transp_addr_p2p(9)ovpn_peer_get_by_transp_addr(9)ovpn_peer_get_by_id_p2p(9)ovpn_peer_get_by_id(9)ovpn_peer_get_by_dst(9)ovpn_nexthop_from_rt4(9)ovpn_nexthop_from_rt6(9)ovpn_peer_check_by_src(9)ovpn_peer_add_mp(9)ovpn_peer_add_p2p(9)ovpn_peer_add(9)ovpn_peer_del_mp(9)ovpn_peer_del_p2p(9)ovpn_peer_del(9)ovpn_peer_release_p2p(9)ovpn_peers_free(9)
source/version: ./drivers/net/ovpn Β· date: October 2026 β mwah, bye bestie π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms