]>
git.proxmox.com Git - mirror_frr.git/blob - fpm/fpm_pb.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * @copyright Copyright (C) 2016 Sproute Networks, Inc.
7 * @author Avneesh Sachdev <avneesh@sproute.com>
11 * Public header file for fpm protobuf definitions.
17 #include "lib/route_types.h"
20 #include "fpm/fpm.pb-c.h"
23 * fpm__route_key__create
25 #define fpm_route_key_create fpm__route_key__create
26 static inline Fpm__RouteKey
*fpm__route_key__create(qpb_allocator_t
*allocator
,
27 struct prefix
*prefix
)
31 key
= QPB_ALLOC(allocator
, typeof(*key
));
35 fpm__route_key__init(key
);
37 key
->prefix
= qpb__l3_prefix__create(allocator
, prefix
);