[Bug 1841] Incorrect processing of DNS info from DHCP

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Sun Dec 4 23:03:58 UTC 2011


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

--- Comment #3 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-12-04 17:03:57 CST ---
For (1), how about this?

Index: rtems/rtems_dhcp.c
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/libnetworking/rtems/rtems_dhcp.c,v
retrieving revision 1.9
diff -r1.9 rtems_dhcp.c
1089c1089
<         strcat(buf, inet_ntoa(rtems_bsdnet_ntpserver[i]));
---
>         strcat(buf, inet_ntoa(rtems_bsdnet_nameserver[i]));

For (2), I see it statically initialized to 0 in rtems_glue.c

./rtems/rtems_glue.c:int rtems_bsdnet_nameserver_count = 0;

If you are OK with only the change for (1), then I will commit this to all
applicable branches.  This impacts 4.10 I am sure.

-- 
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