1 /* This file is part of GNU Radius. 2 Copyright (C) 2000,2001,2002,2003,2007 Free Software Foundation, Inc. 3 4 Written by Sergey Poznyakoff 5 6 GNU Radius is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3 of the License, or 9 (at your option) any later version. 10 11 GNU Radius is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GNU Radius; if not, write to the Free Software Foundation, 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 19 20 #ifndef __radsnmp_h 21 #define __radsnmp_h 22 23 typedef enum { 24 serv_other=1, 25 serv_reset, 26 serv_init, 27 serv_running, 28 serv_suspended, 29 serv_shutdown 30 } serv_stat; 31 32 typedef struct { 33 serv_stat status; 34 struct timeval reset_time; 35 grad_counter_t num_req; 36 grad_counter_t num_invalid_req; 37 grad_counter_t num_dup_req; 38 grad_counter_t num_resp; 39 grad_counter_t num_bad_req; 40 grad_counter_t num_bad_sign; 41 grad_counter_t num_dropped; 42 grad_counter_t num_norecords; 43 grad_counter_t num_unknowntypes; 44 } Acct_server_stat; 45 46 typedef struct { 47 serv_stat status; 48 struct timeval reset_time; 49 grad_counter_t num_access_req; 50 grad_counter_t num_invalid_req; 51 grad_counter_t num_dup_req; 52 grad_counter_t num_accepts; 53 grad_counter_t num_rejects; 54 grad_counter_t num_challenges; 55 grad_counter_t num_bad_req; 56 grad_counter_t num_bad_auth; 57 grad_counter_t num_dropped; 58 grad_counter_t num_unknowntypes; 59 } Auth_server_stat; 60 61 struct nas_stat { 62 struct nas_stat *next; 63 int index; 64 grad_uint32_t ipaddr; 65 grad_counter_t ports_active; 66 grad_counter_t ports_idle; 67 Auth_server_stat auth; 68 Acct_server_stat acct; 69 }; 70 71 72 #endif 73 74 75 76