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

Function cisco_notify

freebsd/netgraph/ng_cisco.c:633–645  ·  view source on GitHub ↗

* Send linkstate to upstream node. */

Source from the content-addressed store, hash-verified

631 * Send linkstate to upstream node.
632 */
633static void
634cisco_notify(sc_p sc, uint32_t cmd)
635{
636 struct ng_mesg *msg;
637 int dummy_error = 0;
638
639 if (sc->inet.hook == NULL) /* nothing to notify */
640 return;
641
642 NG_MKMESSAGE(msg, NGM_FLOW_COOKIE, cmd, 0, M_NOWAIT);
643 if (msg != NULL)
644 NG_SEND_MSG_HOOK(dummy_error, sc->node, msg, sc->inet.hook, 0);
645}

Callers 2

cisco_inputFunction · 0.85
cisco_keepaliveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected