Creating an IPv6 socket if AF_INET6 is defined on the system. If IPv6
2003-06-10 Shailesh Mittal <shailesh.mittal@wipro.com> * libuuid/gen_uuid.c (get_node_id): Creating an IPv6 socket if AF_INET6 is defined on the system. If IPv6 socket cannot be created, then we are falling back to IPv4 socket creation, as was done previously.
This commit is contained in:
parent
aee28fa902
commit
dbb7a4c042
3 changed files with 24 additions and 3 deletions
7
NEWS
7
NEWS
|
@ -1,3 +1,10 @@
|
|||
gnome-control-center 2.7.0
|
||||
|
||||
Shailesh Mittal:
|
||||
http://bugzilla.gnome.org/show_bug.cgi?id=114832
|
||||
* IPV6 support in the file types capplet
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
gnome-control-center 2.6.1
|
||||
|
||||
Alex Larsson:
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2003-06-10 Shailesh Mittal <shailesh.mittal@wipro.com>
|
||||
|
||||
* libuuid/gen_uuid.c (get_node_id): Creating an IPv6 socket if AF_INET6
|
||||
is defined on the system. If IPv6 socket cannot be created, then we are
|
||||
falling back to IPv4 socket creation, as was done previously.
|
||||
|
||||
2004-04-15 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* Release 2.6.1
|
||||
|
|
|
@ -104,11 +104,19 @@ static int get_node_id(unsigned char *node_id)
|
|||
#else
|
||||
#define ifreq_size(i) sizeof(struct ifreq)
|
||||
#endif /* HAVE_SA_LEN*/
|
||||
#ifdef AF_INET6
|
||||
sd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP);
|
||||
|
||||
/* If IPv6 fails then try with IPv4 socket. */
|
||||
if (sd < 0)
|
||||
#endif
|
||||
{
|
||||
sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
|
||||
if (sd < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
memset(buf, 0, sizeof(buf));
|
||||
ifc.ifc_len = sizeof(buf);
|
||||
ifc.ifc_buf = buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue