Hello packets on PTP networks should have zero netmask.
This also ensures that misconfigured routers (one side ptp and one side broadcast) do not make adjacency.
This commit is contained in:
parent
8cc598a520
commit
f571473ef3
1 changed files with 2 additions and 1 deletions
|
@ -225,7 +225,8 @@ ospf_hello_send(timer * timer, int poll, struct ospf_neighbor *dirn)
|
||||||
|
|
||||||
pkt->netmask = ipa_mkmask(ifa->iface->addr->pxlen);
|
pkt->netmask = ipa_mkmask(ifa->iface->addr->pxlen);
|
||||||
ipa_hton(pkt->netmask);
|
ipa_hton(pkt->netmask);
|
||||||
if (ifa->type == OSPF_IT_VLINK) pkt->netmask = IPA_NONE;
|
if ((ifa->type == OSPF_IT_VLINK) || (ifa->type == OSPF_IT_PTP))
|
||||||
|
pkt->netmask = IPA_NONE;
|
||||||
pkt->helloint = ntohs(ifa->helloint);
|
pkt->helloint = ntohs(ifa->helloint);
|
||||||
pkt->options = ifa->oa->opt.byte;
|
pkt->options = ifa->oa->opt.byte;
|
||||||
pkt->priority = ifa->priority;
|
pkt->priority = ifa->priority;
|
||||||
|
|
Loading…
Reference in a new issue