summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_interface.h
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2009-08-07 13:48:15 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-08-18 13:35:39 +0200
commit953cde65c5a35c8762f5858ace216b768814d01c (patch)
treeacf13ca7ac43984b9215b0006d4d16fac2c281c3 /ospfd/ospf_interface.h
parentRevert "per-interface ospf enable and area set command." (diff)
downloadfrr-953cde65c5a35c8762f5858ace216b768814d01c.tar.xz
frr-953cde65c5a35c8762f5858ace216b768814d01c.zip
ospfd: Impl. per interface 'ip ospf area' command
Use with interface command: interface ppp0 ip ospf area 0.0.0.0 This will enable OSPF on ppp0 with area 0.0.0.0 Remove with "no ip ospf area" * ospf_vty.c: add "ip ospf area (A.B.C.D|<0-4294967295>)" interface command * ospfd.c: (ospf_interface_{un,}set) new helper function to enable/disable OSPF on a specific interface. (ospf_if_update) 2 possible paths now to deal with interface updates. Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> [DL: this restores the tree to deccaf9...]
Diffstat (limited to 'ospfd/ospf_interface.h')
-rw-r--r--ospfd/ospf_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_interface.h b/ospfd/ospf_interface.h
index 988493a21..7a74288bf 100644
--- a/ospfd/ospf_interface.h
+++ b/ospfd/ospf_interface.h
@@ -47,6 +47,8 @@ struct ospf_if_params
DECLARE_IF_PARAM (u_int32_t, retransmit_interval); /* Retransmission Interval */
DECLARE_IF_PARAM (u_char, passive_interface); /* OSPF Interface is passive: no sending or receiving (no need to join multicast groups) */
DECLARE_IF_PARAM (u_char, priority); /* OSPF Interface priority */
+ /* Enable OSPF on this interface with area if_area */
+ DECLARE_IF_PARAM (struct in_addr, if_area);
DECLARE_IF_PARAM (u_char, type); /* type of interface */
#define OSPF_IF_ACTIVE 0
#define OSPF_IF_PASSIVE 1