summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-06 11:50:48 +0000
committerOndrej Filip <feela@network.cz>2000-06-06 11:50:48 +0000
commit41ad16e2d5dc03f6620b94f8e531373788e11db9 (patch)
tree06eda58225d03aea324b33862e749d4c4ec2ca6a
parenta852c139dc90febae40be055050ed30490d823b8 (diff)
Added IP protocols.
-rw-r--r--nest/locks.h1
-rw-r--r--proto/ospf/iface.c2
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;