]> git.ipfire.org Git - thirdparty/bird.git/commit
Added universal locking mechanism which will solve problems
authorMartin Mares <mj@ucw.cz>
Thu, 9 Dec 1999 18:54:20 +0000 (18:54 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 9 Dec 1999 18:54:20 +0000 (18:54 +0000)
commitf545d38707bf01aa9db3915d782a547f89f92c1d
treeb5bb07889273603a91e63a52813e634540ddd877
parent30bc402ebb324749f9468f8ff196545bb0a58442
Added universal locking mechanism which will solve problems
with protocols wanting to use the same port on the same interface
during reconfiguration time.

How to use locks: In the if_notify hook, just order locks for the
interfaces you want to work with and do the real socket opening after the
lock hook function gets called. When you stop using the socket, close
it and rfree() the lock.

Please update your protocols to use the new locking mechanism.
nest/Makefile
nest/locks.c [new file with mode: 0644]
nest/locks.h [new file with mode: 0644]
sysdep/unix/main.c