Re: [exim] PROXYv2 support

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Jetmore
日付:  
To: Jeremy Harris
CC: Exim Users
題目: Re: [exim] PROXYv2 support
On Sun, Jan 1, 2017 at 7:00 PM, Jeremy Harris <jgh@???> wrote:

> On 01/01/17 18:30, John Jetmore wrote:
> > When HAProxy sends the v2 proxy string, Exim debugs:
> >
> > 6194 Detected proxy protocol configured host
> > 6194 Detected PROXYv2 header
> > 6194 Truncated or too large PROXYv2 header (28/3088)
> > 6194 Failure to extract proxied host, only QUIT allowed
> >
> > I'm almost positive there's some sort of network order/endian issue
> causing
> > this. Specifically, that (28/3088) is (bytes read from
> network/16+expected
> > size of network portion).
> >
> > As you can see in the dumps below, the value HAProxy is sending for
> number
> > of bytes in network portion is "000c", or 12. It is also actually
> sending
> > 28 bytes. However, if I flip the byte order in 000c, it becomes 0x0c00 +
> > 16, which is 3088.
>
> I don't see much use of the htonl() family of routines in the code in
> Exim, so endinanness failures look like a given. What architecture are
> you running on?
>


model name : Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz

--John