summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-18 01:10:30 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-18 01:10:30 -0400
commitdd39ca79eea4204fe076b0b56a9eafd0c947f4eb (patch)
tree320c6d9474ba1eb51f2dc88640e9edd0d1672a55
parent83fd0c252bad7fcaccddab08bff3bd6d3131b7a0 (diff)
parentaad5f3f956689082bfc469f53b753ef628389a24 (diff)
downloadmc-dd39ca79eea4204fe076b0b56a9eafd0c947f4eb.tar.gz
Merge pull request #1 from akoshibe/master
added sockproto values
-rw-r--r--libstd/sys-linux.myr6
1 files changed, 6 insertions, 0 deletions
diff --git a/libstd/sys-linux.myr b/libstd/sys-linux.myr
index aaa78d1..9c487e3 100644
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -452,6 +452,12 @@ pkg std =
const Sysprocess_vm_readv : scno = 310
const Sysprocess_vm_writev : scno = 311
+ /* network protocols */
+ const Ipproto_ip : sockproto = 0
+ const Ipproto_icmp : sockproto = 1
+ const Ipproto_tcp : sockproto = 6
+ const Ipproto_udp : sockproto = 17
+
/* getting to the os */
extern const syscall : (sc:scno, args:... -> int64)