[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19416 - gnunet/src/exit
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19416 - gnunet/src/exit |
Date: |
Wed, 25 Jan 2012 23:50:42 +0100 |
Author: grothoff
Date: 2012-01-25 23:50:42 +0100 (Wed, 25 Jan 2012)
New Revision: 19416
Modified:
gnunet/src/exit/gnunet-helper-exit.c
Log:
-nicer
Modified: gnunet/src/exit/gnunet-helper-exit.c
===================================================================
--- gnunet/src/exit/gnunet-helper-exit.c 2012-01-25 21:41:54 UTC (rev
19415)
+++ gnunet/src/exit/gnunet-helper-exit.c 2012-01-25 22:50:42 UTC (rev
19416)
@@ -83,8 +83,8 @@
struct in6_ifreq
{
struct in6_addr ifr6_addr;
- uint32_t ifr6_prefixlen;
- unsigned int ifr6_ifindex;
+ __u32 ifr6_prefixlen;
+ int ifr6_ifindex;
};
#endif
@@ -208,16 +208,16 @@
set_address6 (const char *dev, const char *address, unsigned long prefix_len)
{
struct ifreq ifr;
- struct in6_ifreq ifr6;
struct sockaddr_in6 sa6;
int fd;
+ struct in6_ifreq ifr6;
/*
* parse the new address
*/
memset (&sa6, 0, sizeof (struct sockaddr_in6));
sa6.sin6_family = AF_INET6;
- if (1 != inet_pton (AF_INET6, address, sa6.sin6_addr.s6_addr))
+ if (1 != inet_pton (AF_INET6, address, &sa6.sin6_addr))
{
fprintf (stderr, "Failed to parse address `%s': %s\n", address,
strerror (errno));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19416 - gnunet/src/exit,
gnunet <=