]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripd/rip_routemap.c
*: conform with COMMUNITY.md formatting rules, via 'make indent'
[mirror_frr.git] / ripd / rip_routemap.c
index a37effa23ced9c0823a3311990cd2b58db829ce9..40e7ed915b864f7bb4b179c70b440f8d04e6c6f9 100644 (file)
@@ -170,9 +170,8 @@ static route_map_result_t route_match_ip_next_hop(void *rule,
        if (type == RMAP_RIP) {
                rinfo = object;
                p.family = AF_INET;
-               p.prefix =
-                       (rinfo->nh.gate.ipv4.s_addr) ?
-                       rinfo->nh.gate.ipv4 : rinfo->from;
+               p.prefix = (rinfo->nh.gate.ipv4.s_addr) ? rinfo->nh.gate.ipv4
+                                                       : rinfo->from;
                p.prefixlen = IPV4_MAX_BITLEN;
 
                alist = access_list_lookup(AFI_IP, (char *)rule);
@@ -217,9 +216,8 @@ route_match_ip_next_hop_prefix_list(void *rule, struct prefix *prefix,
        if (type == RMAP_RIP) {
                rinfo = object;
                p.family = AF_INET;
-               p.prefix =
-                       (rinfo->nh.gate.ipv4.s_addr) ?
-                       rinfo->nh.gate.ipv4 : rinfo->from;
+               p.prefix = (rinfo->nh.gate.ipv4.s_addr) ? rinfo->nh.gate.ipv4
+                                                       : rinfo->from;
                p.prefixlen = IPV4_MAX_BITLEN;
 
                plist = prefix_list_lookup(AFI_IP, (char *)rule);
@@ -427,8 +425,9 @@ static void *route_set_metric_compile(const char *arg)
                return mod;
        }
        if (metric > RIP_METRIC_INFINITY) {
-               zlog_info("%s: Metric specified: %ld is greater than RIP_METRIC_INFINITY, using INFINITY instead",
-                          __PRETTY_FUNCTION__, metric);
+               zlog_info(
+                       "%s: Metric specified: %ld is greater than RIP_METRIC_INFINITY, using INFINITY instead",
+                       __PRETTY_FUNCTION__, metric);
                mod->metric = RIP_METRIC_INFINITY;
        } else
                mod->metric = metric;