Ignore:
Timestamp:
02/06/08 19:28:17 (5 years ago)
Author:
BrainSlayer
Message:

now multicast works for multiple separated interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/shared/utils.c

    r8945 r8955  
    39783978  return loopmask; 
    39793979} 
     3980int doMultiCast(void) 
     3981{ 
     3982 char name[80], *next; 
     3983 int ifcount; 
     3984  if (nvram_match ("wan_proto", "disabled")) 
     3985    return 0; 
     3986  if (nvram_match ("block_multicast", "0")) 
     3987    { 
     3988      ifcount++; 
     3989    } 
     3990  foreach (name, nvram_safe_get ("lan_ifnames"), next) 
     3991  { 
     3992    if (nvram_nmatch ("0", "%s_bridged", name) 
     3993        && nvram_nmatch ("1", "%s_multicast", name)) 
     3994      { 
     3995        ifcount++; 
     3996      } 
     3997  } 
     3998 return ifcount; 
     3999} 
Note: See TracChangeset for help on using the changeset viewer.