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: matthew green <mrg%eterna.com.au@localhost>
To: christos%zoulas.com@localhost (Christos Zoulas)
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,
    gnats-bugs%NetBSD.org@localhost
Subject: re: kern/39424 (SIOCGIFFLAGS ioctl(2) from 4.0 does not work under 
compat netbsd32)
Date: Sun, 06 Dec 2009 07:15:19 +1100

    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.
 
 i don't see any references to "oifreq" in sys/compat/netbsd32.
 
 can you have a look at this please?
 
 
 .mrg.
 


Home | Main Index | Thread Index | Old Index