mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 12:37:10 +00:00
pim: fix compilation issue with pim
The change of vrf_id_t from 16 bit to 32 bit needs some changes in pim daemon. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
a8bf7d9c9e
commit
87ad28f48c
@ -136,7 +136,7 @@ static int pim_vrf_new(struct vrf *vrf)
|
|||||||
{
|
{
|
||||||
struct pim_instance *pim = pim_instance_init(vrf);
|
struct pim_instance *pim = pim_instance_init(vrf);
|
||||||
|
|
||||||
zlog_debug("VRF Created: %s(%d)", vrf->name, vrf->vrf_id);
|
zlog_debug("VRF Created: %s(%u)", vrf->name, vrf->vrf_id);
|
||||||
if (pim == NULL) {
|
if (pim == NULL) {
|
||||||
zlog_err("%s %s: pim class init failure ", __FILE__,
|
zlog_err("%s %s: pim class init failure ", __FILE__,
|
||||||
__PRETTY_FUNCTION__);
|
__PRETTY_FUNCTION__);
|
||||||
@ -159,7 +159,7 @@ static int pim_vrf_delete(struct vrf *vrf)
|
|||||||
{
|
{
|
||||||
struct pim_instance *pim = vrf->info;
|
struct pim_instance *pim = vrf->info;
|
||||||
|
|
||||||
zlog_debug("VRF Deletion: %s(%d)", vrf->name, vrf->vrf_id);
|
zlog_debug("VRF Deletion: %s(%u)", vrf->name, vrf->vrf_id);
|
||||||
|
|
||||||
pim_ssmpingd_destroy(pim);
|
pim_ssmpingd_destroy(pim);
|
||||||
pim_instance_terminate(pim);
|
pim_instance_terminate(pim);
|
||||||
|
@ -811,7 +811,7 @@ int pim_parse_nexthop_update(int command, struct zclient *zclient,
|
|||||||
char buf[PREFIX2STR_BUFFER];
|
char buf[PREFIX2STR_BUFFER];
|
||||||
prefix2str(&p, buf, sizeof(buf));
|
prefix2str(&p, buf, sizeof(buf));
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: NHT Update for %s(%s) num_nh %d num_pim_nh %d vrf:%d up %ld rp %d",
|
"%s: NHT Update for %s(%s) num_nh %d num_pim_nh %d vrf:%u up %ld rp %d",
|
||||||
__PRETTY_FUNCTION__, buf, pim->vrf->name, nexthop_num,
|
__PRETTY_FUNCTION__, buf, pim->vrf->name, nexthop_num,
|
||||||
pnc->nexthop_num, vrf_id, pnc->upstream_hash->count,
|
pnc->nexthop_num, vrf_id, pnc->upstream_hash->count,
|
||||||
listcount(pnc->rp_list));
|
listcount(pnc->rp_list));
|
||||||
|
@ -80,7 +80,7 @@ static int pim_zebra_if_add(int command, struct zclient *zclient,
|
|||||||
|
|
||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: %s index %d(%d) flags %ld metric %d mtu %d operative %d",
|
"%s: %s index %d(%u) flags %ld metric %d mtu %d operative %d",
|
||||||
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
||||||
(long)ifp->flags, ifp->metric, ifp->mtu,
|
(long)ifp->flags, ifp->metric, ifp->mtu,
|
||||||
if_is_operative(ifp));
|
if_is_operative(ifp));
|
||||||
@ -130,7 +130,7 @@ static int pim_zebra_if_del(int command, struct zclient *zclient,
|
|||||||
|
|
||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: %s index %d(%d) flags %ld metric %d mtu %d operative %d",
|
"%s: %s index %d(%u) flags %ld metric %d mtu %d operative %d",
|
||||||
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
||||||
(long)ifp->flags, ifp->metric, ifp->mtu,
|
(long)ifp->flags, ifp->metric, ifp->mtu,
|
||||||
if_is_operative(ifp));
|
if_is_operative(ifp));
|
||||||
@ -158,7 +158,7 @@ static int pim_zebra_if_state_up(int command, struct zclient *zclient,
|
|||||||
|
|
||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: %s index %d(%d) flags %ld metric %d mtu %d operative %d",
|
"%s: %s index %d(%u) flags %ld metric %d mtu %d operative %d",
|
||||||
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
||||||
(long)ifp->flags, ifp->metric, ifp->mtu,
|
(long)ifp->flags, ifp->metric, ifp->mtu,
|
||||||
if_is_operative(ifp));
|
if_is_operative(ifp));
|
||||||
@ -213,7 +213,7 @@ static int pim_zebra_if_state_down(int command, struct zclient *zclient,
|
|||||||
|
|
||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: %s index %d(%d) flags %ld metric %d mtu %d operative %d",
|
"%s: %s index %d(%u) flags %ld metric %d mtu %d operative %d",
|
||||||
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
__PRETTY_FUNCTION__, ifp->name, ifp->ifindex, vrf_id,
|
||||||
(long)ifp->flags, ifp->metric, ifp->mtu,
|
(long)ifp->flags, ifp->metric, ifp->mtu,
|
||||||
if_is_operative(ifp));
|
if_is_operative(ifp));
|
||||||
@ -293,7 +293,7 @@ static int pim_zebra_if_address_add(int command, struct zclient *zclient,
|
|||||||
if (PIM_DEBUG_ZEBRA) {
|
if (PIM_DEBUG_ZEBRA) {
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
prefix2str(p, buf, BUFSIZ);
|
prefix2str(p, buf, BUFSIZ);
|
||||||
zlog_debug("%s: %s(%d) connected IP address %s flags %u %s",
|
zlog_debug("%s: %s(%u) connected IP address %s flags %u %s",
|
||||||
__PRETTY_FUNCTION__, c->ifp->name, vrf_id, buf,
|
__PRETTY_FUNCTION__, c->ifp->name, vrf_id, buf,
|
||||||
c->flags, CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)
|
c->flags, CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)
|
||||||
? "secondary"
|
? "secondary"
|
||||||
@ -372,7 +372,7 @@ static int pim_zebra_if_address_del(int command, struct zclient *client,
|
|||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
prefix2str(p, buf, BUFSIZ);
|
prefix2str(p, buf, BUFSIZ);
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: %s(%d) disconnected IP address %s flags %u %s",
|
"%s: %s(%u) disconnected IP address %s flags %u %s",
|
||||||
__PRETTY_FUNCTION__, c->ifp->name, vrf_id, buf,
|
__PRETTY_FUNCTION__, c->ifp->name, vrf_id, buf,
|
||||||
c->flags,
|
c->flags,
|
||||||
CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)
|
CHECK_FLAG(c->flags, ZEBRA_IFA_SECONDARY)
|
||||||
|
Loading…
Reference in New Issue
Block a user