summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-04-02 07:01:11 +0000
committerRoy Marples <roy@marples.name>2013-04-02 07:01:11 +0000
commit673e81e5b7c3ba958553d41590533121d822d08b (patch)
treed43c2662eaeb2d5f17d316af8c76cbfc7b126edb /ipv6.c
parentd540c3391cd088bdc4a9183263465c52be439ec5 (diff)
downloaddhcpcd-673e81e5b7c3ba958553d41590533121d822d08b.tar.xz
White space brigade
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipv6.c b/ipv6.c
index 70f085d1..b38dd3eb 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -70,7 +70,7 @@ ipv6_init(void)
if (routes == NULL) {
routes = malloc(sizeof(*routes));
- if (routes == NULL)
+ if (routes == NULL)
return -1;
TAILQ_INIT(routes);
#ifdef DEBUG_MEMORY
@@ -102,7 +102,7 @@ ipv6_printaddr(char *s, ssize_t sl, const uint8_t *d, const char *ifname)
errno = ENOMEM;
return -1;
}
-
+
s += strlcpy(s, p, sl);
if (d[0] == 0xfe && (d[1] & 0xc0) == 0x80) {
*s++ = '%';
@@ -209,7 +209,7 @@ ipv6_mask(struct in6_addr *mask, int len)
for (i = 0; i < bytes; i++)
mask->s6_addr[i] = 0xff;
if (bits)
- mask->s6_addr[bytes] = masks[bits - 1];
+ mask->s6_addr[bytes] = masks[bits - 1];
return 0;
}
@@ -438,7 +438,7 @@ ipv6_removesubnet(const struct interface *ifp, struct ipv6_addr *addr)
if (rt) {
rt->iface = ifp;
#ifdef __linux__
- rt->metric = 256;
+ rt->metric = 1024;
#else
rt->metric = 0;
#endif