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

Function debugnet_get_gw_mac

freebsd/net/debugnet.c:101–107  ·  view source on GitHub ↗

* Simple accessors for opaque PCB. */

Source from the content-addressed store, hash-verified

99 * Simple accessors for opaque PCB.
100 */
101const unsigned char *
102debugnet_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.

Callers 1

netdump_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected