NetBSD-Bugs archive

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

Re: kern/58235: compat_netbsd32 broken for SIOCGIFDATA



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

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/58235: compat_netbsd32 broken for SIOCGIFDATA
Date: Wed, 8 May 2024 18:35:52 +0200

 On Wed, May 08, 2024 at 04:30:02PM +0000, Martin Husemann wrote:
 >  GENERIC has all compat code builtin.
 
 At first glance it is trivial to add. The ioctl arg includes if_data,
 which is *nearly* constant size but has a struct timespec at the end,
 so the size of the struct will vary slightly (causing the numeric value
 of the ioctl to not match) and the only translation needed is a
 netbsd32_to_timespec() for ifi_lastchange.
 
 Martin
 


Home | Main Index | Thread Index | Old Index