diff options
author | Leonard Tracy <letracy@amazon.com> | 2012-12-04 20:02:35 +0100 |
---|---|---|
committer | Scott Feldman <sfeldma@cumulusnetworks.com> | 2013-01-07 18:59:45 +0100 |
commit | 2345a2221aa0a02b96846beab6088815f41e791b (patch) | |
tree | 2486cfbf3985c95a8f5ab0724de4d256e71bfd5e /ospfd/ospf_lsa.c | |
parent | ospf: Reduce MaxAge log level (diff) | |
download | frr-2345a2221aa0a02b96846beab6088815f41e791b.tar.xz frr-2345a2221aa0a02b96846beab6088815f41e791b.zip |
ospf: Fix type-4 network mask to 0 per RFC
The OSPF RFC (2328) states that the network mask field of a type 4
LSA "is not meaningful and must be zero". OSPFD has been setting
the mask as /32. This patch changes OSPFD to set the mask to 0 per
the RFC
Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r-- | ospfd/ospf_lsa.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 66c7e1c0c..fb55f7ff1 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -1340,12 +1340,8 @@ static void ospf_summary_asbr_lsa_body_set (struct stream *s, struct prefix *p, u_int32_t metric) { - struct in_addr mask; - - masklen2ip (p->prefixlen, &mask); - /* Put Network Mask. */ - stream_put_ipv4 (s, mask.s_addr); + stream_put_ipv4 (s, (u_int32_t) 0); /* Set # TOS. */ stream_putc (s, (u_char) 0); |