From 4fb0b517035ddc189bd696e3175bf18dbc37d441 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Fri, 10 Aug 2001 06:02:23 +0000 Subject: This corrects the _really_poor_ implementation of "broadcast +" handling by ifconfig that someone had submitted. It fixes 1 bug, gets rid of the excessive bloating of a structure that is used in a static const array, and removes the implicit struct copys by keeping only the int type needed. It also turns this into a configurable feature (off by default). --- Config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Config.h') diff --git a/Config.h b/Config.h index e6f5315f2..c46e2d282 100644 --- a/Config.h +++ b/Config.h @@ -319,7 +319,7 @@ // Support for Minix filesystem, version 2 //#define BB_FEATURE_MINIX2 // -// Enable ifconfig status reporting output -- this feature adds 12k. +// Enable ifconfig status reporting output -- this feature adds 7k. //#define BB_FEATURE_IFCONFIG_STATUS // // Enable ifconfig slip-specific options "keepalive" and "outfill" @@ -331,6 +331,10 @@ // Enable ifconfig option "hw". Currently works for only with "ether". //#define BB_FEATURE_IFCONFIG_HW // +// Allows "broadcast +" to set broadcast automatically based on hostaddr +// and netmask, at a cost of about 100 bytes of code (i386). +//#define BB_FEATURE_IFCONFIG_BROADCAST_PLUS +// // Enable busybox --install [-s] // to create links (or symlinks) for all the commands that are // compiled into the binary. (needs /proc filesystem) -- cgit v1.2.3