summaryrefslogtreecommitdiffstats
path: root/if-options.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-16 13:17:23 +0000
committerRoy Marples <roy@marples.name>2008-09-16 13:17:23 +0000
commit2662d5195f4c8200be223bad3656903e3db16548 (patch)
tree7451fcefe8f52deca347052fca4bf2a71b5feef4 /if-options.c
parent9c7d387680c41b35e99a0509dd58c2b8fd38c896 (diff)
downloaddhcpcd-2662d5195f4c8200be223bad3656903e3db16548.tar.xz
Allow the release keyword in dhcpcd.conf to release the lease on shutdown.
Diffstat (limited to 'if-options.c')
-rw-r--r--if-options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/if-options.c b/if-options.c
index 26fef059..84200803 100644
--- a/if-options.c
+++ b/if-options.c
@@ -273,7 +273,6 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
switch(opt) {
case 'd': /* FALLTHROUGH */
- case 'k': /* FALLTHROUGH */
case 'n': /* FALLTHROUGH */
case 'x': /* FALLTHROUGH */
case 'T': /* We need to handle non interface options */
@@ -312,6 +311,9 @@ parse_option(struct if_options *ifo, int opt, const char *arg)
}
*ifo->vendorclassid = (uint8_t)s;
break;
+ case 'k':
+ ifo->options |= DHCPCD_RELEASE;
+ break;
case 'l':
if (*arg == '-') {
syslog(LOG_ERR,