diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-08-10 13:02:09 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-08-10 13:02:09 +0000 |
commit | 8babc5b23252c7e76e17692fe161aae7ab7cd71f (patch) | |
tree | bff104a2696e1ce7d6e0e71ef13cc74fdadba1e9 /usr.sbin/bgpd/parse.y | |
parent | f8e38e32bed384b5e3285f0135e86c32d6ec684d (diff) |
switch nexthop in struct filter_set form struct in_addr to struct bgpd_addr
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 39bccecec21..a1c02b09478 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.131 2004/08/05 18:40:44 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.132 2004/08/10 13:02:08 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1083,13 +1083,7 @@ filter_set_opt : LOCALPREF number { $$.med = $2; } | NEXTHOP address { - if ($2.af == AF_INET) { - $$.flags = SET_NEXTHOP; - $$.nexthop.s_addr = $2.v4.s_addr; - } else { - yyerror("king bula sez: AF_INET only for now"); - YYERROR; - } + memcpy(&$$.nexthop, &$2, sizeof($$.nexthop)); } | NEXTHOP BLACKHOLE { $$.flags |= SET_NEXTHOP_BLACKHOLE; |