aboutsummaryrefslogtreecommitdiff
path: root/src/varnish_mib.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-11-26 07:34:42 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-11-26 07:59:50 +0200
commit50813ca9aa276c72e6f766a5ecd23c1170273528 (patch)
tree61a3246051156b10f14f35481368ba589b8b5b4f /src/varnish_mib.h
parent2301256beda8480560c6e8053dc209989c8afeb8 (diff)
downloadvarnish-mib-50813ca9aa276c72e6f766a5ecd23c1170273528.tar.gz
varnish-mib-50813ca9aa276c72e6f766a5ecd23c1170273528.tar.bz2
Implement table of bans
* src/varnish_mib.h: Removed; from now on it is generated from varnish_mib.mib2c in pair with varnish_mib.c * src/.gitignore: Add varnish_mib.h * src/Makefile.am: Change rules accordingly. * src/VARNISH-MIB.txt: Define table of bans. * src/ban.c: Implement table of bans. * src/varnish_mib.mib2c: Implement table support.
Diffstat (limited to 'src/varnish_mib.h')
-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
+++ /dev/null
@@ -1,52 +0,0 @@
-/* This file is part of varnish-mib -*- c -*-
- Copyright (C) 2014 Sergey Poznyakoff
-
- Varnish-mib is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3, or (at your option)
- any later version.
-
- Varnish-mib is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with varnish-mib. If not, see <http://www.gnu.org/licenses/>.
-*/
-#include <config.h>
-#include <stdlib.h>
-#include <stdint.h>
-
-#include <vapi/vsc.h>
-#include <vapi/vsm.h>
-#include <vcli.h>
-
-#include <net-snmp/net-snmp-config.h>
-#include <net-snmp/net-snmp-includes.h>
-#include <net-snmp/agent/net-snmp-agent-includes.h>
-
-typedef struct vcli_conn {
- int fd;
- char *secret;
- int resp;
- char *base;
- size_t bufmax;
- size_t bufsize;
-} vcli_conn_t;
-
-int vcli_write(vcli_conn_t *conn);
-int vcli_read_response(vcli_conn_t *conn);
-int vcli_vasprintf(vcli_conn_t *conn, const char *fmt, va_list ap);
-int vcli_asprintf(vcli_conn_t *conn, const char *fmt, ...);
-void vcli_disconnect(vcli_conn_t *conn);
-int vcli_connect(struct VSM_data *vd, vcli_conn_t *conn);
-
-
-int varnish_auth_response(const char *file, const char *challenge,
- char response[CLI_AUTH_RESPONSE_LEN + 1]);
-
-int varnish_ban(netsnmp_agent_request_info *reqinfo,
- netsnmp_request_info *requests,
- struct VSM_data *vd);
-

Return to:

Send suggestions and report system problems to the System administrator.