summaryrefslogtreecommitdiffhomepage
path: root/networking/udhcp/dhcpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-27 23:24:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-27 23:24:57 +0100
commit406bd1441694ad441fed852bf17e79020fdd44e5 (patch)
treeca2043da959bd27554273a60f6e2fe50a9cb197e /networking/udhcp/dhcpd.c
parent9107b63a7fb80fcab0da71cf12e8c81dfc394d20 (diff)
udhcpd: fix -v/-P mixup
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.c')
-rw-r--r--networking/udhcp/dhcpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 9e726fbe5..2d1d5deba 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -303,7 +303,7 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
logmode |= LOGMODE_SYSLOG;
}
#if ENABLE_FEATURE_UDHCP_PORT
- if (opt & 4) { /* -P */
+ if (opt & 8) { /* -P */
SERVER_PORT = xatou16(str_P);
CLIENT_PORT = SERVER_PORT + 1;
}