/***************************************************************************/ /* Module: $Id: kbauth.h,v 1.4 1999/05/07 04:15:27 maf Exp $ /* Description: KarlBridge authentication system header /* Author: maf /* Notes: /***************************************************************************/ /* $Log: */ #include #include "snmp.h" #ifndef BIG_ENDIAN #define BIG_ENDIAN 4321 #endif #ifndef LITTLE_ENDIAN #define LITTLE_ENDIAN 1234 #endif #ifndef BYTE_ORDER #define BYTE_ORDER BIG_ENDIAN #endif #define KBCONFPATHNAME "/var/kbauth/kbauth.conf" /* number of auth records allowed in config file */ #define MAXAUTHRECORDS 200 /* max length of service name */ #define MAXSERVICENAME 80 /* max length of line in config file */ #define MAXCONFIGLINE 200 /* max length of community name */ #define MAXCOMMUNITYNAME 32 struct KbRemAuthDatabase { u_long ipLow; u_long ipHigh; u_long srcIP; u_long dstIP; u_long dstIPMask; u_long timeOut; u_long bridgeIP; char bridgeCommunity[MAXCOMMUNITYNAME+1]; char serviceName[MAXSERVICENAME+1]; }; #define MODE_LOGIN 0 #define MODE_LOGOUT 1 /* #define DEFLOGLEVEL 0 /* don't do logging */ #define DEFLOGLEVEL 1 /* don't do logging */ struct KBridgeAuthenRecord { OidEleType src_ipaddr[4]; OidEleType dst_ipaddr[4]; OidEleType mask[4]; u_long timout; };