diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-25 22:50:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-25 22:50:42 +0000 |
commit | ada56a89ad483fd450dbcdecba7de2f2a9d4f60c (patch) | |
tree | 05e9404671f06eabf9f8804c6f2661413e7b3f0d /src/exit | |
parent | 6821195cf893f17b77cf6e3bb8bb07645581cd6e (diff) | |
download | gnunet-ada56a89ad483fd450dbcdecba7de2f2a9d4f60c.tar.gz gnunet-ada56a89ad483fd450dbcdecba7de2f2a9d4f60c.zip |
-nicer
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/gnunet-helper-exit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c index 9a7445d93..df52183a7 100644 --- a/src/exit/gnunet-helper-exit.c +++ b/src/exit/gnunet-helper-exit.c | |||
@@ -83,8 +83,8 @@ static const char *sbin_iptables; | |||
83 | struct in6_ifreq | 83 | struct in6_ifreq |
84 | { | 84 | { |
85 | struct in6_addr ifr6_addr; | 85 | struct in6_addr ifr6_addr; |
86 | uint32_t ifr6_prefixlen; | 86 | __u32 ifr6_prefixlen; |
87 | unsigned int ifr6_ifindex; | 87 | int ifr6_ifindex; |
88 | }; | 88 | }; |
89 | #endif | 89 | #endif |
90 | 90 | ||
@@ -208,16 +208,16 @@ static void | |||
208 | set_address6 (const char *dev, const char *address, unsigned long prefix_len) | 208 | set_address6 (const char *dev, const char *address, unsigned long prefix_len) |
209 | { | 209 | { |
210 | struct ifreq ifr; | 210 | struct ifreq ifr; |
211 | struct in6_ifreq ifr6; | ||
212 | struct sockaddr_in6 sa6; | 211 | struct sockaddr_in6 sa6; |
213 | int fd; | 212 | int fd; |
213 | struct in6_ifreq ifr6; | ||
214 | 214 | ||
215 | /* | 215 | /* |
216 | * parse the new address | 216 | * parse the new address |
217 | */ | 217 | */ |
218 | memset (&sa6, 0, sizeof (struct sockaddr_in6)); | 218 | memset (&sa6, 0, sizeof (struct sockaddr_in6)); |
219 | sa6.sin6_family = AF_INET6; | 219 | sa6.sin6_family = AF_INET6; |
220 | if (1 != inet_pton (AF_INET6, address, sa6.sin6_addr.s6_addr)) | 220 | if (1 != inet_pton (AF_INET6, address, &sa6.sin6_addr)) |
221 | { | 221 | { |
222 | fprintf (stderr, "Failed to parse address `%s': %s\n", address, | 222 | fprintf (stderr, "Failed to parse address `%s': %s\n", address, |
223 | strerror (errno)); | 223 | strerror (errno)); |