Files
wireguard-go/src/ip.go
T

19 lines
245 B
Go
Raw Normal View History

2017-06-04 21:48:15 +02:00
package main
import (
"net"
)
const (
2017-06-28 23:45:45 +02:00
IPv4version = 4
IPv4offsetSrc = 12
IPv4offsetDst = IPv4offsetSrc + net.IPv4len
IPv4headerSize = 20
2017-06-04 21:48:15 +02:00
)
const (
IPv6version = 6
IPv6offsetSrc = 8
IPv6offsetDst = IPv6offsetSrc + net.IPv6len
)