- :c:struct:`prefix_ls`
- :c:struct:`prefix_rd`
- :c:struct:`prefix_ptr`
- - :c:struct:`prefix_sg` (use :frrfmt:`%pSG4`)
+ - :c:struct:`prefix_sg` (use :frrfmt:`%pPSG4`)
- :c:union:`prefixptr` (dereference to get :c:struct:`prefix`)
- :c:union:`prefixconstptr` (dereference to get :c:struct:`prefix`)
-.. frrfmt:: %pSG4 (struct prefix_sg *)
+.. frrfmt:: %pPSG4 (struct prefix_sg *)
:frrfmtout:`(*,1.2.3.4)`
return bputs(buf, cbuf);
}
-printfrr_ext_autoreg_p("SG4", printfrr_psg)
+printfrr_ext_autoreg_p("PSG4", printfrr_psg)
static ssize_t printfrr_psg(struct fbuf *buf, struct printfrr_eargs *ea,
const void *ptr)
{
#pragma FRR printfrr_ext "%pFX" (struct prefix_evpn *)
#pragma FRR printfrr_ext "%pFX" (struct prefix_fs *)
-#pragma FRR printfrr_ext "%pSG4" (struct prefix_sg *)
+#pragma FRR printfrr_ext "%pPSG4" (struct prefix_sg *)
#endif
#ifdef __cplusplus
struct pim_rpf *rp = RP(pim_ifp->pim, sg->grp);
if (!rp) {
- zlog_warn("%s: Lookup of RP failed for %pSG4", __func__,
- sg);
+ zlog_warn("%s: Lookup of RP failed for %pPSG4",
+ __func__, sg);
return;
}
/*
pim_inet4_dump("<received?>", sg->src, received_rp,
sizeof(received_rp));
- zlog_debug("%s: Prune received with RP(%s) for %pSG4",
+ zlog_debug("%s: Prune received with RP(%s) for %pPSG4",
__func__, received_rp, sg);
}
sg.src.s_addr = ntohl(msg.source_ip);
zlog_debug(
- "%s: msg dump: vrf_name: %s, s.ip: 0x%x, g.ip: 0x%x (%pSG4) cost: %u",
+ "%s: msg dump: vrf_name: %s, s.ip: 0x%x, g.ip: 0x%x (%pPSG4) cost: %u",
__func__, msg.vrf_name, msg.source_ip, msg.group_ip,
&sg, msg.cost_to_rp);
zlog_debug(
- "(%pSG4)owner_id: %d, DR: %d, Dual active: %d, vrf_id: 0x%x intf_name: %s",
+ "(%pPSG4)owner_id: %d, DR: %d, Dual active: %d, vrf_id: 0x%x intf_name: %s",
&sg, msg.owner_id, msg.am_i_dr, msg.am_i_dual_active,
msg.vrf_id, msg.intf_name);
}
sg.grp.s_addr = ntohl(msg.group_ip);
sg.src.s_addr = ntohl(msg.source_ip);
zlog_debug(
- "%s: msg dump: vrf_name: %s, s.ip: 0x%x, g.ip: 0x%x(%pSG4)",
+ "%s: msg dump: vrf_name: %s, s.ip: 0x%x, g.ip: 0x%x(%pPSG4)",
__func__, msg.vrf_name, msg.source_ip, msg.group_ip,
&sg);
- zlog_debug("(%pSG4)owner_id: %d, vrf_id: 0x%x intf_name: %s",
+ zlog_debug("(%pPSG4)owner_id: %d, vrf_id: 0x%x intf_name: %s",
&sg, msg.owner_id, msg.vrf_id, msg.intf_name);
}
if (PIM_DEBUG_MROUTE)
zlog_debug(
- "%s(%s): Existing oil for %pSG4 Ref Count: %d (Post Increment)",
+ "%s(%s): Existing oil for %pPSG4 Ref Count: %d (Post Increment)",
__func__, name, sg, c_oil->oil_ref_count);
return c_oil;
}
.grp = c_oil->oil.mfcc_origin};
zlog_debug(
- "%s(%s): Del oil for %pSG4, Ref Count: %d (Predecrement)",
+ "%s(%s): Del oil for %pPSG4, Ref Count: %d (Predecrement)",
__func__, name, &sg, c_oil->oil_ref_count);
}
--c_oil->oil_ref_count;
pim_inet4_dump("<src?>", src_addr,
src_str,
sizeof(src_str));
- zlog_debug("%s: Sending register-stop to %s for %pSG4 due to prefix-list denial, dropping packet",
- __func__, src_str, &sg);
+ zlog_debug(
+ "%s: Sending register-stop to %s for %pPSG4 due to prefix-list denial, dropping packet",
+ __func__, src_str, &sg);
}
return 0;
struct prefix_sg sg;
sg.src.s_addr = INADDR_ANY;
sg.grp.s_addr = INADDR_ANY;
- printchk("(*,*)", "%pSG4", &sg);
+ printchk("(*,*)", "%pPSG4", &sg);
inet_aton("192.168.1.2", &sg.src);
- printchk("(192.168.1.2,*)", "%pSG4", &sg);
+ printchk("(192.168.1.2,*)", "%pPSG4", &sg);
inet_aton("224.1.2.3", &sg.grp);
- printchk("(192.168.1.2,224.1.2.3)", "%pSG4", &sg);
+ printchk("(192.168.1.2,224.1.2.3)", "%pPSG4", &sg);
sg.src.s_addr = INADDR_ANY;
- printchk("(*,224.1.2.3)", "%pSG4", &sg);
+ printchk("(*,224.1.2.3)", "%pPSG4", &sg);
uint8_t randhex[] = { 0x12, 0x34, 0x00, 0xca, 0xfe, 0x00, 0xaa, 0x55 };