implement sophisticated TAP interface to be able to debug stack on linux

This commit is contained in:
soypat
2025-02-20 18:51:31 -03:00
parent f86bb6f01a
commit c9d1c4f239
3 changed files with 176 additions and 21 deletions
+5
View File
@@ -33,6 +33,11 @@ type Handler struct {
closing bool
}
func (h *Handler) SetLoggers(handler, scb *slog.Logger) {
h.logger.log = handler
h.scb.logger.log = scb
}
func (h *Handler) State() State { return h.scb.State() }
func (h *Handler) SetBuffers(txbuf, rxbuf []byte, packets int) error {