mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 03:27:25 +00:00
lib, zebra: Fix warnings
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
1ec31309bb
commit
558283638b
@ -90,6 +90,7 @@ static inline void ipv4_to_ipv4_mapped_ipv6(struct in6_addr *in6,
|
|||||||
struct in_addr in)
|
struct in_addr in)
|
||||||
{
|
{
|
||||||
u_int32_t addr_type = htonl(0xFFFF);
|
u_int32_t addr_type = htonl(0xFFFF);
|
||||||
|
|
||||||
memset(in6, 0, sizeof(struct in6_addr));
|
memset(in6, 0, sizeof(struct in6_addr));
|
||||||
memcpy((char *)in6 + 8, &addr_type, sizeof(addr_type));
|
memcpy((char *)in6 + 8, &addr_type, sizeof(addr_type));
|
||||||
memcpy((char *)in6 + 12, &in, sizeof(struct in_addr));
|
memcpy((char *)in6 + 12, &in, sizeof(struct in_addr));
|
||||||
|
@ -1190,7 +1190,7 @@ static int zread_route_add(struct zserv *client, u_short length,
|
|||||||
re->vrf_id);
|
re->vrf_id);
|
||||||
|
|
||||||
/* if this an EVPN route entry,
|
/* if this an EVPN route entry,
|
||||||
program the nh as neigh
|
* program the nh as neigh
|
||||||
*/
|
*/
|
||||||
if (CHECK_FLAG(api.flags,
|
if (CHECK_FLAG(api.flags,
|
||||||
ZEBRA_FLAG_EVPN_ROUTE)) {
|
ZEBRA_FLAG_EVPN_ROUTE)) {
|
||||||
@ -1226,7 +1226,7 @@ static int zread_route_add(struct zserv *client, u_short length,
|
|||||||
re->vrf_id);
|
re->vrf_id);
|
||||||
|
|
||||||
/* if this an EVPN route entry,
|
/* if this an EVPN route entry,
|
||||||
program the nh as neigh
|
* program the nh as neigh
|
||||||
*/
|
*/
|
||||||
if (CHECK_FLAG(api.flags,
|
if (CHECK_FLAG(api.flags,
|
||||||
ZEBRA_FLAG_EVPN_ROUTE)) {
|
ZEBRA_FLAG_EVPN_ROUTE)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user