From 41ad16e2d5dc03f6620b94f8e531373788e11db9 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 6 Jun 2000 11:50:48 +0000 Subject: Added IP protocols. --- nest/locks.h | 1 + proto/ospf/iface.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nest/locks.h b/nest/locks.h index e465bf5..892d3c6 100644 --- a/nest/locks.h +++ b/nest/locks.h @@ -43,6 +43,7 @@ void olock_init(void); #define OBJLOCK_UDP 1 /* UDP port */ #define OBJLOCK_TCP 2 /* TCP port */ +#define OBJLOCK_IP 3 /* IP protocol */ #define OLOCK_STATE_FREE 0 #define OLOCK_STATE_LOCKED 1 diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 70ad746..c9e1808 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -310,7 +310,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface) OSPF_TRACE(D_EVENTS, "Using interface %s.", iface->name); lock = olock_new( p->pool ); lock->addr = AllSPFRouters; - lock->type = OBJLOCK_UDP; + lock->type = OBJLOCK_IP; lock->port = OSPF_PROTO; lock->iface = iface; lock->data = p; -- cgit v1.2.3