ovpn_peer_vp...dr_conflict6(9)
π NAME π
okay so bestie, this page is from the Kernel API Manual (section 9, kernel-space functions only, we're fancy like that β¨) and it's all about ovpn_peer_vpn_addr_conflict6 β the little function that checks whether a VPN v6 address is already being used by somebody else. no cap, that's the whole job π
β¨ SYNOPSIS β¨
bool ovpn_peer_vpn_addr_conflict6 (struct ovpn_priv *ovpn , const struct ovpn_peer *peer , const struct in6_addr *addr );
π¦ ARGUMENTS π¦
ovpnβ the openvpn instance we're snooping around in πpeerβ the peer that's being added or updated, orNULL(yes,NULLis a whole vibe here, it's allowed)addrβ the VPN IPv6 address we wanna check, bestie π
πΈ DESCRIPTION πΈ
so basically, this function checks whether addr is already assigned to another peer. like, is this address taken? because we do NOT do duplicates in this house π
the peer argument gets ignored when a match is found β which is literally the point, because it means peer updates can keep an existing address without the function throwing a fit π slay.
and unspecified addresses? ignored. not our problem, not our drama π
π NOTE π
okay bestie this one's important: the caller must hold ovpn->lock. like, no lock, no service. don't come for this function without it, fr fr π
β RETURN β
trueon conflict π₯ (the address is taken, oops)falseotherwise π§ (you're good, go off)
π SEE ALSO π
the whole squad, gathered for you π β straight from the kernel file ./drivers/net/ovpn/peer.c:
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_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)ovpn_peer_keepalive_work(9)
and that's the page, bestie!! π«Ά this lil manpage lives in ./drivers/net/ovpn and it's dated October 2026 β yes, from the future, main character energy only πβ¨ mwah, go check those addresses, ily π
π¦ 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