summaryrefslogtreecommitdiffstats
path: root/proto/ospf/hello.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-09-02 10:54:40 +0200
committerOndrej Filip <feela@network.cz>2000-09-02 10:54:40 +0200
commite3bc10fdc49266db827af4e4062e639862037eb6 (patch)
tree0eaa4538e5d028c9bbb49e3a57b0d9444ee7be34 /proto/ospf/hello.c
parent5ddec4e6cfef8e5867d7440693894517f955e96f (diff)
downloadbird-e3bc10fdc49266db827af4e4062e639862037eb6.tar
bird-e3bc10fdc49266db827af4e4062e639862037eb6.zip
Added stub interface. (Interface which is propagated to OSPF but
it does not sends nor listens packets.) I added some new options, please look at it and look into doc if it's OK.
Diffstat (limited to 'proto/ospf/hello.c')
-rw-r--r--proto/ospf/hello.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/hello.c b/proto/ospf/hello.c
index 94326c5..11f3c6f 100644
--- a/proto/ospf/hello.c
+++ b/proto/ospf/hello.c
@@ -249,6 +249,8 @@ hello_send(timer *timer,int poll, struct ospf_neighbor *dirn)
if(timer==NULL) ifa=dirn->ifa;
else ifa=(struct ospf_iface *)timer->data;
+ if(ifa->stub) return; /* Don't send any packet on stub iface */
+
p=(struct proto *)(ifa->proto);
DBG("%s: Hello/Poll timer fired on interface %s.\n",
p->name, ifa->iface->name);