shithub: mc

Download patch

ref: dd39ca79eea4204fe076b0b56a9eafd0c947f4eb
parent: 83fd0c252bad7fcaccddab08bff3bd6d3131b7a0
parent: aad5f3f956689082bfc469f53b753ef628389a24
author: Ori Bernstein <[email protected]>
date: Tue Jun 17 21:10:30 EDT 2014

Merge pull request #1 from akoshibe/master

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)