[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] mailutils and ipv6
From: |
Daniel 'NebuchadnezzaR' Dehennin |
Subject: |
[bug-mailutils] mailutils and ipv6 |
Date: |
Wed, 31 Dec 2003 15:54:06 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Hello,
I have make some work to make imap4d ipv6 capable, but I have
some difficulties to clearly see who needs which.
Firstly, I regrep the source tree searching some sockaddr_in,
gethostbyname &co., inet_ntoa &co., etc, to replace them by ipv6
capable structures and functions (sockaddr_storage, getaddrinfo...).
I have a problem with mailbox/tcp.c, it defines:
struct _tcp_instance {
int fd;
char *host;
int port;
int state;
unsigned long address;
};
where the "address" member is a problem between ipv4 and ipv6.
I do not have much experiment but I can make some proposals and you
will tell me if I'm in the good way.
We can have a:
struct _tcp_instance {
int fd;
int state;
struct sockaddr_storage *host
}
The sockaddr_storage embedded the host, port and address.
I have tracked the use of it, it's limited in tcp.c but it's embedded
in stream_t and I need to look more over the sources to see how it's
used.
I'm waiting any comment if I'm the wrong way or if you have some
important points I must know.
Thanks.
--
Daniel 'NebuchadnezzaR' Dehennin
pgpFmIRl53w1f.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-mailutils] mailutils and ipv6,
Daniel 'NebuchadnezzaR' Dehennin <=