public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BOOTP and 2.4.14
@ 2001-11-15  6:28 summer
  2001-11-15 15:11 ` David S. Miller
  2001-11-15 21:13 ` Peter Wächtler
  0 siblings, 2 replies; 5+ messages in thread
From: summer @ 2001-11-15  6:28 UTC (permalink / raw)
  To: Linux kernel, netdev; +Cc: davem


I'm trying to configure a system to boot with root on NFS. I have it 
working, but there are problems.

The most serious are that the DNS domain name is set wrongly, and NIS 
domain's not set at all.

The IP address offered and accepted in 192.168.1.20.

The DNS domain name being set is 168.1.20, and the host name 192.


I'm looking at the ipconfig.c source, around line 1324 where I see this 
code:
			case 4:
				if ((dp = strchr(ip, '.'))) {
					*dp++ = '\0';
					strncpy(system_utsname.domainname, dp, __NEW_UTS_LEN);
					system_utsname.domainname[__NEW_UTS_LEN] = '\0';
				}
				strncpy(system_utsname.nodename, ip, __NEW_UTS_LEN);
				system_utsname.nodename[__NEW_UTS_LEN] = '\0';
				ic_host_name_set = 1;
				break;


I can see how the dnsdomain name's being set, and it does not look 
right to me.

If someone can prepare a patch for me, I'll be delighted to test it.


-- 
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my 
disposition.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-16 15:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-15  6:28 BOOTP and 2.4.14 summer
2001-11-15 15:11 ` David S. Miller
2001-11-15 19:01   ` summer
2001-11-15 21:13 ` Peter Wächtler
2001-11-15 23:50   ` summer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox