mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 07:31:54 +00:00
OSPF: N-bit should not be set for DBDES packets
This commit is contained in:
parent
354afcab04
commit
6b72ea4c14
@ -121,7 +121,7 @@ ospf_prepare_dbdes(struct ospf_proto *p, struct ospf_neighbor *n)
|
|||||||
{
|
{
|
||||||
struct ospf_dbdes2_packet *ps = (void *) pkt;
|
struct ospf_dbdes2_packet *ps = (void *) pkt;
|
||||||
ps->iface_mtu = htons(iface_mtu);
|
ps->iface_mtu = htons(iface_mtu);
|
||||||
ps->options = ifa->oa->options;
|
ps->options = ifa->oa->options & ~OPT_N;
|
||||||
ps->imms = 0; /* Will be set later */
|
ps->imms = 0; /* Will be set later */
|
||||||
ps->ddseq = htonl(n->dds);
|
ps->ddseq = htonl(n->dds);
|
||||||
length = sizeof(struct ospf_dbdes2_packet);
|
length = sizeof(struct ospf_dbdes2_packet);
|
||||||
@ -129,7 +129,7 @@ ospf_prepare_dbdes(struct ospf_proto *p, struct ospf_neighbor *n)
|
|||||||
else /* OSPFv3 */
|
else /* OSPFv3 */
|
||||||
{
|
{
|
||||||
struct ospf_dbdes3_packet *ps = (void *) pkt;
|
struct ospf_dbdes3_packet *ps = (void *) pkt;
|
||||||
ps->options = htonl(ifa->oa->options);
|
ps->options = htonl(ifa->oa->options & ~OPT_N);
|
||||||
ps->iface_mtu = htons(iface_mtu);
|
ps->iface_mtu = htons(iface_mtu);
|
||||||
ps->padding = 0;
|
ps->padding = 0;
|
||||||
ps->imms = 0; /* Will be set later */
|
ps->imms = 0; /* Will be set later */
|
||||||
|
Loading…
Reference in New Issue
Block a user