NetBSD-Bugs archive

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

re: kern/39424 (SIOCGIFFLAGS ioctl(2) from 4.0 does not work under compat netbsd32)



The following reply was made to PR kern/39424; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: matthew green <mrg%eterna.com.au@localhost>, gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, dsl%NetBSD.org@localhost, 
njoly%pasteur.fr@localhost
Subject: re: kern/39424 (SIOCGIFFLAGS ioctl(2) from 4.0 does not work under 
compat netbsd32)
Date: Sat, 5 Dec 2009 12:07:00 -0500

 On Dec 5,  8:41am, mrg%eterna.com.au@localhost (matthew green) wrote:
 -- Subject: re: kern/39424 (SIOCGIFFLAGS ioctl(2) from 4.0 does not work unde
 
 | 
 | my guess is that this commit is the problem:
 | 
 |      http://mail-index.netbsd.org/source-changes/2007/05/29/msg186117.html
 | 
 | it changed the size of struct ifreq, pushing the ifru_flags flags further
 | into memory by sizeof(struct sockaddr_storage).
 | 
 | christos?  the comment says it should be backwrds compatible.
 
 Yes, the code is supposed to be backwards compatible by checking the type/size
 of the ioctl and emulating it.
 
 christos
 


Home | Main Index | Thread Index | Old Index