mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00:00
lib: use const in prefix_mac2str
Use const for mac pointer. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
f2412b2d19
commit
a9e08ebce1
@ -441,7 +441,7 @@ void prefix_hexdump(const struct prefix *p)
|
|||||||
zlog_hexdump(p, sizeof(struct prefix));
|
zlog_hexdump(p, sizeof(struct prefix));
|
||||||
}
|
}
|
||||||
|
|
||||||
int is_zero_mac(struct ethaddr *mac)
|
int is_zero_mac(const struct ethaddr *mac)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ extern void masklen2ip6(const int, struct in6_addr *);
|
|||||||
|
|
||||||
extern const char *inet6_ntoa(struct in6_addr);
|
extern const char *inet6_ntoa(struct in6_addr);
|
||||||
|
|
||||||
extern int is_zero_mac(struct ethaddr *mac);
|
extern int is_zero_mac(const struct ethaddr *mac);
|
||||||
extern int prefix_str2mac(const char *str, struct ethaddr *mac);
|
extern int prefix_str2mac(const char *str, struct ethaddr *mac);
|
||||||
extern char *prefix_mac2str(const struct ethaddr *mac, char *buf, int size);
|
extern char *prefix_mac2str(const struct ethaddr *mac, char *buf, int size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user