Re: struct ifnet is now hidden

Cheng Cui <[email protected]>
Newsgroups gmane.os.freebsd.architechture,gmane.os.freebsd.devel.net
Message-ID <CAGaXui+mz5O7MEsVWhFdW=KfYJ-sJwBKhtjAH+SFoh07hsjMdw@mail.gmail.com>
👍👍 You have my thumbs up!

cc

On Wed, Nov 13, 2024 at 2:38 PM Justin Hibbits <[email protected]> wrote:

> Hi everyone,
>
> Many thanks to everyone involved, either fixing ports, reviewing
> changes, or assisting with the API, struct ifnet is now hidden from
> drivers and userspace.  This means drivers now use the IfAPI, currently
> largely consisting of just getters and setters in place of direct
> access, with tools/ifnet/convert_ifapi.sh being a good starting point
> for adapting drivers.
>
> In struct ifnet's place is if_t, an opaque pointer.  "Blessed" parts of
> the kernel, effectively anything sys/net*, modulo sys/netlink, can
> directly access it, as those directories comprise the network stack, so
> need direct access, as they manage the interfaces.  Manpage updates
> will be coming "soon", I'm hoping in the next few weeks, and will
> likely need lots of review and editing.
>
> Again, thanks for everyone's help.  I hope the road forward with this
> is not too bumpy.
>
> - Justin
>
>

-- 
Best Regards,
Cheng Cui
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.