home *** CD-ROM | disk | FTP | other *** search
-
- /* This program creates an option template file in RFC 1048 format. */
-
- struct in_addr { long s_addr; };
-
- #include "bootp.h"
-
- /* Note that this template uses padding to keep data aligned. */
- char vend[] = {
- /* magic number for RFC1048 data */
- 99, 130, 83, 99,
-
- /* netmask */
- 0,0,1,4,
- 0,0,0,0,
-
- /* gateway list */
- 0,0,3,4,
- 0,0,0,0,
-
- /* hostname */
- 0,0, 12, 16,
- 0,0,0,0,
- 0,0,0,0,
- 0,0,0,0,
- 0,0,0,0,
-
- /* DNS list */
- 0,0,6,8,
- 0,0,0,0,
- 0,0,0,0,
-
- #if 1
-
- /* NIS server list */
- 0,0, 15, 4,
- 0,0,0,0,
-
- /* NIS domain name */
- 0,0, 14, 12,
- 0,0,0,0,
- 0,0,0,0,
- 0,0,0,0,
-
- #endif
-
- /* end */
- 255, 0
- };
-
-
- main() {
- write(1, vend, sizeof(vend));
- exit(0);
- }
-