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 598914 Details for
Bug 626514
ISC dhcp does not support ppp and ipv6 as in`dhclient -6 -P`
[?]
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.
example program from getifaddrs(3) man page
getifaddrs.c (text/plain), 1.91 KB, created by
Jiri Popelka
on 2012-07-18 15:04:09 UTC
(
hide
)
Description:
example program from getifaddrs(3) man page
Filename:
MIME Type:
Creator:
Jiri Popelka
Created:
2012-07-18 15:04:09 UTC
Size:
1.91 KB
patch
obsolete
> #include <arpa/inet.h> > #include <sys/socket.h> > #include <netdb.h> > #include <ifaddrs.h> > #include <stdio.h> > #include <stdlib.h> > #include <unistd.h> > > int > main(int argc, char *argv[]) > { > struct ifaddrs *ifaddr, *ifa; > int family, s; > char host[NI_MAXHOST]; > > if (getifaddrs(&ifaddr) == -1) { > perror("getifaddrs"); > exit(EXIT_FAILURE); > } > > /* Walk through linked list, maintaining head pointer so we > can free list later */ > > for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { > if (ifa->ifa_addr == NULL) > continue; > > family = ifa->ifa_addr->sa_family; > > /* Display interface name and family (including symbolic > form of the latter for the common families) */ > > printf("%s address family: %d%s\n", > ifa->ifa_name, family, > (family == AF_PACKET) ? " (AF_PACKET)" : > (family == AF_INET) ? " (AF_INET)" : > (family == AF_INET6) ? " (AF_INET6)" : ""); > > /* For an AF_INET* interface address, display the address */ > > if (family == AF_INET || family == AF_INET6) { > s = getnameinfo(ifa->ifa_addr, > (family == AF_INET) ? sizeof(struct sockaddr_in) : > sizeof(struct sockaddr_in6), > host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); > if (s != 0) { > printf("getnameinfo() failed: %s\n", gai_strerror(s)); > exit(EXIT_FAILURE); > } > printf("\taddress: <%s>\n", host); > } > } > > freeifaddrs(ifaddr); > exit(EXIT_SUCCESS); > }
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 626514
:
443055
|
443060
|
443128
|
446301
|
446939
|
596257
| 598914 |
602341
|
602342
|
602343
|
602344
|
602345
|
740389
|
740393
|
740670
|
741830
|
741831
|
743452
|
743453
|
819281
|
819282
|
819283
|
821802
|
901378
|
901379
|
901380