diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-04-19 20:26:57 +0200 |
---|---|---|
committer | Mark Stapp <mjs.ietf@gmail.com> | 2021-07-19 16:36:12 +0200 |
commit | 1a3bd37f7c29fca429d7ef79ace80cd6db1d5563 (patch) | |
tree | dace8bbf2ea7ec7fc1216563ebb9f1d00b61ac8a /zebra/rt_netlink.h | |
parent | zebra: add workqueue support for EVPN updates (diff) | |
download | frr-1a3bd37f7c29fca429d7ef79ace80cd6db1d5563.tar.xz frr-1a3bd37f7c29fca429d7ef79ace80cd6db1d5563.zip |
zebra: use more const
Use const in many more evpn apis, especially for macaddr,
ipaddr arguments.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/rt_netlink.h')
-rw-r--r-- | zebra/rt_netlink.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/rt_netlink.h b/zebra/rt_netlink.h index 4e41ff984..93c06e555 100644 --- a/zebra/rt_netlink.h +++ b/zebra/rt_netlink.h @@ -99,8 +99,9 @@ extern int netlink_neigh_read_for_vlan(struct zebra_ns *zns, struct interface *vlan_if); extern int netlink_macfdb_read_specific_mac(struct zebra_ns *zns, struct interface *br_if, - struct ethaddr *mac, uint16_t vid); -extern int netlink_neigh_read_specific_ip(struct ipaddr *ip, + const struct ethaddr *mac, + uint16_t vid); +extern int netlink_neigh_read_specific_ip(const struct ipaddr *ip, struct interface *vlan_if); extern vrf_id_t vrf_lookup_by_table(uint32_t table_id, ns_id_t ns_id); |