[pkg-fso-maint] Bug#520933: udhcpc: please exit when releasing a lease

Luca Capello luca at pca.it
Mon Mar 23 18:25:33 UTC 2009


Package: udhcpc
Version: 0.9.8cvs20050303-2.1
Severity: wishlist
User: pkg-fso-maint at lists.alioth.debian.org
Usertag: config-network

Hello,

while working to solve bug #520014 [1], I discovered that udhcpc
behavior WRT releasing a lease is inconsistent with the other DHCP
clients in Debian.


- `man dhclient`:

    	The client normally doesn't release the current lease as it is
	not required by the DHCP protocol.  Some cable ISPs require
	their clients to notify the server if they wish to release an
	assigned IP address.  The -r flag explicitly releases the
	current lease, and once the lease has been released, the client
	exits.


- `man dhcpcd`:

       -k, --release
             This causes an existing dhcpcd process running on the
             interface to release it's lease, deconfigure the interface
             and then exit.


- `man pump`:

      -r       --release             Release interface

   While it does not say anything about what happens after the release,
   pump actually exits after releasing.


- `man udhcpc`:

      SIGUSR2
              This signal caused udhcpc to release the current lease.

   Thus, there is no indication of what happens after the release.


I am not a DHCP expert, so I cannot say which is the correct behavior,
but this means that to be consistent other DHCP clients, one needs:

  # kill -s SIGUSR2 `pidof udhcpc`
  # kill -s SIGTERM `pidof udhcpc`

However, starting from r16229 [2] (and v1.3.0), udhcpc supports option
-R "release on quit", thus the behavior I would like can be obtained
simply with the second command above, assuming that udhcpc was started
with the -R option.

Thx, bye,
Gismo / Luca

Footnotes: 
[1] http://bugs.debian.org/520014
[2] http://sources.busybox.net/index.py?view=rev&revision=16229

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: armel (armv4tl)

Kernel: Linux 2.6.29-20090303.gitb9de904e (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages udhcpc depends on:
ii  libc6                         2.9-6      GNU C Library: Shared libraries

udhcpc recommends no packages.

Versions of packages udhcpc suggests:
pn  resolvconf                    <none>     (no description available)

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20090323/606c08af/attachment.pgp 


More information about the pkg-fso-maint mailing list