bfdd: authorise multihop and interface setting

the restriction to authorise multihop and interface setting has no
meaning here.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
Philippe Guibert 2019-06-14 15:16:31 +02:00 committed by Rafael Zalamena
parent 7818c5fba0
commit f7bb830439

View File

@ -678,12 +678,6 @@ static int bfd_configure_peer(struct bfd_peer_cfg *bpc, bool mhop,
/* Handle interface specification configuration. */ /* Handle interface specification configuration. */
if (ifname) { if (ifname) {
if (bpc->bpc_mhop) {
snprintf(ebuf, ebuflen,
"multihop doesn't accept interface names");
return -1;
}
bpc->bpc_has_localif = true; bpc->bpc_has_localif = true;
if (strlcpy(bpc->bpc_localif, ifname, sizeof(bpc->bpc_localif)) if (strlcpy(bpc->bpc_localif, ifname, sizeof(bpc->bpc_localif))
> sizeof(bpc->bpc_localif)) { > sizeof(bpc->bpc_localif)) {