From 3f5b31d49139968a84c42d5d3067d06edefa3aae Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 15 May 2016 22:42:47 +0200 Subject: ipcpd: shim-udp: Revised locking Simplified locking to take only two locks: the first lock guards the state of the ipcp. This lock must be held for writing on bootstrap and closing, and held for reading during all other operations. The second lock guards operations on flows, and must be held for writing during allocation and deallocation, and held for reading when sending sdu's. After adding a fd to FD_SET, the shim will wait for 1 ms to ensure that the FD is added to the select call. --- src/ipcpd/ipcp.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ipcpd/ipcp.h') diff --git a/src/ipcpd/ipcp.h b/src/ipcpd/ipcp.h index c9002d4d..70da0675 100644 --- a/src/ipcpd/ipcp.h +++ b/src/ipcpd/ipcp.h @@ -30,8 +30,6 @@ enum ipcp_state { IPCP_INIT = 0, - IPCP_ENROLLING, - IPCP_BOOTSTRAPPING, IPCP_ENROLLED, IPCP_DISCONNECTED, IPCP_SHUTDOWN -- cgit v1.2.3