|
@@ -750,6 +750,11 @@ static void __init ic_bootp_init_ext(u8 *e)
|
|
*/
|
|
*/
|
|
static inline void __init ic_bootp_init(void)
|
|
static inline void __init ic_bootp_init(void)
|
|
{
|
|
{
|
|
|
|
+ /* Re-initialise all name servers to NONE, in case any were set via the
|
|
|
|
+ * "ip=" or "nfsaddrs=" kernel command line parameters: any IP addresses
|
|
|
|
+ * specified there will already have been decoded but are no longer
|
|
|
|
+ * needed
|
|
|
|
+ */
|
|
ic_nameservers_predef();
|
|
ic_nameservers_predef();
|
|
|
|
|
|
dev_add_pack(&bootp_packet_type);
|
|
dev_add_pack(&bootp_packet_type);
|
|
@@ -1370,6 +1375,13 @@ static int __init ip_auto_config(void)
|
|
int err;
|
|
int err;
|
|
unsigned int i;
|
|
unsigned int i;
|
|
|
|
|
|
|
|
+ /* Initialise all name servers to NONE (but only if the "ip=" or
|
|
|
|
+ * "nfsaddrs=" kernel command line parameters weren't decoded, otherwise
|
|
|
|
+ * we'll overwrite the IP addresses specified there)
|
|
|
|
+ */
|
|
|
|
+ if (ic_set_manually == 0)
|
|
|
|
+ ic_nameservers_predef();
|
|
|
|
+
|
|
#ifdef CONFIG_PROC_FS
|
|
#ifdef CONFIG_PROC_FS
|
|
proc_create("pnp", 0444, init_net.proc_net, &pnp_seq_fops);
|
|
proc_create("pnp", 0444, init_net.proc_net, &pnp_seq_fops);
|
|
#endif /* CONFIG_PROC_FS */
|
|
#endif /* CONFIG_PROC_FS */
|
|
@@ -1593,6 +1605,7 @@ static int __init ip_auto_config_setup(char *addrs)
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* Initialise all name servers to NONE */
|
|
ic_nameservers_predef();
|
|
ic_nameservers_predef();
|
|
|
|
|
|
/* Parse string for static IP assignment. */
|
|
/* Parse string for static IP assignment. */
|