port OpenBSD ifconfig to FreeBSD

2021-09-14 Thread Zak
hi,

how involved would it be to port the OpenBSD ifconfig command and
functionality to FreeBSD? my use case for this would be to add support
to FreeBSD ifconfig that would allow me to interactively connect to
WPA networks, including secrets and keys,, via the command line
without resorting to externally packaged wpa network tools or editing
a file like wpa_supplicant.conf.

see: https://man.openbsd.org/ifconfig.8



Re: port OpenBSD ifconfig to FreeBSD

2021-09-14 Thread Adrian Chadd
hi!

On Tue, 14 Sept 2021 at 21:04, Zak  wrote:
>
> hi,
>
> how involved would it be to port the OpenBSD ifconfig command and
> functionality to FreeBSD? my use case for this would be to add support
> to FreeBSD ifconfig that would allow me to interactively connect to
> WPA networks, including secrets and keys,, via the command line
> without resorting to externally packaged wpa network tools or editing
> a file like wpa_supplicant.conf.
>
> see: https://man.openbsd.org/ifconfig.8
>

It's not that easy; openbsd moved a bunch of functionality around to
support WPA in their net80211. We don't have that; it's driven by
userspace.

Although! If you're asking about better tools to configure a
wpa_supplicant process, that would be nice to code up and put into
base.



-adrian