attrs->lpref = set->localpref;
asp->lpref = set->localpref;
rde_apply_set(struct attr_flags *attrs, struct filter_set *set){	struct aspath	*new;	u_int16_t	 as;	if (attrs == NULL)		return;	if (set->flags & SET_LOCALPREF)		attrs->lpref = set->localpref;	if (set->flags & SET_MED)		attrs->med = set->med;	if (set->flags & SET_NEXTHOP)		attrs->nexthop = set->nexthop;	if (set->flags & SET_NEXTHOP_REJECT)		attrs->nexthop_reject = 1;	if (set->flags & SET_NEXTHOP_BLACKHOLE)		attrs->nexthop_blackhole = 1;	if (set->flags & SET_PREPEND) {		as = rde_local_as();		new = aspath_prepend(attrs->aspath, as, set->prepend);		aspath_put(attrs->aspath);		attrs->aspath = new;	}	if (set->flags & SET_PFTABLE)		strlcpy(attrs->pftable, set->pftable, sizeof(attrs->pftable));	if (set->flags & SET_COMMUNITY) {		struct attr *a;		if ((a = attr_optget(attrs, ATTR_COMMUNITIES)) == NULL) {			attr_optadd(attrs, ATTR_OPTIONAL|ATTR_TRANSITIVE,			    ATTR_COMMUNITIES, NULL, 0);			if ((a = attr_optget(attrs, ATTR_COMMUNITIES)) == NULL)				fatalx("internal community bug");		}		community_set(a, set->community.as, set->community.type);	}}