[Top] [All Lists]

Re: Problems booting Indigo...

To: (Chris Ruvolo)
Subject: Re: Problems booting Indigo...
From: (William Fisher)
Date: Tue, 30 May 2000 21:10:28 -0700 (PDT)
Cc:, (Jan-Benedict Glaw), (William Fisher)
In-reply-to: <> from "Chris Ruvolo" at May 30, 2000 08:12:53 PM
> On Wed, 31 May 2000, Jan-Benedict Glaw wrote:
> >       [root@parkautomat:/root] #> arp -s 08:00:69:06:BA:2E
> I didn't need to do this to get the bootp response.
> >     - ISC dhcpd from .deb (2.0-3) with very short config:
> I switched to this and it works.
> >Effect: The Indigo gets its config, but unfortunately it seems that
> >incoming tftp UDP packets are not accepted. This might be because
> >the originating port is != 69 (which is tftp):
> Ok, I'm now in the same boat.
> >Now the final question: How can I make in.tftpd to answer *from* port 69?
> I'm not sure this is the problem.  I believe RFC-compliant TFTP servers
> use system-assigned ports for each client connection.  At least, I've seen
> this behavior on other TFTP servers.  But, you may be right.  The client
> could be expecting replies only on port 69.  I don't know if this is
> possible without modifying the TFTP server.
> Can anyone confirm this?
> Thanks,
> Chris
> PS: Please cc responses to me.
        Ok, I looked at the ARCS prom code for the Indy series machine aka an 
        in SGI hardware speak.

This code is from the BSD 4.3 distribution with some minor additions to support
one of the last RFC's which added a few more options to the tftp protocol.

The code in main.c looks like:

struct  servent *sp;

main(argc, argv)
        char *argv[];
        struct sockaddr_in sin;
        int top;

        sp = getservbyname("tftp", "udp");
        if (sp == 0) {
                fprintf(stderr, "tftp: udp/tftp: unknown service\n");
        f = socket(AF_INET, SOCK_DGRAM, 0);
        if (f < 0) {
                perror("tftp: socket");
        bzero((char *)&sin, sizeof (sin));
        sin.sin_family = AF_INET;
        if (bind(f, &sin, sizeof (sin)) < 0) {
                perror("tftp: bind");
        strcpy(mode, "netascii");
        signal(SIGINT, intr);
        if (argc > 1) {
                if (setjmp(toplevel) != 0)
                setpeer(argc, argv);
        top = setjmp(toplevel) == 0;
        for (;;)

The socket descriptor "f" is used to receive the data from the wire.

The standard line in the /etc/services file for "tftp" contains:

tftp            69/udp

which will be returned in the "struct  servent *sp" on the "getservbyname()" 

I looked at both tftp and tftpd and nowhere is there any checks for
the UDP packet arriving on port 69. Are you sure this is the underlying
cause of the problem? I didn't look at your packet trace in gory details.

You can look at the stand BSD 4.X release for the nearly identical source
code that is used in the SGI proms.

-- Bill (

<Prev in Thread] Current Thread [Next in Thread>