]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm_netlink.c
isisd: implement the 'lsp-too-large' notification
[mirror_frr.git] / zebra / zebra_fpm_netlink.c
index 97a0e142fb336e8235747e7443ec8cfee3be45d2..207cbc0992221a9c2de839ff69a7cf9c23467813 100644 (file)
@@ -32,6 +32,7 @@
 #include "prefix.h"
 
 #include "zebra/zserv.h"
+#include "zebra/zebra_dplane.h"
 #include "zebra/zebra_ns.h"
 #include "zebra/zebra_vrf.h"
 #include "zebra/kernel_netlink.h"
@@ -45,7 +46,7 @@
  *
  * Returns string representation of an address of the given AF.
  */
-static inline const char *addr_to_a(u_char af, void *addr)
+static inline const char *addr_to_a(uint8_t af, void *addr)
 {
        if (!addr)
                return "<No address>";
@@ -83,7 +84,7 @@ static const char *prefix_addr_to_a(struct prefix *prefix)
  *
  * The size of an address in a given address family.
  */
-static size_t af_addr_size(u_char af)
+static size_t af_addr_size(uint8_t af)
 {
        switch (af) {
 
@@ -125,10 +126,10 @@ typedef struct netlink_nh_info_t_ {
  */
 typedef struct netlink_route_info_t_ {
        uint16_t nlmsg_type;
-       u_char rtm_type;
+       uint8_t rtm_type;
        uint32_t rtm_table;
-       u_char rtm_protocol;
-       u_char af;
+       uint8_t rtm_protocol;
+       uint8_t af;
        struct prefix *prefix;
        uint32_t *metric;
        unsigned int num_nhs;
@@ -199,7 +200,7 @@ static int netlink_route_info_add_nh(netlink_route_info_t *ri,
 /*
  * netlink_proto_from_route_type
  */
-static u_char netlink_proto_from_route_type(int type)
+static uint8_t netlink_proto_from_route_type(int type)
 {
        switch (type) {
        case ZEBRA_ROUTE_KERNEL: