1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 * 22 * Copyright 1996 Sun Microsystems, Inc. All Rights Reserved. 23 * Use is subject to license terms. 24 */ 25 26 /* 27 * HISTORY 28 * 5-20-96 Jerry Yeung merge with agent_msg.h 29 */ 30 31 #ifndef _SNMPRELAY_MSG_H_ 32 #define _SNMPRELAY_MSG_H_ 33 34 #pragma ident "%Z%%M% %I% %E% SMI" 35 36 /***** TRACING MESSAGES *****/ 37 38 #define MSG_SIGHUP "signal SIGHUP(%d) received" 39 40 #define MSG_READING_CONFIG "re-reading its configuration directory %s..." 41 #define MSG_CONFIG_READED "...configuration re-read" 42 43 44 /***** PDU RELATED ERRORS *****/ 45 46 #define ERR_MSG_PDU_RECEIVED "error while receiving a pdu from %s: %s" 47 #define ERR_MSG_SNMP_ERROR "SNMP error (%s, %lu) sent back to %s" 48 #define ERR_MSG_PDU_SEND_BACK "error while sending a pdu back to %s: %s" 49 #define ERR_MSG_PDU_SEND_TO "error while sending a pdu to %s: %s" 50 51 52 /***** SYSTEM ERRORS *****/ 53 54 #define ERR_MSG_SOCKET "socket() failed %s" 55 #define ERR_MSG_BIND "bind() failed on UDP port %d %s" 56 #define ERR_MSG_SELECT "select() failed %s" 57 #define ERR_MSG_FORK "fork() failed %s" 58 #define ERR_MSG_FCLOSE "fclose(%s) failed %s" 59 #define ERR_MSG_CHDIR "chdir(%s) failed %s" 60 #define ERR_MSG_OPENDIR "can't read the directory %s %s" 61 #define ERR_MSG_OPEN "can't open config file %s %s" 62 #define ERR_MSG_FSTAT "can't stat config file %s %s" 63 #define ERR_MSG_MMAP "can't mmap config file %s %s" 64 #define ERR_MSG_MUNMAP "munmap() failed %s" 65 #define ERR_MSG_CLOSE "close() failed %s" 66 #define ERR_MSG_CLOSEDIR "closedir(%s) failed %s" 67 68 69 /***** MISCELLANEOUS ERRORS *****/ 70 71 #define ERR_MSG_ALLOC "unable to allocate memory" 72 73 #define ERR_MSG_MANAGER_DUP "the manager %s already exists" 74 #define ERR_MSG_COMMUNITY_DUP "the community %s already exists" 75 76 #define ERR_MSG_MY_IP_ADDRESS "unable to get my IP address: %s" 77 78 #define ERR_MSG_VARBIND_LIMIT "unable to handle SNMP request with more than 32 variables" 79 80 #define ERR_MSG_UNKNOWN_FRAGMENT "unknown PDU fragment received from agent %s (%s)" 81 #define ERR_MSG_AGENT_NOT_RESPONDING "agent %s not responding" 82 83 84 #endif 85