diff options
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; |