Deleted Added
full compact
rbootd.c (27077) rbootd.c (27079)
1/*
2 * Copyright (c) 1988, 1992 The University of Utah and the Center
3 * for Software Science (CSS).
4 * Copyright (c) 1992, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Center for Software Science of the University of Utah Computer

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * from: @(#)rbootd.c 8.1 (Berkeley) 6/4/93
1/*
2 * Copyright (c) 1988, 1992 The University of Utah and the Center
3 * for Software Science (CSS).
4 * Copyright (c) 1992, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * the Center for Software Science of the University of Utah Computer

--- 25 unchanged lines hidden (view full) ---

34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * from: @(#)rbootd.c 8.1 (Berkeley) 6/4/93
42 * $Id: rbootd.c,v 1.6 1997/03/28 15:48:14 imp Exp $
42 * $Id: rbootd.c,v 1.7 1997/06/29 19:00:15 steve Exp $
43 *
44 * From: Utah Hdr: rbootd.c 3.1 92/07/06
45 * Author: Jeff Forys, University of Utah CSS
46 */
47
48#ifndef lint
49static const char copyright[] =
50"@(#) Copyright (c) 1992, 1993\n\

--- 241 unchanged lines hidden (view full) ---

292** Nothing.
293**
294** Side Effects:
295** - Timed out connections in `RmpConns' will be freed.
296*/
297void
298DoTimeout()
299{
43 *
44 * From: Utah Hdr: rbootd.c 3.1 92/07/06
45 * Author: Jeff Forys, University of Utah CSS
46 */
47
48#ifndef lint
49static const char copyright[] =
50"@(#) Copyright (c) 1992, 1993\n\

--- 241 unchanged lines hidden (view full) ---

292** Nothing.
293**
294** Side Effects:
295** - Timed out connections in `RmpConns' will be freed.
296*/
297void
298DoTimeout()
299{
300 register RMPCONN *rtmp;
300 RMPCONN *rtmp;
301 struct timeval now;
302
303 (void) gettimeofday(&now, (struct timezone *)0);
304
305 /*
306 * For each active connection, if RMP_TIMEOUT seconds have passed
307 * since the last packet was sent, delete the connection.
308 */

--- 19 unchanged lines hidden (view full) ---

328**
329** Warnings:
330** - This routine must be called with SIGHUP blocked since
331** a reconfigure can invalidate the information returned.
332*/
333
334CLIENT *
335FindClient(rconn)
301 struct timeval now;
302
303 (void) gettimeofday(&now, (struct timezone *)0);
304
305 /*
306 * For each active connection, if RMP_TIMEOUT seconds have passed
307 * since the last packet was sent, delete the connection.
308 */

--- 19 unchanged lines hidden (view full) ---

328**
329** Warnings:
330** - This routine must be called with SIGHUP blocked since
331** a reconfigure can invalidate the information returned.
332*/
333
334CLIENT *
335FindClient(rconn)
336 register RMPCONN *rconn;
336 RMPCONN *rconn;
337{
337{
338 register CLIENT *ctmp;
338 CLIENT *ctmp;
339
340 for (ctmp = Clients; ctmp != NULL; ctmp = ctmp->next)
341 if (bcmp((char *)&rconn->rmp.hp_hdr.saddr[0],
342 (char *)&ctmp->addr[0], RMP_ADDRLEN) == 0)
343 break;
344
345 return(ctmp);
346}

--- 101 unchanged lines hidden ---
339
340 for (ctmp = Clients; ctmp != NULL; ctmp = ctmp->next)
341 if (bcmp((char *)&rconn->rmp.hp_hdr.saddr[0],
342 (char *)&ctmp->addr[0], RMP_ADDRLEN) == 0)
343 break;
344
345 return(ctmp);
346}

--- 101 unchanged lines hidden ---