From ac0c70f74a5badbebec721c2be0602ea98c0437b Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 27 Apr 2017 20:31:00 +0200 Subject: prog, executor: move checksum computation to executor This commit moves checksum computation to executor. This will allow to embed dynamically generated values (like TCP sequence numbers) into packets. --- executor/test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'executor/test.go') diff --git a/executor/test.go b/executor/test.go index e9709b8d0..47a4e0388 100644 --- a/executor/test.go +++ b/executor/test.go @@ -6,6 +6,8 @@ package executor // int test_copyin(); +// int test_csum_inet(); +// int test_csum_inet_acc(); // int test_kvm(); import "C" @@ -13,6 +15,14 @@ func testCopyin() int { return int(C.test_copyin()) } +func testCsumInet() int { + return int(C.test_csum_inet()) +} + +func testCsumInetAcc() int { + return int(C.test_csum_inet_acc()) +} + func testKVM() int { return int(C.test_kvm()) } -- cgit mrf-deployment