alias_db.c (119932) | alias_db.c (120372) |
---|---|
1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- */ 2 3/*- 4 * Copyright (c) 2001 Charles Mott <cm@linktel.net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- */ 2 3/*- 4 * Copyright (c) 2001 Charles Mott <cm@linktel.net> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/netinet/libalias/alias_db.c 119932 2003-09-09 23:50:57Z ru $"); | 30__FBSDID("$FreeBSD: head/sys/netinet/libalias/alias_db.c 120372 2003-09-23 07:41:55Z marcus $"); |
31 32/* 33 Alias_db.c encapsulates all data structures used for storing 34 packet aliasing data. Other parts of the aliasing software 35 access data through functions provided in this file. 36 37 Data storage is based on the notion of a "link", which is 38 established for ICMP echo/reply packets, UDP datagrams and --- 354 unchanged lines hidden (view full) --- 393#ifndef NO_FW_PUNCH 394static int fireWallFD = -1; /* File descriptor to be able to */ 395 /* control firewall. Opened by */ 396 /* PacketAliasSetMode on first */ 397 /* setting the PKT_ALIAS_PUNCH_FW */ 398 /* flag. */ 399#endif 400 | 31 32/* 33 Alias_db.c encapsulates all data structures used for storing 34 packet aliasing data. Other parts of the aliasing software 35 access data through functions provided in this file. 36 37 Data storage is based on the notion of a "link", which is 38 established for ICMP echo/reply packets, UDP datagrams and --- 354 unchanged lines hidden (view full) --- 393#ifndef NO_FW_PUNCH 394static int fireWallFD = -1; /* File descriptor to be able to */ 395 /* control firewall. Opened by */ 396 /* PacketAliasSetMode on first */ 397 /* setting the PKT_ALIAS_PUNCH_FW */ 398 /* flag. */ 399#endif 400 |
401unsigned int skinnyPort = 0; /* TCP port used by the Skinny */ 402 /* protocol. */ |
|
401 402 403 404 405 406 | 403 404 405 406 407 408 |
409 |
|
407/* Internal utility routines (used only in alias_db.c) 408 409Lookup table starting points: 410 StartPointIn() -- link table initial search point for 411 incoming packets 412 StartPointOut() -- link table initial search point for 413 outgoing packets 414 --- 2528 unchanged lines hidden (view full) --- 2943 2944void 2945PacketAliasSetFWBase(unsigned int base, unsigned int num) { 2946#ifndef NO_FW_PUNCH 2947 fireWallBaseNum = base; 2948 fireWallNumNums = num; 2949#endif 2950} | 410/* Internal utility routines (used only in alias_db.c) 411 412Lookup table starting points: 413 StartPointIn() -- link table initial search point for 414 incoming packets 415 StartPointOut() -- link table initial search point for 416 outgoing packets 417 --- 2528 unchanged lines hidden (view full) --- 2946 2947void 2948PacketAliasSetFWBase(unsigned int base, unsigned int num) { 2949#ifndef NO_FW_PUNCH 2950 fireWallBaseNum = base; 2951 fireWallNumNums = num; 2952#endif 2953} |
2954 2955void 2956PacketAliasSetSkinnyPort(unsigned int port) { 2957 skinnyPort = port; 2958} |
|