From 0130c7b34e9e4e831c2794f00a0d017040a967a9 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 8 Feb 2017 15:49:03 +0100 Subject: 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. --- sys/decl.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/decl.go') 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 { -- cgit mrf-deployment