From d1a24b85d82132f7c0714d75756e71b7edcadccf Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 12 Jan 2006 14:05:14 +0000 Subject: Copy AS path in rde_filter() on demand instead of doing it before calling rde_filter(). Adapt path_update() to this change too. path_update() does a path_copy before linking the rde_aspath into the RIB. Looks good Henning. --- usr.sbin/bgpd/rde.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.sbin/bgpd/rde.h') diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index ae049bdee7a..b40a897718a 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.81 2006/01/10 16:11:12 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.82 2006/01/12 14:05:13 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker and @@ -355,9 +355,10 @@ void pt_dump(void (*)(struct pt_entry *, void *), void *, sa_family_t); /* rde_filter.c */ -enum filter_actions rde_filter(struct filter_head *, struct rde_peer *, - struct rde_aspath *, struct bgpd_addr *, u_int8_t, - struct rde_peer *, enum directions); +enum filter_actions rde_filter(struct rde_aspath **, struct filter_head *, + struct rde_peer *, struct rde_aspath *, + struct bgpd_addr *, u_int8_t, struct rde_peer *, + enum directions); void rde_apply_set(struct rde_aspath *, struct filter_set_head *, sa_family_t, struct rde_peer *, enum directions); int rde_filter_community(struct rde_aspath *, int, int); -- cgit v1.2.3