Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 595984 Details for
Bug 808147
getaddrinfo("::1") now fails on an otherwise-ipv4-only system
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
getaddrinfo without the HINT. Implicit AI_ADDRCONFIG. This works inconsistently.
test2.c (text/plain), 913 bytes, created by
Rok Papez
on 2012-07-03 13:43:06 UTC
(
hide
)
Description:
getaddrinfo without the HINT. Implicit AI_ADDRCONFIG. This works inconsistently.
Filename:
MIME Type:
Creator:
Rok Papez
Created:
2012-07-03 13:43:06 UTC
Size:
913 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <string.h> >#include <sys/types.h> >#include <sys/socket.h> >#include <netdb.h> > >void print_addx(struct addrinfo *a) { > struct sockaddr_in *addx4; char str4[INET_ADDRSTRLEN]; > struct sockaddr_in6 *addx6; char str6[INET6_ADDRSTRLEN]; > switch (a->ai_family) { > case AF_INET: > addx4 = (struct sockaddr_in *) a->ai_addr; > inet_ntop(AF_INET, &addx4->sin_addr, str4, INET_ADDRSTRLEN); > printf("IPv4: %s\n", str4); > break; > case AF_INET6: > addx6 = (struct sockaddr_in6 *) a->ai_addr; > inet_ntop(AF_INET6, &(addx6->sin6_addr), str6, INET6_ADDRSTRLEN); > printf("IPv6: %s\n", str6); > break; > } >} > >int main() { > struct addrinfo *addx, *a; > int i = 0; int rc; > rc = getaddrinfo ("localhost", NULL, NULL, &addx); > if(rc) { > fprintf(stderr, gai_strerror(rc)); > return -1; > } > for (a = addx; a != NULL; a = a->ai_next) > print_addx(a); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 808147
:
595983
| 595984 |
595985
|
595986
|
615840