MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmsg_common

Function pmsg_common

tools/route/route.c:1889–1902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1887}
1888
1889static void
1890pmsg_common(struct rt_msghdr *rtm, size_t msglen)
1891{
1892
1893 (void)printf("\nlocks: ");
1894 printb(rtm->rtm_rmx.rmx_locks, metricnames);
1895 (void)printf(" inits: ");
1896 printb(rtm->rtm_inits, metricnames);
1897 if (msglen > sizeof(struct rt_msghdr))
1898 pmsg_addrs(((char *)(rtm + 1)), rtm->rtm_addrs,
1899 msglen - sizeof(struct rt_msghdr));
1900 else
1901 (void)fflush(stdout);
1902}
1903
1904static void
1905pmsg_addrs(char *cp, int addrs, size_t len)

Callers 2

print_rtmsgFunction · 0.85
print_getmsgFunction · 0.85

Calls 3

pmsg_addrsFunction · 0.85
printbFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected