Searched refs:ipval (Results 1 - 2 of 2) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/router/rc/
H A Dfirewall_ex_noipt.c504 unsigned int val, ipval; local
509 ipval = (unsigned int)inet_addr(lan_ip);
510 if (val==0x00000ff) sprintf(buf, "%d.0.0.0/8", (ipval&0x000000ff));
511 else if (val==0x0000ffff) sprintf(buf, "%d.%d.0.0/16", (ipval&0x000000ff), (ipval&0x0000ff00)>>8);
512 else sprintf(buf, "%d.%d.%d.0/24", (ipval&0x000000ff), (ipval&0x0000ff00)>>8, (ipval&0x00ff0000)>>16);
/asus-wl-520gu-7.0.1.45/src/router/rc.orig/
H A Dfirewall_ex_noipt.c504 unsigned int val, ipval; local
509 ipval = (unsigned int)inet_addr(lan_ip);
510 if (val==0x00000ff) sprintf(buf, "%d.0.0.0/8", (ipval&0x000000ff));
511 else if (val==0x0000ffff) sprintf(buf, "%d.%d.0.0/16", (ipval&0x000000ff), (ipval&0x0000ff00)>>8);
512 else sprintf(buf, "%d.%d.%d.0/24", (ipval&0x000000ff), (ipval&0x0000ff00)>>8, (ipval&0x00ff0000)>>16);

Completed in 45 milliseconds