Signed-off-by: F. Aragon <paco@voltanet.io>
if (local)
bpc->bpc_local = *local;
- if (peer) {
- bpc->bpc_peer = *peer;
- } else {
- /* Peer configuration is mandatory. */
- snprintf(ebuf, ebuflen, "no peer configured");
- return -1;
- }
-
+ bpc->bpc_peer = *peer;
bpc->bpc_mhop = mhop;
/* Handle interface specification configuration. */
vni,
prefix_mac2str(macaddr,
buf, sizeof(buf)),
- ipa_len ? " IP " : "",
- ipa_len ?
- ipaddr2str(ipaddr,
- buf1, sizeof(buf1)) : "",
+ " IP ",
+ ipaddr2str(ipaddr, buf1, sizeof(buf1)),
n_type,
tmp_seq);
return;