mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-07 05:40:52 +08:00
网卡对象 绑定IP地址 然后向网卡对象写入数据 数据中将包含dst和src
This commit is contained in:
23
tcpip/header/ipv6.go
Normal file
23
tcpip/header/ipv6.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package header
|
||||
|
||||
import "netstack/tcpip"
|
||||
|
||||
type IPv6 []byte
|
||||
|
||||
const (
|
||||
// IPv6MinimumSize is the minimum size of a valid IPv6 packet.
|
||||
IPv6MinimumSize = 40
|
||||
|
||||
// IPv6AddressSize is the size, in bytes, of an IPv6 address.
|
||||
IPv6AddressSize = 16
|
||||
|
||||
// IPv6ProtocolNumber is IPv6's network protocol number.
|
||||
IPv6ProtocolNumber tcpip.NetworkProtocolNumber = 0x86dd
|
||||
|
||||
// IPv6Version is the version of the ipv6 protocol.
|
||||
IPv6Version = 6
|
||||
|
||||
// IPv6MinimumMTU is the minimum MTU required by IPv6, per RFC 2460,
|
||||
// section 5.
|
||||
IPv6MinimumMTU = 1280
|
||||
)
|
Reference in New Issue
Block a user