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

Function ng_source_set_autosrc

freebsd/netgraph/ng_source.c:646–660  ·  view source on GitHub ↗

* Set the attached ethernet node's ethernet source address override flag. */

Source from the content-addressed store, hash-verified

644 * Set the attached ethernet node's ethernet source address override flag.
645 */
646static int
647ng_source_set_autosrc(sc_p sc, uint32_t flag)
648{
649 struct ng_mesg *msg;
650 int error = 0;
651
652 NG_MKMESSAGE(msg, NGM_ETHER_COOKIE, NGM_ETHER_SET_AUTOSRC,
653 sizeof (uint32_t), M_NOWAIT);
654 if (msg == NULL)
655 return(ENOBUFS);
656
657 *(uint32_t *)msg->data = flag;
658 NG_SEND_MSG_HOOK(error, sc->node, msg, sc->output, 0);
659 return (error);
660}
661
662/*
663 * Clear out the data we've queued

Callers 1

ng_source_rcvmsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected