diff options
Diffstat (limited to 'usr.sbin/httpd/httpd.h')
-rw-r--r-- | usr.sbin/httpd/httpd.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/httpd/httpd.h b/usr.sbin/httpd/httpd.h index 081e6387231..c15313243e4 100644 --- a/usr.sbin/httpd/httpd.h +++ b/usr.sbin/httpd/httpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.h,v 1.17 2014/07/29 16:17:28 reyk Exp $ */ +/* $OpenBSD: httpd.h,v 1.18 2014/07/30 10:05:14 reyk Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -276,9 +276,11 @@ SPLAY_HEAD(client_tree, client); #define SRVFLAG_NO_INDEX 0x02 #define SRVFLAG_AUTO_INDEX 0x04 #define SRVFLAG_NO_AUTO_INDEX 0x08 +#define SRVFLAG_DOCROOT 0x10 +#define SRVFLAG_LOCATION 0x20 #define SRVFLAG_BITS \ - "\10\01INDEX\02NO_INDEX\03AUTO_INDEX\04NO_AUTO_INDEX" + "\10\01INDEX\02NO_INDEX\03AUTO_INDEX\04NO_AUTO_INDEX\05LOCATION" #define TCPFLAG_NODELAY 0x01 #define TCPFLAG_NNODELAY 0x02 @@ -299,6 +301,7 @@ struct server_config { char name[MAXHOSTNAMELEN]; char docroot[MAXPATHLEN]; char index[NAME_MAX]; + char location[NAME_MAX]; in_port_t port; struct sockaddr_storage ss; @@ -399,6 +402,8 @@ int server_bufferevent_write(struct client *, void *, size_t); void server_inflight_dec(struct client *, const char *); struct server * server_byaddr(struct sockaddr *, in_port_t); +struct server * + server_byname(const char *); SPLAY_PROTOTYPE(client_tree, client, clt_nodes, server_client_cmp); |