3 * @brief snmp trap message header.
5 * L7VSD: Linux Virtual Server for Layer7 Load Balancing
6 * Copyright (C) 2010 NTT COMWARE Corporation.
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 #ifndef __TRAPMESSAGE_H__
25 #define __TRAPMESSAGE_H__
27 #include "error_code.h"
31 //! snmp trap message struct
37 VIRTUALSERVICE_CHANGE,
38 VIRTUALSERVICE_REMOVE,
47 SESSIONPOOL_ALERT_OFF,
59 //! typedef snmp send trap func type
60 typedef boost::function<void(trapmessage&, error_code&)>
61 snmp_send_trap_func_type;
64 #endif //__TRAPMESSAGE_H__