summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2013-06-04 00:41:19 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2013-06-04 00:41:19 +0000
commit54f31e1471739ce195cbfb0c580a621350ba46fd (patch)
tree3554ec0dd42d92379956c4ee820f7d62e0801889 /usr.sbin/ldpd/kroute.c
parent4df80fbcb27e2de17c3c08215a961fdc25d494f6 (diff)
fix some minor issues before proceeding with the remaining patches from
Renato Westphal. Diff by Renato Westphal
Diffstat (limited to 'usr.sbin/ldpd/kroute.c')
-rw-r--r--usr.sbin/ldpd/kroute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c
index fc64daedfe3..8a1efcdb0dd 100644
--- a/usr.sbin/ldpd/kroute.c
+++ b/usr.sbin/ldpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.28 2013/06/03 16:56:47 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.29 2013/06/04 00:41:18 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -894,13 +894,13 @@ if_newaddr(u_short ifindex, struct sockaddr_in *ifa, struct sockaddr_in *mask,
if ((ka = calloc(1, sizeof(struct kif_addr))) == NULL)
fatal("if_newaddr");
ka->addr.ifindex = ifindex;
- ka->addr.addr = ifa->sin_addr;
+ ka->addr.addr.s_addr = ifa->sin_addr.s_addr;
if (mask)
- ka->addr.mask = mask->sin_addr;
+ ka->addr.mask.s_addr = mask->sin_addr.s_addr;
else
ka->addr.mask.s_addr = INADDR_NONE;
if (brd)
- ka->addr.dstbrd = brd->sin_addr;
+ ka->addr.dstbrd.s_addr = brd->sin_addr.s_addr;
else
ka->addr.dstbrd.s_addr = INADDR_NONE;