Bug 624878 - dhcpv6: fix the typo when parsing REBINDTIME option
dhcpv6: fix the typo when parsing REBINDTIME option
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: dhcpv6 (Show other bugs)
12
All Linux
low Severity medium
: ---
: ---
Assigned To: Orphan Owner
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-17 21:24 EDT by ShanWei
Modified: 2010-09-03 03:48 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-09-03 03:48:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ShanWei 2010-08-17 21:24:06 EDT
When I used dhcp6c, I found the the error:
Aug/17/2010 23:07:13 /tmp/dhcp6c.conf:6 duplicated rebindtime for eth1
Aug/17/2010 23:07:13 failed to parse configuration file
 
Steps to Reproduce:
1. create config file
[root@(none) ~]# cat /tmp/dhcp6c.conf
interface eth1
{
 iaid 111111;
 request domain-name-servers;
 request domain-search-list;
 renew-time 50;
 rebind-time 80;
};

2.#dhcp6c -f -v -c /tmp/dhcp6c.conf eth1
(version:dhcpv6-client-1.2.0-4.fc12.x86_64)

With the meaning of the message, dhcp6c should check ifc->iaidinfo.rebindtime not ifc->iaidinfo.iaid.

P.S. I have compiled dhcpv6 source and met the error of "No package 'libnl-1' found". So this patch is not test.


Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
 src/confdata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/confdata.c b/src/confdata.c
index 285f017..64ad83c 100644
--- a/src/confdata.c
+++ b/src/confdata.c
@@ -212,7 +212,7 @@ int configure_interface(const struct cf_namelist *iflist) {
 
                     break;
                 case DECL_REBINDTIME:
-                    if (ifc->iaidinfo.iaid) {
+                    if (ifc->iaidinfo.rebindtime) {
                         dhcpv6_dprintf(LOG_ERR, "%s" "%s:%d "
                                        "duplicated rebindtime for %s",
                                        FNAME, configfilename,
Comment 1 ShanWei 2010-09-03 03:48:53 EDT
dhcpv6 (and dhcpv6-client) has been obsoleted. And there is no problem in dhclient packet. So close this one.

Note You need to log in before you can comment on or make changes to this bug.