Jon Loeliger | 8b1f74b | 2007-06-11 19:01:34 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2007 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * This file is licensed under the terms of the GNU General Public |
| 5 | * License Version 2. This file is licensed "as is" without any |
| 6 | * warranty of any kind, whether express or implied. |
| 7 | */ |
| 8 | |
| 9 | #ifndef _CONFIG_BOOTP_H |
| 10 | #define _CONFIG_BOOTP_H |
| 11 | |
| 12 | /* |
| 13 | * Optional BOOTP fields |
| 14 | */ |
| 15 | |
| 16 | #define CONFIG_BOOTP_SUBNETMASK 0x00000001 |
| 17 | #define CONFIG_BOOTP_GATEWAY 0x00000002 |
| 18 | #define CONFIG_BOOTP_HOSTNAME 0x00000004 |
| 19 | #define CONFIG_BOOTP_NISDOMAIN 0x00000008 |
| 20 | #define CONFIG_BOOTP_BOOTPATH 0x00000010 |
| 21 | #define CONFIG_BOOTP_BOOTFILESIZE 0x00000020 |
| 22 | #define CONFIG_BOOTP_DNS 0x00000040 |
| 23 | #define CONFIG_BOOTP_DNS2 0x00000080 |
| 24 | #define CONFIG_BOOTP_SEND_HOSTNAME 0x00000100 |
| 25 | #define CONFIG_BOOTP_NTPSERVER 0x00000200 |
| 26 | #define CONFIG_BOOTP_TIMEOFFSET 0x00000400 |
| 27 | |
| 28 | #define CONFIG_BOOTP_VENDOREX 0x80000000 |
| 29 | |
| 30 | #define CONFIG_BOOTP_ALL (~CONFIG_BOOTP_VENDOREX) |
| 31 | |
| 32 | #define CONFIG_BOOTP_DEFAULT (CONFIG_BOOTP_SUBNETMASK | \ |
| 33 | CONFIG_BOOTP_GATEWAY | \ |
| 34 | CONFIG_BOOTP_HOSTNAME | \ |
| 35 | CONFIG_BOOTP_BOOTPATH) |
| 36 | |
| 37 | #ifndef CONFIG_BOOTP_MASK |
| 38 | #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT |
| 39 | #endif |
| 40 | |
| 41 | #endif /* _CONFIG_BOOTP_H */ |