diff options
| author | Roy Marples <roy@marples.name> | 2008-06-30 16:02:56 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-06-30 16:02:56 +0000 |
| commit | 757520c586a98cdea4e1ef571cd9e448f9f9c72b (patch) | |
| tree | a78240510356ea585feab8d8c5cfb39b3b6b4d39 /config.h | |
| parent | a72cb83891d74115890ee40761d4cd6e87cbf689 (diff) | |
| download | dhcpcd-757520c586a98cdea4e1ef571cd9e448f9f9c72b.tar.xz | |
Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options.
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -33,6 +33,24 @@ /* You can enable/disable various chunks of optional code here. * You would only do this to try and shrink the end binary if dhcpcd * was running on a low memory device */ + +/* Disable everything we possibly can. */ +#ifdef MINIMAL +# ifndef DISABLE_ARP +# define DISABLE_ARP +# endif +# ifndef DISABLE_IPV4LL +# define DISABLE_IPV4LL +# endif +# ifndef DISABLE_DUID +# define DISABLE_DUID +# endif +# ifndef DISABLE_VENDOR +# define DISABLE_VENDOR +# endif +#endif + +/* Enable ARP by default. */ #ifndef DISABLE_ARP # define ENABLE_ARP #endif @@ -64,6 +82,13 @@ # define ENABLE_DUID #endif +/* Allow dhcpcd to send encapsulated vendor options (code 43). + * Although this is enabled by default, only custom networks would really + * need it. */ +#ifndef DISABLE_VENDOR +# define ENABLE_VENDOR +#endif + /* Some systems do not have a working fork. */ /* #define THERE_IS_NO_FORK */ @@ -97,5 +122,4 @@ # define PIDFILE RUNDIR "/" PACKAGE "-%s.pid" #endif - #endif |
