Subject: ifconfig and power-off update
To: None <>
From: Scott Kaplan <>
List: macbsd-general
Date: 11/05/1994 22:16:17
Okay, I did a little troubleshooting with regards to ifconfig triggering
the power-off on my IIci.  Within the main() function of ifconfig.c, there
is the following section around line 300:

        if (newaddr) {
                strncpy(rafp->af_addreq, name, sizeof ifr.ifr_name);
                if (ioctl(s,rafp->af_aifaddr, rafp->af_addreq) < 0)
                        Perror("ioctl (SIOCAIFADDR)");

I put in a little debugging code (the infamous "printf" debugging type of
code, that is) and found that the power is shut down by the ioctl() call.
I had the values of the parameters being passed in to ioctl printed out,
and here's what they were:


I'm guessing that it's the middle value which is fouling things up.  So,
someone who really has a clue what's going on here want to give a stab at
fixing this?

Another problem, unrelated.  I got dt to compile with the new 1.0 kernel.
But still, just as with the version I compiled under the 0.9C kernel, it
clears the screen gives a couple of errors (I listed them earlier, but
can't find them now), and dumps core.  Am I the only one with this trouble?
Would anyone like me to go back and get those error messages?

Scott Kaplan