Received: from wotho.pd.uwa.edu.au (root@wotho.pd.uwa.edu.au [130.95.156.81])
	by canoepolo.pd.uwa.edu.au (8.9.0/8.9.0) with ESMTP id VAA26545
	for <stuart@canoepolo.physics.uwa.edu.au>; Wed, 15 Sep 1999 21:06:27 +0800 (WST)
Received: from DENALI.ntsi.com (newtechsolutions.com [199.103.215.130])
	by wotho.pd.uwa.edu.au (8.9.1/8.9.1/Debian/GNU) with ESMTP id VAA26420
	for <stuart@physics.uwa.edu.au>; Wed, 15 Sep 1999 21:06:18 +0800
Received: by DENALI with Internet Mail Service (5.0.1457.3)
	id <S75QZAFW>; Wed, 15 Sep 1999 09:02:38 -0400
Message-ID: <5571C2894B7AD111B6530060977896646A89FA@DENALI>
From: James Peret <jperet@ntsi.com>
To: Stuart Midgley <stuart@physics.uwa.edu.au>
Subject: RE: Bug???
Date: Wed, 15 Sep 1999 09:02:35 -0400
X-Priority: 3
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1457.3)
Content-Type: text/plain
X-Mozilla-Status2: 00000000

try inserting the following into the top of dev.c  (this source was
given to me by "m.")

as for submitting a kernel fix, i never thought i would ever be able to
contribute anything.    I'm not even a programmer.  do you think this is
worth a mention to linus?

______________________________________


struct osf_ifdevea {
	char ifr_nam[16];
	char default_pa[6];
	char current_pa[6];
};

int osf_siocrphysaddr(void *addr) {
	struct osf_ifdevea devea;
	struct device *dev;

	if(copy_from_user(&devea, addr, sizeof(devea)))
		return -EFAULT;
	if(!(dev = dev_get(devea.ifr_nam)))
		return -ENODEV;
	memcpy(&devea.default_pa, &device->dev_addr, 6);
	memcpy(&devea.current_pa, &device->dev_addr, 6);
	if(copy_to_user(addr, &devea, sizeof(devea)))
		return -EFAULT;
	return 0;
}

______________________________________

-----Original Message-----
From: Stuart Midgley [mailto:stuart@physics.uwa.edu.au]
Sent: Tuesday, September 14, 1999 11:40 PM
To: James Peret
Subject: Re: Bug???


James

OK, I modified dev.c but when I tried to compile it I got an error
saying that SIOCRPHYSADDR was not declared.

Anyway, I just removed that line and it compiled.  I will let you know
how I go.

Have you submitted the big/fix to Linus and the Kernel team?

Stu.


James Peret wrote:
> 
> Stu,
> 
> looks like one of the errors i got when i tried to run pro-engineer.
> Below is a submission to the list earlyer in the week.  It looks like
> you might gain a little.
> 
> __________________________________________
> 
> I tried to get the Dec Unix version of Pro-Engineer running on a
pc164,
> Red Hat 5.2, kernel 2.2.7,  Pro-Engineer version 20, build 9852.
> 
> It was a very dificult task.  Machine type is referenced through a
> "uname -a" in many places, and i had to change several scripts that
> called the machine type.
> 
> Also, there are a couple ioctrl calls that were allocated inside dec
> unix that are missing from linux.  they are:
> 
> SIOCRPHYSADDR
> SIOCGIFFLAGS
> SIOCGIFCONF
> 
> to fix these, add the following lines to net/core/dev.c:dev_ioctl()
and
> recompile your kernel.
> 
>         if(cmd == 0xc0106914)
>                 cmd = SIOCGIFCONF;
>         if(cmd == 0xc0206911)
>                 cmd = SIOCGIFFLAGS;
>         if(cmd == 0xc01c693e)
>                 cmd = SIOCRPHYSADDR;
> 
> and this is where the fun ended.  I then ran into licensing issues,
> specifically the error:
> 
> ERROR: could not connect to NameServer.
> 
> and could not continue.
> I was helped tremendously on this project by a person identified only
by
> "m.", from perth.  Even though i was unsuccessful, i am still greatful
> for his help.
> 
> -red
> 
> 

-- 
<--------------------------------------------------------------------->
  Stuart Midgley                      |  stuart@physics.uwa.edu.au
  Department of Physics               |  08 9380 7898   Wk
  University of Western Australia     |  08 9380 1014   Fax

