1*4a71e5f3Schristos /* 2*4a71e5f3Schristos * Copyright (c) 1993, 1994, 1995, 1996, 1998 3*4a71e5f3Schristos * The Regents of the University of California. All rights reserved. 4*4a71e5f3Schristos * 5*4a71e5f3Schristos * Redistribution and use in source and binary forms, with or without 6*4a71e5f3Schristos * modification, are permitted provided that: (1) source code distributions 7*4a71e5f3Schristos * retain the above copyright notice and this paragraph in its entirety, (2) 8*4a71e5f3Schristos * distributions including binary code include the above copyright notice and 9*4a71e5f3Schristos * this paragraph in its entirety in the documentation or other materials 10*4a71e5f3Schristos * provided with the distribution, and (3) all advertising materials mentioning 11*4a71e5f3Schristos * features or use of this software display the following acknowledgement: 12*4a71e5f3Schristos * ``This product includes software developed by the University of California, 13*4a71e5f3Schristos * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14*4a71e5f3Schristos * the University nor the names of its contributors may be used to endorse 15*4a71e5f3Schristos * or promote products derived from this software without specific prior 16*4a71e5f3Schristos * written permission. 17*4a71e5f3Schristos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18*4a71e5f3Schristos * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19*4a71e5f3Schristos * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20*4a71e5f3Schristos */ 21*4a71e5f3Schristos 229185e895Schristos #include "pcap/funcattrs.h" 239185e895Schristos 24*4a71e5f3Schristos extern void rpcapd_log_set(int, int); 259185e895Schristos 269185e895Schristos typedef enum { 27*4a71e5f3Schristos LOGPRIO_DEBUG, 289185e895Schristos LOGPRIO_INFO, 299185e895Schristos LOGPRIO_WARNING, 309185e895Schristos LOGPRIO_ERROR 319185e895Schristos } log_priority; 329185e895Schristos 339185e895Schristos extern void rpcapd_log(log_priority priority, 349185e895Schristos PCAP_FORMAT_STRING(const char *message), ...) PCAP_PRINTFLIKE(2, 3); 35