diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-17 11:14:23 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2007-11-17 11:14:23 +0000 |
commit | 7a793a47b6da94ea68808f61972158056e1d5649 (patch) | |
tree | d39b3cb892e401b5751632db273cd6d3257cfc40 /dhcp-controller.lua | |
parent | 365f56f2b68b036352d12daa13695b662a9d0017 (diff) | |
download | acf-dhcp-7a793a47b6da94ea68808f61972158056e1d5649.tar.bz2 acf-dhcp-7a793a47b6da94ea68808f61972158056e1d5649.tar.xz |
/acf/dhcp: beta: implemented advanced (non validated stuff) per subnet
git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@331 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-controller.lua')
-rw-r--r-- | dhcp-controller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcp-controller.lua b/dhcp-controller.lua index fc0e6f8..4db9f25 100644 --- a/dhcp-controller.lua +++ b/dhcp-controller.lua @@ -127,7 +127,7 @@ editnet = function ( self ) tmp = self.clientdata net = self.model.create_new_net( tmp.name, tmp.defleasetime, tmp.maxleasetime, tmp.gateway, tmp.domainname, tmp.dnssrv1, tmp.dnssrv2, tmp.subnet, tmp.netmask, tmp.leaserangestart, - tmp.leaserangeend, tmp.wpad, tmp.statichosts, tmp.unknownclients, tmp.dynamichosts ) + tmp.leaserangeend, tmp.wpad, tmp.statichosts, tmp.unknownclients, tmp.dynamichosts, tmp.advanced ) errcode, net = self.model.subnet_write( net ) return ( cfe({ option = option, value = net, errcode = errcode }) ) end @@ -150,13 +150,13 @@ createnet = function ( self ) } if self.clientdata.cmd == "new" then - net = self.model.create_new_net( "<new>", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil ) + net = self.model.create_new_net( "<new>", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil ) return ( cfe({ option = option, value = net, errcode = { msg = "", fields = nil }}) ) elseif self.clientdata.cmd == "create" then tmp = self.clientdata net = self.model.create_new_net( tmp.name, tmp.defleasetime, tmp.maxleasetime, tmp.gateway, tmp.domainname, tmp.dnssrv1, tmp.dnssrv2, tmp.subnet, - tmp.netmask, tmp.leaserangestart, tmp.leaserangeend, tmp.wpad, "", tmp.unknownclients, "" ) + tmp.netmask, tmp.leaserangestart, tmp.leaserangeend, tmp.wpad, "", tmp.unknownclients, "", "" ) errcode, net = self.model.subnet_create( net ) if #errcode.msg == 0 then self.conf.type = "redir" |