diff options
author | Ondrej Filip <feela@network.cz> | 2000-09-02 10:54:40 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-09-02 10:54:40 +0200 |
commit | e3bc10fdc49266db827af4e4062e639862037eb6 (patch) | |
tree | 0eaa4538e5d028c9bbb49e3a57b0d9444ee7be34 /proto/ospf/iface.c | |
parent | 5ddec4e6cfef8e5867d7440693894517f955e96f (diff) | |
download | bird-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/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 4c0e286..e82d8f3 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -370,7 +370,8 @@ ospf_iface_info(struct ospf_iface *ifa) cli_msg(-1015,"Interface \"%s\":", ifa->iface->name); cli_msg(-1015,"\tArea: %I (%u)", ifa->oa->areaid, ifa->oa->areaid); cli_msg(-1015,"\tType: %s %s", ospf_it[ifa->type], strict); - cli_msg(-1015,"\tState: %s", ospf_is[ifa->state]); + cli_msg(-1015,"\tState: %s %s", ospf_is[ifa->state], + ifa->stub ? "(stub)" : ""); cli_msg(-1015,"\tPriority: %u", ifa->priority); cli_msg(-1015,"\tCost: %u", ifa->cost); cli_msg(-1015,"\tHello timer: %u", ifa->helloint); @@ -429,6 +430,7 @@ ospf_ifa_add(struct object_lock *lock) ifa->strictnbma=ip->strictnbma; ifa->waitint=ip->waitint; ifa->deadc=ip->deadc; + ifa->stub=ip->stub; ifa->autype=ip->autype; memcpy(ifa->aukey,ip->password,8); ifa->options=2; /* FIXME what options? */ |