/* Compare all the sysfs values of two mappings  */
static int mapping_cmpsysfs(struct if_mapping *ifnode, struct if_mapping *target)
/* Compare all the sysfs values of two mappings  */
static int mapping_cmpsysfs(struct if_mapping *ifnode, struct if_mapping *target)
{
  int		findex;
  int		match = 1;
  for(findex = 0; findex < sysfs_global.filenum; findex++)
    {
      if(ifnode->sysfs[findex] != NULL)
	if((target->sysfs[findex] == NULL) ||
	   (fnmatch(ifnode->sysfs[findex], target->sysfs[findex],
		    FNM_CASEFOLD)))
	  match = 0;
    }
  return(!match);
}