From: Alan T. DeKok Date: Mon, 3 Aug 2026 16:48:32 +0000 (-0400) Subject: add file and virtual server to fr_socket_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bf43508a58fc8b5b94eba74ff74b0449314932e;p=thirdparty%2Ffreeradius-server.git add file and virtual server to fr_socket_t in preparation for other cleanups --- diff --git a/src/lib/bio/fd_open.c b/src/lib/bio/fd_open.c index b48a6e5779d..f08efd48724 100644 --- a/src/lib/bio/fd_open.c +++ b/src/lib/bio/fd_open.c @@ -1178,7 +1178,7 @@ int fr_bio_fd_open(fr_bio_t *bio, fr_bio_fd_config_t const *cfg) */ my->info.socket.af = AF_FR_FILENAME; my->info.socket.type = SOCK_STREAM; - my->info.socket.unix.path = cfg->filename; + my->info.socket.file.path = cfg->filename; /* * Allow hacks for stdout and stderr diff --git a/src/lib/util/socket.h b/src/lib/util/socket.h index 46c241f3adc..6a3b0f1554f 100644 --- a/src/lib/util/socket.h +++ b/src/lib/util/socket.h @@ -71,6 +71,14 @@ typedef struct { struct { char const *path; //!< Unix socket path. } unix; + + struct { + char const *path; //!< Filename + } file; + + struct { + char const *server; //!< Virtual server filename + } virtual; }; int af; //!< AF_INET, AF_INET6, or AF_UNIX int type; //!< SOCK_STREAM, SOCK_DGRAM, etc.