-/* $OpenBSD: rde.c,v 1.414 2018/08/09 12:54:06 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.415 2018/08/29 11:46:28 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
struct prefix *p;
enum filter_actions action;
u_int16_t i;
+ const char *wmsg = "filtered, withdraw";
peer->prefix_rcvd_update++;
/* add original path to the Adj-RIB-In */
return (-1);
}
+ if (in->aspath.flags & F_ATTR_PARSE_ERR)
+ wmsg = "path invalid, withdraw";
+
p = prefix_get(&ribs[RIB_ADJ_IN].rib, peer, prefix, prefixlen, 0);
if (p == NULL)
fatalx("rde_update_update: no prefix in Adj-RIB-In");
prefixlen, 0);
} else if (prefix_remove(&ribs[i].rib, peer, prefix, prefixlen,
0)) {
- rde_update_log("filtered withdraw", i, peer,
+ rde_update_log(wmsg, i, peer,
NULL, prefix, prefixlen);
}