[LEDE-DEV] [PATCH odhcpd 3/5] ubus: Fix displayed valid paramater for both DHCPv4 and DHCPv6 lease

Hans Dedecker dedeckeh at gmail.com
Thu Nov 17 23:49:57 PST 2016


On Thu, Nov 17, 2016 at 11:15 PM, Karl Palsson <karlp at tweak.net.au> wrote:
>
> Hans Dedecker <dedeckeh at gmail.com> wrote:
>> Fix ubus valid parameter being displayed as a negative number;
>> also display infinite lifetime as INT32_MAX
>
> Really? Why not 0 or -1? You dont' specify an infinite lease as
> INT32_MAX, why would I want to receive an infinite lease as some
> magic number that only programmer nerds would even recognize?
Fine most important for me was that the displayed value was not
decreasing; I prefer to display -1 then as 0 indicates a lease is
expired
>
> Sincerely,
> Karl Palsson



More information about the Lede-dev mailing list