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

20 lines
383 B

package parser
import (
"github.com/google/gopacket/layers"
"net"
)
type IPv6 struct {
layers.BaseLayer
Version uint8
TrafficClass uint8
FlowLabel uint32
Length uint16
NextHeader uint8
HopLimit uint8
SrcIP net.IP
DstIP net.IP
HopByHop *layers.IPv6HopByHop
hbh layers.IPv6HopByHop
}