The situation:
I found myself in need of an additional NIC for my pfSense router/firewall. I had a few choices...
- shell out over $100 for a dual port gigabit card
- buy a new motherboard that has dual ports on it
buy a 2U server case so I can make use of the remaining PCI slots on the existing motherboard (and thus also buy more single port NICs)
or
- use a USB NIC.
The cheapest of the 4 was to go USB, so I bought one. However, as I read through what I was getting into, I read a bit too fast. The drivers that are available are for: Mac, Windows, and Linux. Not bad... But, FreeBSD and hence pfSense, won't use any of those drivers.
So, I find myself in a position to either scrap the NIC for later use, come up with some kind of a wrapper for one of the existing drivers, or worst case would be writing a whole new driver. If I bench the NIC, I'm stuck with purchasing more expensive hardware, and unless someone convinces me otherwise... writing a completely new driver is a bit more of a challenge than I think I'm up to. That leaves making a wrapper as my best option.
The Question:
Does anyone have any helpful advice on where to start with making a wrapper for drivers to be used in FreeBSD? Are there already turn key solutions for doing this that I just haven't found?
The USB NIC uses the Asix Chipset AX88179.
Thank you in advance for any help.