Skip to content

Commit

Permalink
lib, zebra: Fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
  • Loading branch information
vivek-cumulus committed Mar 1, 2018
1 parent 1ec3130 commit 5582836
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/ipaddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ static inline void ipv4_to_ipv4_mapped_ipv6(struct in6_addr *in6,
struct in_addr in)
{
u_int32_t addr_type = htonl(0xFFFF);

memset(in6, 0, sizeof(struct in6_addr));
memcpy((char *)in6 + 8, &addr_type, sizeof(addr_type));
memcpy((char *)in6 + 12, &in, sizeof(struct in_addr));
Expand Down
4 changes: 2 additions & 2 deletions zebra/zserv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ static int zread_route_add(struct zserv *client, u_short length,
re->vrf_id);

/* if this an EVPN route entry,
program the nh as neigh
* program the nh as neigh
*/
if (CHECK_FLAG(api.flags,
ZEBRA_FLAG_EVPN_ROUTE)) {
Expand Down Expand Up @@ -1226,7 +1226,7 @@ static int zread_route_add(struct zserv *client, u_short length,
re->vrf_id);

/* if this an EVPN route entry,
program the nh as neigh
* program the nh as neigh
*/
if (CHECK_FLAG(api.flags,
ZEBRA_FLAG_EVPN_ROUTE)) {
Expand Down

0 comments on commit 5582836

Please sign in to comment.