1. 30 Apr, 2012 1 commit
    • Ondřej Zajíček's avatar
      Cleanup in sysdep KRT code, part 1. · 396dfa90
      Ondřej Zajíček authored
      OS-dependent functions renamed to be more consistent,
      prepared to merge krt-set and krt-scan headers.
      Name changes:
      struct krt_if_params -> struct kif_params
      struct krt_if_status -> struct kif_status
      struct krt_set/scan_params -> struct krt_params
      struct krt_set/scan_status -> struct krt_status
      krt_if_params_same -> kif_sys_reconfigure
      krt_if_copy_params -> kif_sys_copy_config
      krt_set/scan_params_same -> krt_sys_reconfigure
      krt_set/scan_copy_params -> krt_sys_copy_config
      krt_if_scan -> kif_do_scan
      krt_set_notify -> krt_do_notify
      krt_scan_fire -> krt_do_scan
      krt_if_ -> kif_sys_
      krt_scan_ -> krt_sys_
      krt_set_ -> krt_sys_
  2. 07 Nov, 2011 1 commit
    • Ondřej Zajíček's avatar
      Implements protocol templates. · a7f23f58
      Ondřej Zajíček authored
      Based on the patch from Alexander V. Chernikov.
      Extended to support almost all protocols.
      Uses 'protocol bgp NAME from TEMPLATE { ... }' syntax.
  3. 17 Jan, 2000 1 commit
  4. 03 Mar, 1999 1 commit
    • Martin Mareš's avatar
      Rewrote the kernel syncer. The old layering was horrible. · 2d140452
      Martin Mareš authored
      The new kernel syncer is cleanly split between generic UNIX module
      and OS dependent submodules:
        -  krt.c (the generic part)
        -  krt-iface (low-level functions for interface handling)
        -  krt-scan (low-level functions for routing table scanning)
        -  krt-set (low-level functions for setting of kernel routes)
      krt-set and krt-iface are common for all BSD-like Unices, krt-scan is heavily
      system dependent (most Unices require /dev/kmem parsing, Linux uses /proc),
      Netlink substitues all three modules.
      We expect each UNIX port supports kernel routing table scanning, kernel
      interface table scanning, kernel route manipulation and possibly also
      asynchronous event notifications (new route, interface state change;
      not implemented yet) and build the KRT protocol on the top of these
      primitive operations.
  5. 05 Feb, 1999 1 commit
  6. 08 Dec, 1998 1 commit
    • Martin Mareš's avatar
      Hopefully finished kernel syncer (krt) rewrite: · 8e66a0eb
      Martin Mareš authored
        o  Interface syncing is now a part of krt and it can have configurable
           parameters. Actually, the only one is scan rate now :)
        o  Kernel routing table syncing is now synchronized with interface
           syncing (we need the most recent version of the interface list
           to prevent lots of routes to non-existent destinations from
           appearing). Instead of its own timer, we just check if it's
           route scan time after each iface list scan.
        o  Syncing of device routes implemented.
        o  CONFIG_AUTO_ROUTES should control syncing of automatic device routes.
        o  Rewrote krt_remove_route() to really remove routes :)
        o  Better diagnostics.
        o  Fixed a couple of bugs.