Deleted Added
full compact
bootpd.c (41699) bootpd.c (41734)
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

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

14CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
16IN NO EVENT SHALL CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
17DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
1/************************************************************************
2 Copyright 1988, 1991 by Carnegie Mellon University
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted, provided
8that the above copyright notice appear in all copies and that both that

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

14CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
16IN NO EVENT SHALL CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
17DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
22 $Id: bootpd.c,v 1.8 1998/06/03 20:01:28 joerg Exp $
22 $Id: bootpd.c,v 1.9 1998/12/12 20:56:53 dillon Exp $
23
24************************************************************************/
25
26/*
27 * BOOTP (bootstrap protocol) server daemon.
28 *
29 * Answers BOOTP request packets from booting client machines.
30 * See [SRI-NIC]<RFC>RFC951.TXT for a description of the protocol.

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

630 int32 bootsize = 0;
631 unsigned hlen, hashcode;
632 int32 dest;
633 char realpath[1024];
634 char *clntpath;
635 char *homedir, *bootfile;
636 int n;
637
23
24************************************************************************/
25
26/*
27 * BOOTP (bootstrap protocol) server daemon.
28 *
29 * Answers BOOTP request packets from booting client machines.
30 * See [SRI-NIC]<RFC>RFC951.TXT for a description of the protocol.

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

630 int32 bootsize = 0;
631 unsigned hlen, hashcode;
632 int32 dest;
633 char realpath[1024];
634 char *clntpath;
635 char *homedir, *bootfile;
636 int n;
637
638 bp->bp_file[sizeof(bp->bp_file)-1] = '\0';
639
638 /* XXX - SLIP init: Set bp_ciaddr = recv_addr here? */
639
640 /*
641 * If the servername field is set, compare it against us.
642 * If we're not being addressed, ignore this request.
643 * If the server name field is null, throw in our name.
644 */
645 if (strlen(bp->bp_sname)) {

--- 760 unchanged lines hidden ---
640 /* XXX - SLIP init: Set bp_ciaddr = recv_addr here? */
641
642 /*
643 * If the servername field is set, compare it against us.
644 * If we're not being addressed, ignore this request.
645 * If the server name field is null, throw in our name.
646 */
647 if (strlen(bp->bp_sname)) {

--- 760 unchanged lines hidden ---