[28806] in Source-Commits

home help back first fref pref prev next nref lref last post

larvnetd commit: add larvnet.h to build tree

daemon@ATHENA.MIT.EDU (Lizhou Sha)
Sat Nov 11 18:06:53 2017

Date: Sat, 11 Nov 2017 18:06:34 -0500
From: Lizhou Sha <slz@mit.edu>
Message-Id: <201711112306.vABN6YJe008773@drugstore.mit.edu>
To: source-commits@mit.edu

https://github.com/mit-athena/larvnetd/commit/b8bfe91c4de71688c91d164b7e608e607c0f50a1
commit b8bfe91c4de71688c91d164b7e608e607c0f50a1
Author: Jonathon Weiss <jweiss@mit.edu>
Date:   Wed Mar 8 17:29:41 2017 -0500

    add larvnet.h to build tree

 larvnet.h |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/larvnet.h b/larvnet.h
new file mode 100644
index 0000000..b3b77fa
--- /dev/null
+++ b/larvnet.h
@@ -0,0 +1,34 @@
+/* Copyright 1998 by the Massachusetts Institute of Technology.
+ *
+ * Permission to use, copy, modify, and distribute this
+ * software and its documentation for any purpose and without
+ * fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright
+ * notice and this permission notice appear in supporting
+ * documentation, and that the name of M.I.T. not be used in
+ * advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission.
+ * M.I.T. makes no representations about the suitability of
+ * this software for any purpose.  It is provided "as is"
+ * without express or implied warranty.
+ */
+
+#ifndef LARVNET__H
+#define LARVNET__H
+
+/* Paths used on the larvnet server */
+#define LARVNET_PATH_CONFIG	"/usr/local/etc/larvnet.conf"
+#define LARVNET_PATH_PIDFILE	"/var/lib/larvnet/larvnetd.pid"
+#define LARVNET_PATH_CGROUPS	"/var/lib/larvnet/larvnet.cgroups"
+#define LARVNET_PATH_CLUSTERS	"/var/lib/larvnet/larvnet.clusters"
+#define LARVNET_PATH_PRINTERS	"/var/lib/larvnet/larvnet.printers"
+
+/* Path used on larvnet clients */
+#define LARVNET_PATH_BUSY	"/var/lib/larvnet/busy"
+
+/* Ports used by the larvnet system */
+#define LARVNET_FALLBACK_PORT	49153
+#define BUSYPOLL_FALLBACK_PORT	49154
+#define LARVNET_MAX_PACKET	4096
+
+#endif /* LARVNET__H */

home help back first fref pref prev next nref lref last post