diff options
-rw-r--r-- | nest/locks.h | 1 | ||||
-rw-r--r-- | proto/ospf/iface.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/nest/locks.h b/nest/locks.h index e465bf55..892d3c6b 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 70ad7462..c9e1808e 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; |