Modify

Opened 12 years ago

Closed 12 years ago

#624 closed defect (duplicate)

/etc/init.d/S50dnsmasq gets dhcp_num nvram setting wrong

Reported by: iwilcox@… Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: dhcp_num dnsmasq Cc:

Description

Hi,

/etc/init.d/S50dnsmasq contains:

num=$(nvram get dhcp_num)
num=$((start+${num:-150}))

...making 'num' the end of the range...followed by:

eval $(ipcalc $ipaddr $netmask $start $num)

but ipcalc is expecting its fourth argument to be a count, not the range end.
This means you end up with more dynamic DHCP leases than you ask for.
Being very new to OpenWrt, and not knowing what else might use ipcalc, I just removed the "num=start+..." line from S50dnsmasq. That worked for me.

Cheers,

Zak (Isaac Wilcox)

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by mbm

  • Resolution set to duplicate
  • Status changed from new to closed

dupe, #550, #542, #477
(please stop reporting this bug)

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.