mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-05 04:05:34 +00:00
* Only copy first DNS server (correctly).
This commit is contained in:
parent
5abe5334c8
commit
1c3ac47557
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the uIP TCP/IP stack.
|
* This file is part of the uIP TCP/IP stack.
|
||||||
*
|
*
|
||||||
* $Id: tunslip.c,v 1.11 2007/04/04 11:54:45 bg- Exp $
|
* $Id: tunslip.c,v 1.12 2007/04/30 12:28:29 bg- Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -278,8 +278,9 @@ relay_dhcp_to_client(int slipfd)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case DHCP_OPTION_DNS_SERVER: /* Only copy first server */
|
case DHCP_OPTION_DNS_SERVER: /* Only copy first server */
|
||||||
memcpy(t, p, 4/**/ + 2);
|
*t++ = p[0];
|
||||||
t += 4/**/ + 2;
|
*t++ = 6;
|
||||||
|
memcpy(t, p + 2, 4); t += 4;
|
||||||
p += p[1] + 2;
|
p += p[1] + 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user