diff options
| author | vivek <vivek@cumulusnetworks.com> | 2018-03-01 19:50:46 +0000 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2018-03-01 19:50:46 +0000 |
| commit | 558283638bb50ff24ea28bab89c1bb4c89ccc3dd (patch) | |
| tree | 44cf06b3ec49a5e4f4d0a4be6b9d2e3bf2f8e541 | |
| parent | 1ec31309bb056e4492ebf50a12e8bb29a9c4b29a (diff) | |
lib, zebra: Fix warnings
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
| -rw-r--r-- | lib/ipaddr.h | 1 | ||||
| -rw-r--r-- | zebra/zserv.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/ipaddr.h b/lib/ipaddr.h index 3857b83027..e8dbe9cf09 100644 --- a/lib/ipaddr.h +++ b/lib/ipaddr.h @@ -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)); diff --git a/zebra/zserv.c b/zebra/zserv.c index 983b04ed91..1fc2bfd309 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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)) { @@ -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)) { |
