ref: aad5f3f956689082bfc469f53b753ef628389a24
parent: 83fd0c252bad7fcaccddab08bff3bd6d3131b7a0
author: akoshibe <[email protected]>
date: Tue Jun 17 16:56:23 EDT 2014
added sockproto values
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -452,6 +452,12 @@
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)