Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
56bc5367
Commit
56bc5367
authored
11 years ago
by
Steven Barth
Browse files
Options
Downloads
Patches
Plain Diff
netifd: rename customopts to sendopts for consistency
SVN-Revision: 38437
parent
c759b49a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+4
-4
4 additions, 4 deletions
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
with
4 additions
and
4 deletions
package/network/config/netifd/files/lib/netifd/proto/dhcp.sh
+
4
−
4
View file @
56bc5367
...
@@ -13,22 +13,22 @@ proto_dhcp_init_config() {
...
@@ -13,22 +13,22 @@ proto_dhcp_init_config() {
proto_config_add_boolean
"broadcast"
proto_config_add_boolean
"broadcast"
proto_config_add_string
"reqopts"
proto_config_add_string
"reqopts"
proto_config_add_string
"iface6rd"
proto_config_add_string
"iface6rd"
proto_config_add_string
"
custom
opts"
proto_config_add_string
"
send
opts"
}
}
proto_dhcp_setup
()
{
proto_dhcp_setup
()
{
local
config
=
"
$1
"
local
config
=
"
$1
"
local
iface
=
"
$2
"
local
iface
=
"
$2
"
local
ipaddr
hostname
clientid vendorid broadcast reqopts iface6rd
custom
opts
local
ipaddr
hostname
clientid vendorid broadcast reqopts iface6rd
send
opts
json_get_vars ipaddr
hostname
clientid vendorid broadcast reqopts iface6rd
custom
opts
json_get_vars ipaddr
hostname
clientid vendorid broadcast reqopts iface6rd
send
opts
local
opt dhcpopts
local
opt dhcpopts
for
opt
in
$reqopts
;
do
for
opt
in
$reqopts
;
do
append dhcpopts
"-O
$opt
"
append dhcpopts
"-O
$opt
"
done
done
for
opt
in
$
custom
opts
;
do
for
opt
in
$
send
opts
;
do
append dhcpopts
"-x
$opt
"
append dhcpopts
"-x
$opt
"
done
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment