[klibc] [PATCH 3/6] ipconfig: Write $DHCPLEASETIME as dhcp-lease-time to /tmp/net-$DEVICE.conf
maximilian attems
max at stro.at
Fri May 18 15:29:10 PDT 2012
On Tue, 23 Aug 2011, KUMAAN wrote:
> This patch parses dhcp-lease-time option value in DHCP ACK packet when
> ipconfig uses DHCP. This patch writes $DHCPLEASETIME as the value to
> /tmp/net-$DEVICE.conf file.
>
> > ipconfig: ignores dhcp options
> > http://bugs.debian.org/627166
> This Debian Bug report requests the option value.
>
> For example, $DHCPLEASETIME is equal to '3600' which means 3600 seconds.
> If $PROTO is not equal to 'dhcp', $DHCPLEASETIME should be ignored.
>
> Signed-off-by: KUMAAN <9maaan at gmail.com>
> ---
> usr/kinit/ipconfig/dhcp_proto.c | 4 ++++
> usr/kinit/ipconfig/main.c | 2 ++
> usr/kinit/ipconfig/netdev.h | 1 +
> 3 files changed, 7 insertions(+), 0 deletions(-)
>
thank you applied to latest klibc git.
More information about the klibc
mailing list