Added IP protocols.

This commit is contained in:
Ondrej Filip 2000-06-06 11:50:48 +00:00
parent a852c139dc
commit 41ad16e2d5
2 changed files with 2 additions and 1 deletions

View 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

View 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;