From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Veer To: tadams@theone.dnsalias.com Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] ethernet driver package idea Date: Mon, 03 Sep 2001 11:01:00 -0000 Message-id: <200109031801.f83I1Ln11575@sheesh.cambridge.redhat.com> References: <000f01c130ae$747a0100$090110ac@TRENT> X-SW-Source: 2001-09/msg00023.html >>>>> "Trenton" == Trenton D Adams writes: Trenton> One more thing. You might want to do what I've done Trenton> below. It's a little nicer using a drop down box than a Trenton> text box for selection of the ethX device name! Trenton> cdl_option CYGDAT_ETHDRV_NAME { Trenton> display "Name to use for this network device" Trenton> flavor data Trenton> legal_values {"\"eth0\"" "\"eth1\""} Trenton> default_value { (1 == CYGHWR_NET_DRIVERS) ? "\"eth0\"" : Trenton> "\"eth1\"" } Trenton> description " Trenton> The name of this network device for control purposes. Trenton> " Trenton> } This would prevent the user from calling the device something other than eth0 or eth1, effectively restricting the system to just two ethernet devices. It is possible to have more than that, although at present only eth0 and eth1 can be easily configured via the configuration tool - any additional ones require effort at the application level. I would prefer users to still have the flexibility to call their network devices anything they want to, even if this involves a bit more complexity in the user interface. Bart