libs/core: fix loading of nixio.bit in luci.ip
This commit is contained in:
parent
f637ea27ae
commit
01c4048021
1 changed files with 5 additions and 4 deletions
|
@ -17,11 +17,12 @@ $Id$
|
||||||
--- LuCI IP calculation library.
|
--- LuCI IP calculation library.
|
||||||
module( "luci.ip", package.seeall )
|
module( "luci.ip", package.seeall )
|
||||||
|
|
||||||
require("bit")
|
require "nixio"
|
||||||
require("luci.util")
|
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
|
--- Boolean; true if system is big endian
|
||||||
BIG_ENDIAN = not LITTLE_ENDIAN
|
BIG_ENDIAN = not LITTLE_ENDIAN
|
||||||
|
@ -324,7 +325,7 @@ end
|
||||||
-- @class module
|
-- @class module
|
||||||
-- @cstyle instance
|
-- @cstyle instance
|
||||||
-- @name luci.ip.cidr
|
-- @name luci.ip.cidr
|
||||||
cidr = luci.util.class()
|
cidr = util.class()
|
||||||
|
|
||||||
--- Test whether the instance is a IPv4 address.
|
--- Test whether the instance is a IPv4 address.
|
||||||
-- @return Boolean indicating a IPv4 address type
|
-- @return Boolean indicating a IPv4 address type
|
||||||
|
|
Loading…
Reference in a new issue