fff-babeld: Only select first list entry from router_ip #200

Closed
fbl wants to merge 2 commits from fbl/firmware:rip-fix into master

2 Commits

Author SHA1 Message Date
Fabian Bläse 34de39ff41 fff-babeld: Simplify CIDR mask removal
The removal of CIDR masks from ip addresses is changed to utilize
variable substitutions, which simplifies the expression.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2022-01-04 12:09:03 +01:00
Fabian Bläse 815acc6600 fff-babeld: Only select first list entry from router_ip
The router_ip option can be a list of multiple ip addresses. It is also
possible to specify a subnet using a CIDR mask.

Only a single ip is required for peering interfaces, so select only the
first list entry and remove the CIDR mask.

Fixes: #197

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2022-01-04 12:02:44 +01:00