* Simple accessors for opaque PCB. */
| 99 | * Simple accessors for opaque PCB. |
| 100 | */ |
| 101 | const unsigned char * |
| 102 | debugnet_get_gw_mac(const struct debugnet_pcb *pcb) |
| 103 | { |
| 104 | MPASS(g_debugnet_pcb_inuse && pcb == &g_dnet_pcb && |
| 105 | pcb->dp_state >= DN_STATE_HAVE_GW_MAC); |
| 106 | return (pcb->dp_gw_mac.octet); |
| 107 | } |
| 108 | |
| 109 | /* |
| 110 | * Start of network primitives, beginning with output primitives. |