Browse Source

Add debug message when nameserver setting is applied/changed via DHCP.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
237e23c1c9
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/net/udp/dns.c

+ 4
- 0
src/net/udp/dns.c View File

517
 	sin_nameserver = ( struct sockaddr_in * ) &nameserver;
517
 	sin_nameserver = ( struct sockaddr_in * ) &nameserver;
518
 	sin_nameserver->sin_family = AF_INET;
518
 	sin_nameserver->sin_family = AF_INET;
519
 	dhcp_ipv4_option ( option, &sin_nameserver->sin_addr );
519
 	dhcp_ipv4_option ( option, &sin_nameserver->sin_addr );
520
+
521
+	DBG ( "DNS using nameserver %s\n",
522
+	      inet_ntoa ( sin_nameserver->sin_addr ) );
523
+
520
 	return 0;
524
 	return 0;
521
 }
525
 }
522
 
526
 

Loading…
Cancel
Save