]> 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 8f74ac06eb94114502e3ab624905c0a41ffdc8a8..2e265511f20880b4eb3cbf2d37f82d38be9e37d5 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with Quagga; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 /*
  * 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