diff options
author | Everton Marques <everton.marques@gmail.com> | 2009-08-12 10:52:22 -0300 |
---|---|---|
committer | Everton Marques <everton.marques@gmail.com> | 2009-10-02 10:44:31 -0300 |
commit | 638f9840dc9650777a6d1902bf44a37aa318bd87 (patch) | |
tree | 769967dbf5e4fa3eaf05880b35e94e8043a43ba6 /pimd/pim_join.c | |
parent | 834200830bd0a27c09465b6e23941364a149b9a3 (diff) | |
download | quagga-638f9840dc9650777a6d1902bf44a37aa318bd87.tar.bz2 quagga-638f9840dc9650777a6d1902bf44a37aa318bd87.tar.xz |
[pim] Move encoded source address length check to pim_parse_addr_source
Diffstat (limited to 'pimd/pim_join.c')
-rw-r--r-- | pimd/pim_join.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/pimd/pim_join.c b/pimd/pim_join.c index 6b46759a..aa3aa789 100644 --- a/pimd/pim_join.c +++ b/pimd/pim_join.c @@ -240,18 +240,6 @@ int pim_joinprune_recv(struct interface *ifp, return -7; } - /* - RFC 4601: 4.9.1 Encoded Source and Group Address Formats - - Encoded-Source Address - (...) - The mask length MUST be equal to the mask length in bits for the - given Address Family and Encoding Type (32 for IPv4 native and - 128 for IPv6 native). A router SHOULD ignore any messages - received with any other mask length. - */ - if (msg_source_addr.prefixlen!=32) return; - buf += addr_offset; recv_join(ifp, neigh, msg_holdtime, @@ -271,18 +259,6 @@ int pim_joinprune_recv(struct interface *ifp, return -8; } - /* - RFC 4601: 4.9.1 Encoded Source and Group Address Formats - - Encoded-Source Address - (...) - The mask length MUST be equal to the mask length in bits for the - given Address Family and Encoding Type (32 for IPv4 native and - 128 for IPv6 native). A router SHOULD ignore any messages - received with any other mask length. - */ - if (msg_source_addr.prefixlen!=32) return; - buf += addr_offset; recv_prune(ifp, neigh, msg_holdtime, |