From: Donald Sharp Date: Tue, 2 May 2017 19:11:46 +0000 (-0400) Subject: Merge remote-tracking branch 'origin/stable/2.0' X-Git-Tag: reindent-master-before~204 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=df581cd3e137e8d3ab0f9acbb3d33bdb1e63face;p=matthieu%2Ffrr.git Merge remote-tracking branch 'origin/stable/2.0' --- df581cd3e137e8d3ab0f9acbb3d33bdb1e63face diff --cc doc/Building_FRR_on_Ubuntu1204.md index 2d6ccffd9f,f13052a1bb..521f0a0c2b --- a/doc/Building_FRR_on_Ubuntu1204.md +++ b/doc/Building_FRR_on_Ubuntu1204.md @@@ -75,8 -75,10 +75,9 @@@ an example. git clone https://github.com/frrouting/frr.git frr cd frr - git checkout stable/2.0 ./bootstrap.sh ./configure \ + --prefix=/usr \ --enable-exampledir=/usr/share/doc/frr/examples/ \ --localstatedir=/var/run/frr \ --sbindir=/usr/lib/frr \ diff --cc doc/Building_FRR_on_Ubuntu1404.md index 5da423affc,7e21df8614..2c5f132ad7 --- a/doc/Building_FRR_on_Ubuntu1404.md +++ b/doc/Building_FRR_on_Ubuntu1404.md @@@ -35,8 -35,10 +35,9 @@@ an example. git clone https://github.com/frrouting/frr.git frr cd frr - git checkout stable/2.0 ./bootstrap.sh ./configure \ + --prefix=/usr \ --enable-exampledir=/usr/share/doc/frr/examples/ \ --localstatedir=/var/run/frr \ --sbindir=/usr/lib/frr \ diff --cc ospfd/ospf_vty.c index b4c456e0aa,2724df98a0..8e6ecb57eb --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@@ -6331,9 -7058,8 +6331,9 @@@ DEFUN (no_ip_ospf_dead_interval "Seconds\n" "Address of interface") { - struct interface *ifp = vty->index; + VTY_DECLVAR_CONTEXT(interface, ifp); + int idx_ipv4 = argc - 1; - struct in_addr addr; + struct in_addr addr = { .s_addr = 0L}; int ret; struct ospf_if_params *params; struct ospf_interface *oi; @@@ -6457,19 -7230,21 +6457,20 @@@ DEFUN (no_ip_ospf_hello_interval NO_STR "IP Information\n" "OSPF interface commands\n" - "Time between HELLO packets\n" + "Time between HELLO packets\n" // ignored "Seconds\n" - "Address of interface") + "Address of interface\n") { - struct interface *ifp = vty->index; + VTY_DECLVAR_CONTEXT(interface, ifp); + int idx = 0; struct in_addr addr; - int ret; struct ospf_if_params *params; - ++ params = IF_DEF_PARAMS (ifp); - if (argc == 2) + if (argv_find (argv, argc, "A.B.C.D", &idx)) { - ret = inet_aton(argv[1], &addr); - if (!ret) + if(!inet_aton(argv[idx]->arg, &addr)) { vty_out (vty, "Please specify interface address by A.B.C.D%s", VTY_NEWLINE);