[Bug 1841] Incorrect processing of DNS info from DHCP

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Dec 7 02:30:50 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1841

--- Comment #7 from Chris Johns <chrisj at rtems.org> 2011-12-06 20:30:38 CST ---
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #3)
> > > 
> > > For (2), I see it statically initialized to 0 in rtems_glue.c
> > > 
> > > ./rtems/rtems_glue.c:int rtems_bsdnet_nameserver_count = 0;
> > > 
> > 
> > This is no good. It only works for the first attempt. Any further DHCP requests
> > will create a problem. The '= 0' should be removed and the value set when the
> > request is processed.
> 
> Does anyone tracking this PR have a suggestion on where to put the "= 0"?
> 

Yes, leave it where it is. Thinking a little more about this we cannot reset
the value to 0. The correct solution is to track static and DHCP entries and
remove only the DHCP entries when a new request is received. This would be done
in dhcp_task after a valid ACK is received. We should also remove entries once
a lease expires.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list