42 fatal(
"Attempt to bind port %s to non-ethernet port %s.",
60 panic(
"You cannot change the peer once it is set.\n"
61 "Current peer=%s Desired peer=%s",
peer->
name(),
p->name());
void unbind() override
Dettach from a peer port.
void setPeer(EtherInt *p)
void bind(Port &peer) override
Attach to a peer port.
const std::string & name() const
Return port name (for DPRINTF).
Ports are used to interface objects to each other.
bool _connected
Whether this port is currently connected to a peer port.
#define panic(...)
This implements a cprintf based panic() function.
#define fatal(...)
This implements a cprintf based fatal() function.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.