只是一个简单的计网课设
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

19 lines
253 B

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