1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
/*
* PXE daemon - enable the remote booting of PXE enabled machines.
* Copyright (C) 2000 Tim Hurman (kano@kano.org.uk)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
/******************************************************************************
* autoconf.h - pxe daemon configuration file *
******************************************************************************/
#ifndef _AUTOCONF_H
#define _AUTOCONF_H
/* define this if you have stdint.h */
#undef HAVE_STDINT_H
/* define this if you have stropts.h */
#undef HAVE_STROPTS_H
/* define this if you have sys/sockio.h */
#undef HAVE_SYS_SOCKIO_H
/* define this if you have ifaddrs.h */
#undef HAVE_IFADDRS_H
/* define this if you have getifaddrs */
#undef HAVE_GETIFADDRS
/* define this if you have hstrerror */
#undef HAVE_HSTRERROR
/* define this if you have inet_aton */
#undef HAVE_INET_ATON
/* define this if you don't want the daemon to setuid */
#undef NO_SUID
/* the user to setuid to */
#define SETUID "nobody"
/* the location of the pxe daemon config file */
#define PXECONFIGFILE "/etc/pxe.conf"
/* location of the pxe daemon log file */
#define PXELOGFILE "/tmp/pxe.log"
/******************************************************************************/
/* should not need to change from here onwards */
/* the lock file */
#define LOCKFILE "/tmp/pxe.pid"
#define DEF_MULTI_BOOT 0xe0000102
#define DEF_ADDR "0.0.0.0"
#define DEF_PORT 4011
#define BOOTPC_NAME "bootpc"
#define PXE_SERVER_TYPE 0 // PXE bootstrap server
#define DHCP_T60 "PXEClient"
#define DEF_MTFTP_ADDR 0xe0010501
#define DEF_MTFTP_CPORT 0x06de
#define DEF_MTFTP_SPORT 0x06df
#define MTFTP_OPEN_TIMEOUT 1 // secs before fail
#define MTFTP_REOPEN_TIMEOUT 2 // secs before retrying
#define DEF_DOMAIN "example.net"
#define TFTPD_BASE "/tftpboot"
#define DEF_PROMPT "Press F8 to view menu ..."
#define DEF_PROMPT_TIMEOUT 10
#endif // _AUTOCONF_H
|