mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Added IP protocols.
This commit is contained in:
parent
a852c139dc
commit
41ad16e2d5
@ -43,6 +43,7 @@ void olock_init(void);
|
|||||||
|
|
||||||
#define OBJLOCK_UDP 1 /* UDP port */
|
#define OBJLOCK_UDP 1 /* UDP port */
|
||||||
#define OBJLOCK_TCP 2 /* TCP port */
|
#define OBJLOCK_TCP 2 /* TCP port */
|
||||||
|
#define OBJLOCK_IP 3 /* IP protocol */
|
||||||
|
|
||||||
#define OLOCK_STATE_FREE 0
|
#define OLOCK_STATE_FREE 0
|
||||||
#define OLOCK_STATE_LOCKED 1
|
#define OLOCK_STATE_LOCKED 1
|
||||||
|
@ -310,7 +310,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface)
|
|||||||
OSPF_TRACE(D_EVENTS, "Using interface %s.", iface->name);
|
OSPF_TRACE(D_EVENTS, "Using interface %s.", iface->name);
|
||||||
lock = olock_new( p->pool );
|
lock = olock_new( p->pool );
|
||||||
lock->addr = AllSPFRouters;
|
lock->addr = AllSPFRouters;
|
||||||
lock->type = OBJLOCK_UDP;
|
lock->type = OBJLOCK_IP;
|
||||||
lock->port = OSPF_PROTO;
|
lock->port = OSPF_PROTO;
|
||||||
lock->iface = iface;
|
lock->iface = iface;
|
||||||
lock->data = p;
|
lock->data = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user