jrouter/aurp/atalk.go
2024-03-22 14:20:31 +11:00

17 lines
315 B
Go

package aurp
import "io"
// AppleTalkPacket is for encapsulated AppleTalk traffic.
type AppleTalkPacket struct {
DomainHeader // where PacketTypeAppleTalk
Data []byte
}
func (p *AppleTalkPacket) WriteTo(w io.Writer) (int64, error) {
a := acc(w)
a.writeTo(&p.DomainHeader)
a.write(p.Data)
return a.ret()
}