* Start method is used only when ALTQ is enabled. */
| 394 | * Start method is used only when ALTQ is enabled. |
| 395 | */ |
| 396 | static void |
| 397 | ng_iface_start(struct ifnet *ifp) |
| 398 | { |
| 399 | struct mbuf *m; |
| 400 | sa_family_t sa; |
| 401 | |
| 402 | KASSERT(ALTQ_IS_ENABLED(&ifp->if_snd), ("%s without ALTQ", __func__)); |
| 403 | |
| 404 | for(;;) { |
| 405 | IFQ_DRV_DEQUEUE(&ifp->if_snd, m); |
| 406 | if (m == NULL) |
| 407 | break; |
| 408 | sa = *mtod(m, sa_family_t *); |
| 409 | m_adj(m, sizeof(sa_family_t)); |
| 410 | ng_iface_send(ifp, m, sa); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | /* |
| 415 | * Flash a packet by the BPF (requires prepending 4 byte AF header) |
nothing calls this directly
no test coverage detected