Skip to content
Snippets Groups Projects
  1. Jan 14, 2019
  2. Dec 29, 2018
  3. Nov 21, 2018
  4. Nov 20, 2018
  5. Nov 18, 2018
  6. Nov 12, 2018
  7. Oct 27, 2018
  8. Oct 25, 2018
  9. Oct 22, 2018
    • cedi's avatar
      Cleanup code and address @BarbarossaTM pull request remarks · d55bc402
      cedi authored
      - Remove Makefile for adding it later in a seperate PR
      - Remove main files which where added by accident
      - Add constants for IPv4 and IPv6
      - Improve log messages
      - Simplify netlink_reader addPathsToClients and removePathsFromClients
      - Refactor Route's Equal function
      - Return false for ECMP in netlink_path since ecmp is currently not
      implemented in netlink
      d55bc402
  10. Oct 20, 2018
    • cedi's avatar
      Improve documentation · 6c0bab61
      cedi authored
      This commit improves the documentation of exported functions, so GoDoc
      is able to provide more informations on them
      6c0bab61
  11. Oct 19, 2018
    • cedi's avatar
      Implement Netlink · e1226a26
      cedi authored
      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.
      e1226a26
Loading