From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Thu, 04 Dec 2008 13:06:11 -0800 Subject: [U-Boot] [PATCH] common: nvedit to protect additional ethernet addresses Part 1/1 In-Reply-To: <531234379@web.de> References: <531234379@web.de> Message-ID: <49384643.60601@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefan, Stefan Alth?fer wrote: > Then maybe we should have > > #define CONFIG_ENV_PROTECTED_ITEM "ethaddr1,ethaddr2,...." > > in board configuration to have the greatest flexibility? > > It might be useful to have a general protection mechanism, but probably not right now. Please implement a general string comparison, either by strncmp() or strstr(). Also, please don't top post. regards, Ben