Thinking about writing something I'm calling wifid

2016-08-02 Thread Bryan Everly
Hi everyone, I'm looking for feedback before I burn time on this project so please let me know what you think. I'm thinking about building a daemon that I'll write in C (looked at the httpd code in /usr.sbin/httpd as a reference) that essentially monitors your network connectivity in the bac

Re: Thinking about writing something I'm calling wifid

2016-08-02 Thread Raul Miller
On Tue, Aug 2, 2016 at 10:09 AM, Bryan Everly wrote: > Heck, I could probably write it as a shell script and just stuff it in my > crontab. Good plan. Though, personally, if I were in your situation, I'd skip the crontab part. I happen to like knowing when my network endpoint changes. -- Raul

Re: Thinking about writing something I'm calling wifid

2016-08-02 Thread Theo de Raadt
> 3. My initial thought was to do the same things in my daemon that are > going on in the source of ifconfig.c - specifically the setifnwid(), > setifwpakey() and setifflags() functions (as opposed to shell exec'ing > the commands themselves). I'd prefer not to be someone who does "editor > r

Re: Thinking about writing something I'm calling wifid

2016-08-02 Thread Jiri B
On Tue, Aug 02, 2016 at 10:09:48AM -0400, Bryan Everly wrote: > Hi everyone, > > I'm looking for feedback before I burn time on this project so please let me > know what you think. > > I'm thinking about building a daemon that I'll write in C (looked at the > httpd code in /usr.sbin/httpd as a re

Re: Thinking about writing something I'm calling wifid

2016-08-02 Thread Kamil CholewiƄski
On Tue, 02 Aug 2016, Theo de Raadt wrote: > The kernel should have a better way of exporting stations it knows about > live, rather than userland forcing channel hops and station changes out > of sync with the kernel. Perhaps overloading kevent? EVFILT_IEEE80211?

Re: Thinking about writing something I'm calling wifid

2016-08-02 Thread Gilles Chehade
On Tue, Aug 02, 2016 at 04:58:18PM +0200, Kamil Cholewi??ski wrote: > On Tue, 02 Aug 2016, Theo de Raadt wrote: > > The kernel should have a better way of exporting stations it knows about > > live, rather than userland forcing channel hops and station changes out > > of sync with the kernel. > >

Re: Thinking about writing something I'm calling wifid

2016-08-03 Thread Bryan Everly
Hi everyone, I'm looking for feedback before I burn time on this project so please let me know what you think. I'm thinking about building a daemon that I'll write in C (looked at the httpd code in /usr.sbin/httpd as a reference) that essentially monitors your network connectivity in the bac