Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

RE: [milter-greylist] MX sync bind failed - Address in use

2004-06-17 by Brian Snead

I ran the program and got 0x3412.

Brian.

-----Original Message-----
From: manu@... [mailto:manu@...]
Sent: Thursday, June 17, 2004 4:10 PM
To: milter-greylist@yahoogroups.com
Subject: Re: [milter-greylist] MX sync bind failed - Address in use


Brian Snead <BSnead@...> wrote:

> When I perform a packet capture, the mxsync doesn't talk on port 5252. I
> actually tries to talk on the 33812 port. Is this correct? Because the
> 33812 port is not open in iptables. I opened 5252.

It's a little endian problem:
5252 = 0x1484
33812 = 0x8414

Can you try the following test program?

#include <stdio.h>
#include <sys/types.h>
 
int
main(argc, argv)  
        int argc;
        char **argv;
{
        printf("htons(0x1234) = 0x%x\n", htons(0x1234));
        
        return 0;
}

On a little endian machine (such as i386), you should get 0x3412. If you
get 0x1234, then something is buggy on your system.

It's on an i386, right?

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...



 
Yahoo! Groups Links

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.