]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: mock interface mtu = 68
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 12 Dec 2019 20:43:29 +0000 (15:43 -0500)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 19:45:44 +0000 (14:45 -0500)
zero mtu causes spurious crashes

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ospfd/ospf_main.c

index 1c0eda8fe1d13749c18201eb40b0069e307b1dab..5d4014b24e9a83088ab0e7f5731148e79a03bbae 100644 (file)
@@ -213,6 +213,7 @@ int main(int argc, char **argv)
 
        struct prefix p;
        struct interface *ifp = if_create_ifindex(69, 0);
+       ifp->mtu = 68;
        str2prefix("11.0.2.0/24", &p);
 
        struct in_addr in;