• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bio-routing / bio-rd / 964 / 1
76%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coverage-badge
DEFAULT BRANCH: master
Ran 19 Oct 2018 09:42PM UTC
Files 338
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Oct 2018 09:22PM UTC coverage: 32.66% (-0.1%) from 32.804%
964.1

push

travis-ci

cedi
Implement Netlink

With this commit i'm introducing the netlink protocol to read routes
from the linux kernel routing table to the locRIB.
This also adds the functionality to insert new routes to the linux
kernel routing stack which where learned by other protocol (like e.g.
BGP).

This is done by the protocols/netlink/netlink.go object.
The netlink.go file acts as an facade around the netlink_reader.go and
netlink_writer.go.

netlink_reader itself reads in a defined reding interval new routes from
the kernel and propagates new routes to all subscribed clients.
The netlink reader can also be filtered using the same filter-api as in
adjRibIn/adjRibOut for BGP.
To read new routes to the locRIB you have to register the locRIB to the
netlink_reader using the ClientManager interface, just like you would
register the locRIB to the adjRibIn.

netlink_writer must be subscribed to the locRIB in order to write the
routes from locRIB into the kernel.
This useses the ClientManager interface, just like you would register
the adjRibOut to the locRIB.
netlink_writer itself currently does not support filters, since all
routes form the locRIB should be written to the kernel.
The filter functionality could be easily added here as well.

The netlink_writer currently does not support ecmp. This is subject of
an other commit.

The current implementation could be considered as work in progress, but
the code is mature enough to start a review on it.

7325 of 22428 relevant lines covered (32.66%)

0.36 hits per line

Source Files on job 964.1
  • Tree
  • List 0
  • Changed 54
  • Source Changed 29
  • Coverage Changed 53
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 779
  • Travis Job 964.1
  • e1226a26 on github
  • Prev Job for on feature/netlink (#785.1)
  • Next Job for on feature/netlink (#966.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc