diff options
| author | Pat Ruddy <pat@voltanet.io> | 2021-03-25 14:39:07 +0000 | 
|---|---|---|
| committer | Pat Ruddy <pat@voltanet.io> | 2021-03-25 15:24:50 +0000 | 
| commit | 9e26322126ed6daef7ae16b4c9a547ae28a02226 (patch) | |
| tree | 2b80ff835e5368b6a70fe7cc87da585eeeca5c80 /lib/smux.h | |
| parent | 817f39203c46916a7d21f2b71adc2a1ef088aedd (diff) | |
lib, bgpd: add a specific oid_copy function for IPv6 addrs
Do not overload the v4 oid_copy_addr function for ipv6
coverity does not like this kind of thing.
Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'lib/smux.h')
| -rw-r--r-- | lib/smux.h | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/smux.h b/lib/smux.h index c063833e41..74447341d8 100644 --- a/lib/smux.h +++ b/lib/smux.h @@ -152,7 +152,8 @@ extern void oid2in_addr(oid[], int, struct in_addr *);  extern void oid2in6_addr(oid oid[], struct in6_addr *addr);  extern void oid2int(oid oid[], int *dest);  extern void *oid_copy(void *, const void *, size_t); -extern void oid_copy_addr(oid[], const struct in_addr *, int); +extern void oid_copy_in_addr(oid[], const struct in_addr *); +extern void oid_copy_in6_addr(oid[], const struct in6_addr *);  extern void oid_copy_int(oid oid[], int *val);  extern void oid2string(oid oid[], int len, char *string);  extern void oid_copy_str(oid oid[], const char *string, int len);  | 
