aboutsummaryrefslogtreecommitdiffstats
path: root/executor/test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-04-27 20:31:00 +0200
committerAndrey Konovalov <andreyknvl@google.com>2017-05-12 15:47:59 +0200
commitac0c70f74a5badbebec721c2be0602ea98c0437b (patch)
tree69278d03cdaae547c1c87a84deb44969081837bd /executor/test.go
parentb2dbb4f4d10f436088ba8a1d2d18437911a83887 (diff)
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.
Diffstat (limited to 'executor/test.go')
-rw-r--r--executor/test.go10
1 files changed, 10 insertions, 0 deletions
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())
}