* Set the attached ethernet node's ethernet source address override flag. */
| 644 | * Set the attached ethernet node's ethernet source address override flag. |
| 645 | */ |
| 646 | static int |
| 647 | ng_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 |