Open
Conversation
Since the interfaces are still available to the kernel, Quagga can listen and install routes for the interfaces assigned to netmap-fwd Ribsync module will listen for those RIB events and will update it.s internal routing table accordingly First test: create ribsync module, hook into the event system and listen for RIB events
There is some 64bit(long) alignment involved here, have no ideea where it is documented I have used dnsmasq code: https://github.com/liquidm/dnsmasq/blob/8b285b8cd2e289e532b106a797d540f016eb7ab0/src/bpf.c#L436
Could not use existing route(add/del) functions because I would have to expose internal state outside of inet module and I don't want to do that. I basically used inet_cli_route_(add/del) and took out the cli parsing stuff.
This will increase mem usage (~200mb) so this should be just a temp. workaround
|
On a fresh FreeBSD 12-head (r315463) with this patch, I've got on the console error message "Route message contains errors(1500), SKIPPING." and routes are not synced. |
Author
|
Hello Olivier, I will try next week to build it on the latest iso from here: |
|
There is some ARP resolution problem too with this patch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Here are the changes i made to import BGP routes in netmap-fwd ( #3 )