Index | Thread | Search

From:
Kirill A. Korinsky <kirill@openbsd.org>
Subject:
Re: relayd: add support for PROXY protocol in TCP relays
To:
Rafael Sadowski <rafael@sizeofvoid.org>
Cc:
Christoph Liebender <christoph@liebender.dev>, tech@openbsd.org
Date:
Wed, 18 Feb 2026 23:27:13 +0100

Download raw body.

Thread
On Wed, 18 Feb 2026 07:10:27 +0100,
Rafael Sadowski <rafael@sizeofvoid.org> wrote:
> 
> On Sun Feb 15, 2026 at 10:35:58PM +0100, Christoph Liebender wrote:
> > On 2/13/26 19:58, Christoph Liebender wrote:
> > > On 2/11/26 22:26, Stuart Henderson wrote:
> > > > > > > diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
> > > > > > > diff --git a/usr.sbin/relayd/relayd.conf.5
> > > > > > > b/usr.sbin/relayd/ relayd.conf.5
> > > > > > > diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
> > > > > > > diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
> > > > > > > + * Copyright (c) 2025 Christoph Liebender <christoph@liebender.dev>
> > > > 
> > > > copyright claims for those files seem a bit much, there's no major
> > > > work in them
> > > > 
> > > > > > > diff --git a/usr.sbin/relayd/proxy_protocol.c
> > > > > > > b/usr.sbin/relayd/ proxy_protocol.c
> > > > > > > new file mode 100644
> > > > > > > index 00000000000..d832d3f6678
> > > > > > > --- /dev/null
> > > > > > > +++ b/usr.sbin/relayd/proxy_protocol.c
> > > > > > > @@ -0,0 +1,142 @@
> > > > > > > +/*
> > > > > > > + * Copyright (c) 2025 Christoph Liebender <christoph@liebender.dev>
> > > > 
> > > > that one is of course reasonable
> > > > 
> > > > (i haven't reviewed the rest of the diff)
> > > > 
> > > 
> > > Rafael, Stuart, thanks for your comments. Updated version is attached.
> > > 
> > > ok kirill@ ...?
> > 
> > here goes the less nonsensical version.
> 
> Thanks Christoph,
> 
> OK rsadowski@ for the latest version with the return -1.

Thanks, commited!

-- 
wbr, Kirill