aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-02-08 15:49:03 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-02-08 17:11:54 +0100
commit0130c7b34e9e4e831c2794f00a0d017040a967a9 (patch)
treed004778543ebef9d348e491f428d0de17d332b28 /sys/decl.go
parent8792b9237970ec1e93423de538bbe646a8ecff90 (diff)
prog, sys: add icmpv6 packet descriptions and checksums
Also generalize checksums into the two kinds: inet and pseudo. Inet checksums is just the Internet checksum of a packet. Pseudo checksum is the Internet checksum of a packet with a pseudo header.
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 6b4d24f37..270ae4582 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -194,13 +194,14 @@ type CsumKind int
const (
CsumInet CsumKind = iota
- CsumTCP
- CsumUDP
+ CsumPseudo
)
type CsumType struct {
IntTypeCommon
- Kind CsumKind
+ Kind CsumKind
+ Buf string
+ Protocol uint64 // for CsumPseudo
}
type VmaType struct {