summaryrefslogtreecommitdiffabout
path: root/src/varnish_mib.h
Unidiff
Diffstat (limited to 'src/varnish_mib.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/varnish_mib.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/varnish_mib.h b/src/varnish_mib.h
deleted file mode 100644
index 31e3de1..0000000
--- a/src/varnish_mib.h
+++ b/dev/null
@@ -1,52 +0,0 @@
1/* This file is part of varnish-mib -*- c -*-
2 Copyright (C) 2014 Sergey Poznyakoff
3
4 Varnish-mib is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 Varnish-mib is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with varnish-mib. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include <config.h>
18#include <stdlib.h>
19#include <stdint.h>
20
21#include <vapi/vsc.h>
22#include <vapi/vsm.h>
23#include <vcli.h>
24
25#include <net-snmp/net-snmp-config.h>
26#include <net-snmp/net-snmp-includes.h>
27#include <net-snmp/agent/net-snmp-agent-includes.h>
28
29typedef struct vcli_conn {
30 int fd;
31 char *secret;
32 int resp;
33 char *base;
34 size_t bufmax;
35 size_t bufsize;
36} vcli_conn_t;
37
38int vcli_write(vcli_conn_t *conn);
39int vcli_read_response(vcli_conn_t *conn);
40int vcli_vasprintf(vcli_conn_t *conn, const char *fmt, va_list ap);
41int vcli_asprintf(vcli_conn_t *conn, const char *fmt, ...);
42void vcli_disconnect(vcli_conn_t *conn);
43int vcli_connect(struct VSM_data *vd, vcli_conn_t *conn);
44
45
46int varnish_auth_response(const char *file, const char *challenge,
47 char response[CLI_AUTH_RESPONSE_LEN + 1]);
48
49int varnish_ban(netsnmp_agent_request_info *reqinfo,
50 netsnmp_request_info *requests,
51 struct VSM_data *vd);
52

Return to:

Send suggestions and report system problems to the System administrator.