summaryrefslogtreecommitdiff
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-10 13:39:55 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2021-05-10 13:39:55 +0200
commit2a0af925b83f699d126cf0e733a49c75ffd86033 (patch)
treedfd17aaf95a4684c2eba093bb62ecd4a00c011a0 /proto/ospf/packet.c
parentbc591061f618cdc35cf21c7973a660f8d7018b43 (diff)
OSPF: Allow ifaces with host address as unnumbered PtP or PtMP ifaces
Ifaces with host address (/32) were forced to be stubby, but now they can be used as PtP or PtMP. For these ifaces we need to: - Do not force stub mode - Accept packets from any IP as local - Accept any configured neighbor as local - Detect ifaces properly as unnumbered - Use ONLINK flag for nexthops
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index 15242318..d7e10f37 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -403,7 +403,7 @@ ospf_rx_hook(sock *sk, uint len)
return 1;
int src_local, dst_local, dst_mcast;
- src_local = ipa_in_netX(sk->faddr, &ifa->addr->prefix);
+ src_local = ospf_ipa_local(sk->faddr, ifa->addr);
dst_local = ipa_equal(sk->laddr, ifa->addr->ip);
dst_mcast = ipa_equal(sk->laddr, ifa->all_routers) || ipa_equal(sk->laddr, ifa->des_routers);