]> git.puffer.fish Git - mirror/frr.git/commit
zebra: extern/extract some functions from rt_netlink.c
authorAvneesh Sachdev <avneesh@opensourcerouting.org>
Tue, 13 Nov 2012 22:48:56 +0000 (22:48 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 30 Nov 2012 20:41:17 +0000 (21:41 +0100)
commit78deec450cfa5ddcad290c13b36dd1d187da213e
treebf6e811b78c726db3fe00b168b35a67e9aa586c1
parent0915bb0ce2ca6b5fee2cd214be4499eeeaf1c9af
zebra: extern/extract some functions from rt_netlink.c

* zebra/{rib.h,zebra_rib.c}

    Add nexthop_type_to_str(), which returns a human-readable string
    corresponding to a nexthop type.

  * zebra/rt_netlink.[hc]

    - Add new header file that exposes some existing and new
      netlink-related functions from rt_netlink.c to the rest of
      zebra.

        addattr32
        addattr_l
        rta_addattr_l
        nl_msg_type_to_str (new)
        nl_rtproto_to_str (new)

    - Use nexthop_type_to_str() instead of the static array
      'nexthop_types_desc'.

Signed-off-by: Avneesh Sachdev <avneesh@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/rib.h
zebra/rt_netlink.c
zebra/rt_netlink.h [new file with mode: 0644]
zebra/zebra_rib.c