alias_local.h (176884) | alias_local.h (179480) |
---|---|
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 176884 2008-03-06 21:50:41Z piso $ | 26 * $FreeBSD: head/sys/netinet/libalias/alias_local.h 179480 2008-06-01 18:34:58Z mav $ |
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 * --- 20 unchanged lines hidden (view full) --- 55#include <sys/lock.h> 56#include <sys/mutex.h> 57 58/* XXX: LibAliasSetTarget() uses this constant. */ 59#define INADDR_NONE 0xffffffff 60#endif 61 62/* Sizes of input and output link tables */ | 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 * --- 20 unchanged lines hidden (view full) --- 55#include <sys/lock.h> 56#include <sys/mutex.h> 57 58/* XXX: LibAliasSetTarget() uses this constant. */ 59#define INADDR_NONE 0xffffffff 60#endif 61 62/* Sizes of input and output link tables */ |
63#define LINK_TABLE_OUT_SIZE 101 | 63#define LINK_TABLE_OUT_SIZE 4001 |
64#define LINK_TABLE_IN_SIZE 4001 65 66struct proxy_entry; 67 68struct libalias { 69 LIST_ENTRY(libalias) instancelist; 70 71 int packetAliasMode; /* Mode flags */ --- 33 unchanged lines hidden (view full) --- 105 106 int timeStamp; /* System time in seconds for */ 107 /* current packet */ 108 109 int lastCleanupTime; /* Last time 110 * IncrementalCleanup() */ 111 /* was called */ 112 | 64#define LINK_TABLE_IN_SIZE 4001 65 66struct proxy_entry; 67 68struct libalias { 69 LIST_ENTRY(libalias) instancelist; 70 71 int packetAliasMode; /* Mode flags */ --- 33 unchanged lines hidden (view full) --- 105 106 int timeStamp; /* System time in seconds for */ 107 /* current packet */ 108 109 int lastCleanupTime; /* Last time 110 * IncrementalCleanup() */ 111 /* was called */ 112 |
113 int houseKeepingResidual; /* used by HouseKeeping() */ 114 | |
115 int deleteAllLinks; /* If equal to zero, DeleteLink() */ 116 /* will not remove permanent links */ 117 118 /* log descriptor */ 119#ifdef _KERNEL 120 char *logDesc; 121#else 122 FILE *logDesc; --- 241 unchanged lines hidden --- | 113 int deleteAllLinks; /* If equal to zero, DeleteLink() */ 114 /* will not remove permanent links */ 115 116 /* log descriptor */ 117#ifdef _KERNEL 118 char *logDesc; 119#else 120 FILE *logDesc; --- 241 unchanged lines hidden --- |