diff options
| author | Michael Brown | 2008-03-21 01:06:28 +0100 |
|---|---|---|
| committer | Michael Brown | 2008-03-21 01:06:28 +0100 |
| commit | 0fbe484566deb32b729f24eacc2a0a0ae4034e1b (patch) | |
| tree | a40d02aae8a9e3e8fb796bf207768bb548c849be /src | |
| parent | [Settings] Use a settings applicator to configure IPv4 routes. (diff) | |
| download | ipxe-0fbe484566deb32b729f24eacc2a0a0ae4034e1b.tar.gz ipxe-0fbe484566deb32b729f24eacc2a0a0ae4034e1b.tar.xz ipxe-0fbe484566deb32b729f24eacc2a0a0ae4034e1b.zip | |
[IPv4] Add a config option for IPv4
IPv4 may not always be dragged into the link, so add a specific
configuration option for it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.h | 10 | ||||
| -rw-r--r-- | src/core/config.c | 23 |
2 files changed, 22 insertions, 11 deletions
diff --git a/src/config.h b/src/config.h index e004f23d1..9a447ad58 100644 --- a/src/config.h +++ b/src/config.h @@ -76,6 +76,16 @@ /* @BEGIN general.h * + * Network protocols + * + */ + +#define NET_PROTO_IPV4 /* IPv4 protocol */ + +/* @END general.h */ + +/* @BEGIN general.h + * * Download protocols * */ diff --git a/src/core/config.c b/src/core/config.c index 24db3557c..ffd112562 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -53,40 +53,42 @@ #ifdef CONSOLE_FIRMWARE REQUIRE_OBJECT ( bios_console ); #endif - #ifdef CONSOLE_SERIAL REQUIRE_OBJECT ( serial ); #endif - #ifdef CONSOLE_DIRECT_VGA REQUIRE_OBJECT ( video_subr ); #endif - #ifdef CONSOLE_BTEXT REQUIRE_OBJECT ( btext ); #endif - #ifdef CONSOLE_PC_KBD REQUIRE_OBJECT ( pc_kbd ); #endif - #ifdef CONSOLE_SYSLOG REQUIRE_OBJECT ( syslog ); #endif /* - * Timers + * Drag in all requested timers */ - #ifdef TIMER_BIOS REQUIRE_OBJECT ( timer_bios ); #endif - #ifdef TIMER_RDTSC REQUIRE_OBJECT ( timer_rdtsc ); #endif + /* - * Drag in all requested protocols + * Drag in all requested network protocols + * + */ +#ifdef NET_PROTO_IPV4 +REQUIRE_OBJECT ( ipv4 ); +#endif + +/* + * Drag in all requested download protocols * */ #ifdef DOWNLOAD_PROTO_TFTP @@ -112,13 +114,12 @@ REQUIRE_OBJECT ( slam ); #endif /* - * Drag in any required resolvers + * Drag in all requested resolvers * */ #ifdef DNS_RESOLVER REQUIRE_OBJECT ( dns ); #endif - #ifdef NMB_RESOLVER REQUIRE_OBJECT ( nmb ); #endif |
