addrinfo in cnetdb has 2 fields swapped around
Original Reporter info from Mantis: gregors613
-
Reporter name: Greg Smith
Original Reporter info from Mantis: gregors613
- Reporter name: Greg Smith
Description:
from cnetdb
addrinfo = record
ai_flags: cInt; {* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST *}
ai_family: cInt; {* PF_xxx *}
ai_socktype: cInt; {* SOCK_xxx *}
ai_protocol: cInt; {* 0 or IPPROTO_xxx for IPv4 and IPv6 *}
ai_addrlen: TSocklen; {* length of ai_addr *}
ai_canonname: PChar; {* canonical name for hostname *}
ai_addr: psockaddr; {* binary address *}
ai_next: PAddrInfo; {* next structure in linked list *}
end;
from unix man page
struct addrinfo {
int ai_flags;
int ai_family;
int ai_socktype;
int ai_protocol;
socklen_t ai_addrlen;
struct sockaddr *ai_addr;
char *ai_canonname;
struct addrinfo *ai_next;
};
Note that the ai_addr entry is in the wrong spot in the fpc version
Steps to reproduce:
inspect source code
Mantis conversion info:
- Mantis ID: 24909
- OS: Ubuntu
- OS Build: 12.04
- Platform: Linux / Unix
- Version: 2.6.2
- Fixed in version: 2.6.4
- Fixed in revision: 25756 (#915b95ab)
- Target version: 3.0.0