projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f637ea2
)
libs/core: fix loading of nixio.bit in luci.ip
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 4 Aug 2009 10:38:52 +0000
(10:38 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 4 Aug 2009 10:38:52 +0000
(10:38 +0000)
libs/core/luasrc/ip.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/ip.lua
b/libs/core/luasrc/ip.lua
index
0a66804
..
3b0ca67
100644
(file)
--- a/
libs/core/luasrc/ip.lua
+++ b/
libs/core/luasrc/ip.lua
@@
-17,11
+17,12
@@
$Id$
--- LuCI IP calculation library.
module( "luci.ip", package.seeall )
--- LuCI IP calculation library.
module( "luci.ip", package.seeall )
-require("bit")
-require("luci.util")
+require "nixio"
+local bit = nixio.bit
+local util = require "luci.util"
--- Boolean; true if system is little endian
--- Boolean; true if system is little endian
-LITTLE_ENDIAN = not
luci.
util.bigendian()
+LITTLE_ENDIAN = not util.bigendian()
--- Boolean; true if system is big endian
BIG_ENDIAN = not LITTLE_ENDIAN
--- Boolean; true if system is big endian
BIG_ENDIAN = not LITTLE_ENDIAN
@@
-324,7
+325,7
@@
end
-- @class module
-- @cstyle instance
-- @name luci.ip.cidr
-- @class module
-- @cstyle instance
-- @name luci.ip.cidr
-cidr =
luci.
util.class()
+cidr = util.class()
--- Test whether the instance is a IPv4 address.
-- @return Boolean indicating a IPv4 address type
--- Test whether the instance is a IPv4 address.
-- @return Boolean indicating a IPv4 address type