repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge branch 'tomato-RT' into Toastman-RT
[tomato.git]
/
release
/
src
/
router
/
www
/
interfaces.js
blob
bc4b0e16f3d8f2a8bfc4bf74f0bae8626cb5e59c
1
function getNetworkAddress(ipaddress, netmask) {
2
return fixIP(ntoa(aton(ipaddress) & aton(netmask)));
3
}
4
5
function getBroadcastAddress(network, netmask) {
6
return fixIP(ntoa(aton(network) ^ (~ aton(netmask))));
7
}
8