From 8babc5b23252c7e76e17692fe161aae7ab7cd71f Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Tue, 10 Aug 2004 13:02:09 +0000 Subject: switch nexthop in struct filter_set form struct in_addr to struct bgpd_addr OK henning@ --- usr.sbin/bgpd/parse.y | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'usr.sbin/bgpd/parse.y') 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 @@ -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; -- cgit v1.2.3