diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 21:56:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-27 21:56:22 +0000 |
commit | cd54240585a1b579b7bfee19d160d4c26f9d6ab2 (patch) | |
tree | 851401c595b43cab40b472ff453c5182ecc442f8 /usr.sbin/bgpd/rde.c | |
parent | 427cc243755fab93709d8e7a7d6c23f7b3bb24b7 (diff) |
move strict kroute from in_addr_t for nexthop and prefix to struct in_addr
ok claudio
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 895e17c0b8f..9265d03ed85 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.68 2004/01/27 16:49:53 henning Exp $ */ +/* $OpenBSD: rde.c,v 1.69 2004/01/27 21:56:21 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -604,14 +604,14 @@ rde_send_kroute(struct prefix *new, struct prefix *old) new->aspath->nexthop->flags & NEXTHOP_ANNOUNCE) { type = IMSG_KROUTE_DELETE; p = old; - kr.nexthop = 0; + kr.nexthop.s_addr = 0; } else { type = IMSG_KROUTE_CHANGE; p = new; - kr.nexthop = p->aspath->nexthop->true_nexthop.v4.s_addr; + kr.nexthop.s_addr = p->aspath->nexthop->true_nexthop.v4.s_addr; } - kr.prefix = p->prefix->prefix.v4.s_addr; + kr.prefix.s_addr = p->prefix->prefix.v4.s_addr; kr.prefixlen = p->prefix->prefixlen; if (imsg_compose(&ibuf_main, type, 0, &kr, sizeof(kr)) == -1) |