jrouter/aurp/atalk.go

18 lines
315 B
Go
Raw Normal View History

2024-03-22 14:20:31 +11:00
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()
}