REMCTL_SET_SOURCE_IP(3)
β¨ REMCTL_SET_SOURCE_IP(3) β¨
okay bestie, welcome to the remctl Library Reference π this is the page for remctl_set_source_ip, and it's genuinely so chill, i promise.
π NAME π
remctl_set_source_ip β pick the source IP your remctl client connections ride out on π«
πΈ SYNOPSIS πΈ
#include <remctl.h>
int remctl_set_source_ip(struct remctl *r, const char *source);
π¦ DESCRIPTION π¦
so like. remctl_set_source_ip() sets the source IP address for all the remctl_open() calls you make afterwards on that same struct remctl object. it's a set-it-and-then-go situation π
call this function before remctl_open() if your remctl client connections need to come from one specific source IP. that's the whole vibe. no cap.
the source parameter can be either an IPv4 or an IPv6 address (assuming the host supports IPv6, obviously, we can't manifest IPv6 out of nowhere π§).
β οΈ okay so listen, this part is important: if you set an IPv4 source address and then try to connect to an IPv6 address or an IPv6-only host β or if you flip it and set an IPv6 address and then try to connect to an IPv4 address or an IPv4-only host β remctl_open() is gonna hand you a connection failure error. not a vibe. keep your families matching bestie π
π RETURN VALUE π
remctl_set_source_ip() returns true on success and false on failure.
if it fails, you the caller should call remctl_error() to grab the error message. don't just sit there wondering, go get the tea β
β COMPATIBILITY β
this interface was added in version 3.0. so if you're on something older, that's a you problem, upgrade bestie π
π AUTHOR π
Russ Allbery <eagle@eyrie.org>
π COPYRIGHT AND LICENSE π
Copyright 2011, 2014 The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
SPDX-License-Identifier: FSFAP
π«Ά SEE ALSO π«Ά
The current version of the remctl library and complete details of the remctl protocol are available from its web page at <https://www.eyrie.org/~eagle/software/remctl/>.
and that's the whole page, bestie π this was version 3.18, dated 2022-05-09, and it's giving "go forth and set your source IP correctly" energy. slay πβ¨
π¦ where this page comes from
- debian bookworm: libremctl-dev 3.18-1+b7 Β· MIT
- debian trixie: libremctl-dev 3.18-3 Β· MIT
- epel 9: remctl-devel 3.18-1.el9 Β· MIT
- ubuntu noble: libremctl-dev 3.18-1.1build2 Β· MIT
- ubuntu questing: libremctl-dev 3.18-3
- ubuntu resolute: libremctl-dev 3.18-5build2 Β· MIT
- ubuntu stonking: libremctl-dev 3.18-5build3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms