只是一个简单的计网课设
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eruhs/core/parser/custom.go

21 lines
271 B

8 months ago
package parser
const (
LayerTypeEthernet = iota
LayerTypeARP
LayerTypeIPv4
LayerTypeIPv6
LayerTypeICMP
LayerTypeTCP
LayerTypeUDP
)
type Layer interface {
LayerType() int
}
type BaseLayer struct {
Header []byte
Payload []byte
}