aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2014-02-25 10:56:52 +0800
committerIan Kent <ikent@redhat.com>2014-03-31 10:39:21 +0800
commit8727d277fa7da92980399bb06e8355d9c808cc0a (patch)
treeda4280308e8ec8443099a324a84d46dbf199a2e3 /include
parent1bef345a29f214e7e01789b26685d611a3a64cfc (diff)
downloadautofs-8727d277fa7da92980399bb06e8355d9c808cc0a.tar.gz
autofs-5.0.9 - amd lookup move get_proximity() to parse_subs.c
Later we'll need to use get_proximity() from outside modules/replicated.c so move it to the autofs library.
Diffstat (limited to 'include')
-rw-r--r--include/parse_subs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/parse_subs.h b/include/parse_subs.h
index ecc712d1..c0da5ae9 100644
--- a/include/parse_subs.h
+++ b/include/parse_subs.h
@@ -18,6 +18,13 @@
#ifndef PARSE_SUBS_H
#define PARSE_SUBS_H
+#define PROXIMITY_ERROR 0x0000
+#define PROXIMITY_LOCAL 0x0001
+#define PROXIMITY_SUBNET 0x0002
+#define PROXIMITY_NET 0x0004
+#define PROXIMITY_OTHER 0x0008
+#define PROXIMITY_UNSUPPORTED 0x0010
+
struct mapent;
struct map_type_info {
@@ -26,6 +33,7 @@ struct map_type_info {
char *map;
};
+unsigned int get_proximity(struct sockaddr *);
const char *skipspace(const char *);
int check_colon(const char *);
int chunklen(const char *, int);