Lines Matching refs:pfx
477 struct prefix *pfx; in action_show() local
654 pfx = (struct prefix *)cp.cp_val; in action_show()
655 len = cp.cp_val_len / sizeof(*pfx); in action_show()
661 action_show_prefix(&pfx[i]); in action_show()
745 action_show_prefix(struct prefix *pfx) in action_show_prefix() argument
752 printf("\t %s/%d", inet_ntop(AF_INET6, &pfx->pfx_prefix, in action_show_prefix()
753 ntopbuf, sizeof(ntopbuf)), pfx->pfx_prefixlen); in action_show_prefix()
756 switch (pfx->pfx_origin) { in action_show_prefix()
771 (pfx->pfx_validlifetime == ND6_INFINITE_LIFETIME) ? in action_show_prefix()
772 "infinity" : sec2str(pfx->pfx_validlifetime, ssbuf)); in action_show_prefix()
774 if (pfx->pfx_vltimeexpire > 0) in action_show_prefix()
776 ((long)pfx->pfx_vltimeexpire > now.tv_sec) ? in action_show_prefix()
777 sec2str(pfx->pfx_vltimeexpire - now.tv_sec, ssbuf) : in action_show_prefix()
783 (pfx->pfx_preflifetime == ND6_INFINITE_LIFETIME) ? in action_show_prefix()
784 "infinity" : sec2str(pfx->pfx_preflifetime, ssbuf)); in action_show_prefix()
786 if (pfx->pfx_pltimeexpire > 0) in action_show_prefix()
788 ((long)pfx->pfx_pltimeexpire > now.tv_sec) ? in action_show_prefix()
789 sec2str(pfx->pfx_pltimeexpire - now.tv_sec, ssbuf) : in action_show_prefix()
795 if (pfx->pfx_onlinkflg || pfx->pfx_autoconfflg) { in action_show_prefix()
796 printf("%s", pfx->pfx_onlinkflg ? "L" : ""); in action_show_prefix()
797 printf("%s", pfx->pfx_autoconfflg ? "A" : ""); in action_show_prefix()
801 if (pfx->pfx_timer) { in action_show_prefix()
804 rest = rtadvd_timer_rest(pfx->pfx_timer); in action_show_prefix()