Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please Help: Root-NFS: No NFS Server




On 4/7/00 3:47 AM Eric Dahnke edahnke@istreetlabs.com wrote:
>option subnet-mask 255.255.0.0;
>option broadcast-address 192.168.255.255;
>option routers 192.168.40.2;

I can't easily test this right now, but I have a theory.

In src/main.c aound line 322 you will find the following function:

/**************************************************************************

DEFAULT_NETMASK - Return default netmask for IP address
**************************************************************************/

static inline unsigned long default_netmask(void)
{
	int net = ntohl(arptable[ARP_CLIENT].ipaddr.s_addr) >> 24;
	if (net <= 127)
		return(htonl(0xff000000));
	else if (net < 192)
		return(htonl(0xffff0000));
	else
		return(htonl(0xffffff00));
}

Could you make it look like this for test purposes:

/**************************************************************************

DEFAULT_NETMASK - Return default netmask for IP address
**************************************************************************/

static inline unsigned long default_netmask(void)
{
  		return(htonl(0xffff0000));
}

Then make a new floppy and try booting.

I just read the tftp code, and although I can't be positive, it looks 
like it might be setting setting the netmask improperly for non class-C 
(255.255.255.0) networks and never fixing it up.  ARP state info might 
not be getting passed or set properly.

The other obvious debugging question is "can you tftp across the same 
gateway manually?".  Etherboot is basically just doing DHCP/BOOTP 
followed by a TFTP of the kernel, so if you set up a machine on one side 
of a gateway, and tftp the kernel over from the other side of the 
gateway, from a booted Linux machine, it would demonstrate that tftping 
across the gateway.

I apologize for not being able to more completely test this right now, 
but hopefully this debugging advice will help move the conversation 
forward.

Regards,

Marty

---
   Name: Martin D. Connor
US Mail: Entity Cyber, Inc.; P.O. Box 391827; Cambridge, MA 02139; USA
  Voice: (617) 491-6935, Fax: (617) 491-7046 
  Email: mdc@thinguin.org
    Web: http://www.thinguin.org/


===========================================================================
This Mail was sent to netboot mailing list by:
Marty Connor <mdc@thinguin.org>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.