]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripd/ripd.c
ripd: add non-zero check for RIPv1 reserved field,
[mirror_frr.git] / ripd / ripd.c
index fb3d574aaa70b71459875455c989610ef1233e7b..9167a4fa700af6615eb124fa92dd39b0ecb32a1e 100644 (file)
@@ -1171,6 +1171,12 @@ static void rip_response_process(struct rip_packet *packet, int size,
                        continue;
                }
 
+               if (packet->version == RIPv1 && rte->tag != 0) {
+                       zlog_warn("RIPv1 reserved field is nonzero: %d",
+                                 ntohs(rte->tag));
+                       continue;
+               }
+
                /* - is the destination address valid (e.g., unicast; not net 0
                   or 127) */
                if (!rip_destination_check(rte->prefix)) {