]> git.proxmox.com Git - mirror_frr.git/blobdiff - fpm/fpm_pb.h
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / fpm / fpm_pb.h
index 2e5f3d052755b5bb28e3b65c02ff5d3c72d5e094..2e265511f20880b4eb3cbf2d37f82d38be9e37d5 100644 (file)
  * fpm__route_key__create
  */
 #define fpm_route_key_create fpm__route_key__create
-static inline Fpm__RouteKey *
-fpm__route_key__create (qpb_allocator_t *allocator, struct prefix *prefix)
+static inline Fpm__RouteKey *fpm__route_key__create(qpb_allocator_t *allocator,
+                                                   struct prefix *prefix)
 {
-  Fpm__RouteKey *key;
-
-  key = QPB_ALLOC (allocator, typeof (*key));
-  if (!key)
-    {
-      return NULL;
-    }
-  fpm__route_key__init (key);
-
-  key->prefix = qpb__l3_prefix__create (allocator, prefix);
-  if (!key->prefix)
-    {
-      return NULL;
-    }
-
-  return key;
+       Fpm__RouteKey *key;
+
+       key = QPB_ALLOC(allocator, typeof(*key));
+       if (!key) {
+               return NULL;
+       }
+       fpm__route_key__init(key);
+
+       key->prefix = qpb__l3_prefix__create(allocator, prefix);
+       if (!key->prefix) {
+               return NULL;
+       }
+
+       return key;
 }
 
 #endif