From e3bc10fdc49266db827af4e4062e639862037eb6 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sat, 2 Sep 2000 08:54:40 +0000 Subject: 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. --- proto/ospf/iface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/ospf/iface.c') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 4c0e2866..e82d8f3a 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? */ -- cgit v1.2.3