Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Oct 2023 23:29:01 +0700
From:      Eugene Grosbein <eugen@freebsd.org>
To:        Roy Marples <roy@marples.name>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   =?UTF-8?Q?Re:_=c2=a0netif_userland_API?=
Message-ID:  <847fa0cf-db1e-45b3-3a0a-37dd647dabc9@freebsd.org>
In-Reply-To: <18b77179746.d0c6d171174837.5548971766419580308@marples.name>
References:  <f889550b-191d-efdd-4346-7b5b060ee53a@freebsd.org> <18b77179746.d0c6d171174837.5548971766419580308@marples.name>

next in thread | previous in thread | raw e-mail | index | archive | help
28.10.2023 23:21, Roy Marples wrote:

> What you would do is open a route socket, then call getifaddrs and then listen on the route socket for new interfaces.
> 
> Then you can maintain a list of current vlans and take action accordingly.

I'd like to be able to make a couple of system calls only to get a list of pre-created vlans for a moment.
Efficiently and scalable. Not making thousands of reads (syscalls) from routing sockets
and not syncing with the kernel.

Eugene




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?847fa0cf-db1e-45b3-3a0a-37dd647dabc9>