Changeset 11986
- Timestamp:
- 04/22/09 17:24:33 (4 years ago)
- Location:
- src/router
- Files:
-
- 2 edited
-
httpd/validate/webs.c (modified) (10 diffs)
-
services/services/vlantagging.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/validate/webs.c
r11955 r11986 278 278 279 279 } 280 280 static void applytake(char *value) 281 { 282 if(value && !strcmp( value, "ApplyTake" ) ) 283 { 284 nvram_commit( ); 285 service_restart( ); 286 } 287 } 281 288 void save_policy( webs_t wp ) 282 289 { … … 332 339 333 340 nvram_set( filter_buf, buf ); 334 335 if( !strcmp( value, "ApplyTake" ) ) 336 { 337 nvram_commit( ); 338 service_restart( ); 339 } 341 applytake(value); 340 342 341 343 D( "okay" ); … … 390 392 391 393 // char *services_length = websGetVar (wp, "services_length0", NULL); 392 char word[102 5], *next;394 char word[1026], *next; 393 395 char delim[] = "( )"; 394 396 char var[32] = ""; … … 448 450 validate_services_port( wp ); 449 451 char *value = websGetVar( wp, "action", "" ); 450 451 if( !strcmp( value, "ApplyTake" ) ) 452 { 453 nvram_commit( ); 454 service_restart( ); 455 } 452 applytake(value); 456 453 } 457 454 … … 594 591 free( buf_name ); 595 592 free( buf ); 596 if( !strcmp( value, "ApplyTake" ) ) 597 { 598 nvram_commit( ); 599 service_restart( ); 600 } 593 applytake(value); 601 594 return; 602 595 } … … 906 899 } 907 900 #endif 908 if( !strcmp( value, "ApplyTake" ) ) 909 { 910 nvram_commit( ); 911 service_restart( ); 912 } 901 applytake(value); 913 902 } 914 903 … … 1347 1336 { 1348 1337 addAction( "qos" ); 1349 if( !strcmp( value, "ApplyTake" ) ) 1350 { 1351 nvram_commit( ); 1352 service_restart( ); 1353 } 1338 applytake(value); 1354 1339 return; 1355 1340 } … … 1531 1516 1532 1517 addAction( "qos" ); 1533 if( !strcmp( value, "ApplyTake" ) ) 1534 { 1535 nvram_commit( ); 1536 service_restart( ); 1537 } 1518 applytake(value); 1538 1519 1539 1520 } … … 2203 2184 #endif 2204 2185 2205 if( !strcmp( value, "ApplyTake" ) ) 2206 { 2207 nvram_commit( ); 2208 service_restart( ); 2209 } 2186 applytake(value); 2210 2187 } 2211 2188 … … 2816 2793 // nvram_commit (); 2817 2794 #endif 2818 if( !strcmp( value, "ApplyTake" ) ) 2819 { 2820 nvram_commit( ); 2821 service_restart( ); 2822 } 2795 applytake(value); 2823 2796 } 2824 2797 -
src/router/services/services/vlantagging.c
r11721 r11986 169 169 } 170 170 } 171 171 struct ifreq ifr; 172 char eabuf[32]; 173 strncpy( ifr.ifr_name, nvram_safe_get("lan_ifname"), IFNAMSIZ ); 174 if( ioctl( s, SIOCGIFHWADDR, &ifr ) == 0 ) 175 { 176 nvram_set( "lan_hwaddr",ether_etoa( ifr.ifr_hwaddr.sa_data, eabuf ) ); 177 } 172 178 } 173 179
Note: See TracChangeset
for help on using the changeset viewer.
