]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added IP protocols.
authorOndrej Filip <feela@network.cz>
Tue, 6 Jun 2000 11:50:48 +0000 (11:50 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 6 Jun 2000 11:50:48 +0000 (11:50 +0000)
nest/locks.h
proto/ospf/iface.c

index e465bf550682c619628ddfd20c02273778e39039..892d3c6ba1c6ab92374a37b7acfce52672c3d5cf 100644 (file)
@@ -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
index 70ad7462f097bf18bcac06052361df09a9c04eeb..c9e1808e35e3192ad6d74a0e09ae8df6b0c30200 100644 (file)
@@ -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;