]>
git.proxmox.com Git - mirror_frr.git/blob - lib/srte.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright 2020 NetDef Inc.
15 #define SRTE_POLICY_NAME_MAX_LENGTH 64
17 enum zebra_sr_policy_status
{
18 ZEBRA_SR_POLICY_UP
= 0,
22 static inline int sr_policy_compare(const struct ipaddr
*a_endpoint
,
23 const struct ipaddr
*b_endpoint
,
24 uint32_t a_color
, uint32_t b_color
)
28 ret
= ipaddr_cmp(a_endpoint
, b_endpoint
);
34 return a_color
- b_color
;
41 #endif /* _FRR_SRTE_H */