alias_local.h (145925) | alias_local.h (145927) |
---|---|
1/*- 2 * Copyright (c) 2001 Charles Mott <cm@linktel.net> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001 Charles Mott <cm@linktel.net> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/netinet/libalias/alias_local.h 145925 2005-05-05 20:22:09Z glebius $ | 26 * $FreeBSD: head/sys/netinet/libalias/alias_local.h 145927 2005-05-05 21:05:38Z glebius $ |
27 */ 28 29/* 30 * Alias_local.h contains the function prototypes for alias.c, 31 * alias_db.c, alias_util.c and alias_ftp.c, alias_irc.c (as well 32 * as any future add-ons). It also includes macros, globals and 33 * struct definitions shared by more than one alias*.c file. 34 * --- 8 unchanged lines hidden (view full) --- 43 * <updated several times by original author and Eivind Eklund> 44 */ 45 46#ifndef _ALIAS_LOCAL_H_ 47#define _ALIAS_LOCAL_H_ 48 49#include <sys/queue.h> 50 | 27 */ 28 29/* 30 * Alias_local.h contains the function prototypes for alias.c, 31 * alias_db.c, alias_util.c and alias_ftp.c, alias_irc.c (as well 32 * as any future add-ons). It also includes macros, globals and 33 * struct definitions shared by more than one alias*.c file. 34 * --- 8 unchanged lines hidden (view full) --- 43 * <updated several times by original author and Eivind Eklund> 44 */ 45 46#ifndef _ALIAS_LOCAL_H_ 47#define _ALIAS_LOCAL_H_ 48 49#include <sys/queue.h> 50 |
51/* Use kernel allocator. */ 52#if defined(_KERNEL) && defined(_SYS_MALLOC_H_) 53MALLOC_DECLARE(M_ALIAS); 54#define malloc(x) malloc(x, M_ALIAS, M_NOWAIT|M_ZERO) 55#define calloc(x, n) malloc(x*n) 56#define free(x) free(x, M_ALIAS) 57#endif 58 59/* XXX: LibAliasSetTarget() uses this constant. */ 60#ifdef _KERNEL 61#define INADDR_NONE 0xffffffff 62#endif 63 |
|
51/* Sizes of input and output link tables */ 52#define LINK_TABLE_OUT_SIZE 101 53#define LINK_TABLE_IN_SIZE 4001 54 55struct proxy_entry; 56 57struct libalias { 58 LIST_ENTRY(libalias) instancelist; --- 298 unchanged lines hidden --- | 64/* Sizes of input and output link tables */ 65#define LINK_TABLE_OUT_SIZE 101 66#define LINK_TABLE_IN_SIZE 4001 67 68struct proxy_entry; 69 70struct libalias { 71 LIST_ENTRY(libalias) instancelist; --- 298 unchanged lines hidden --- |