mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
Make A query test only be performed when needed.
Saves an RTT.
This commit is contained in:
@@ -929,7 +929,7 @@ bgpq_expand(struct bgpq_expander* b)
|
||||
}
|
||||
|
||||
/* Test whether the server has support for the A query */
|
||||
if (b->generation >= T_PREFIXLIST) {
|
||||
if (b->generation >= T_PREFIXLIST && !STAILQ_EMPTY(&b->macroses)) {
|
||||
char aret[128];
|
||||
char aresp[] = "F Missing required set name for A query";
|
||||
SX_DEBUG(debug_expander, "Testing support for A queries\n");
|
||||
|
||||
Reference in New Issue
Block a user