add freebsd ntrack backend

Bug #448398 reported by Alexander Sack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntrack
Triaged
Wishlist
Unassigned

Bug Description

freebsd support would be nice.

from what I understood, the freebsd route API is more or less similar to what we have with rtnetlink in linux

So it also uses messages over a PF_ROUTE socket to signal changes to the routing table. I am not exactly sure how to get updates on the IF and IFA parts; however, we don't use that for libnl backend either atm and i am not so sure if anything but the IF link state is of any relevance for the use-case implemented.

With some luck changes to the IF and IFA will also trigger route messages, so we don't need to explicitly poll through sysctl in order to support the "temporary link down" use-case.

The manpage of the freebsd route(4) api is here:

http://www.freebsd.org/cgi/man.cgi?query=route&apropos=0&sektion=4&manpath=FreeBSD+7.2-RELEASE&format=html

one point different to the linux rtnetlink approach seems to be that you do not need to explicitly subscribe to events in order to get them. Rather you would need to opt-out to not get all system wide route changes pushed.

Alexander Sack (asac)
description: updated
description: updated
description: updated
Changed in ntrack:
status: New → Triaged
importance: Undecided → Wishlist
Alexander Sack (asac)
description: updated
Revision history for this message
Alexander Sack (asac) wrote :

i committed the bsd stub to a topic branch ... lp:~asac/ntrack/main.lp448398.bsd-backend linking that to the bug accordingly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.