alias_db.c (77485) | alias_db.c (77701) |
---|---|
1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- | 1/* -*- mode: c; tab-width: 8; c-basic-indent: 4; -*- */ 2 3/*- 4 * Copyright (c) 2001 Charles Mott <cmott@scientech.com> 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 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/sys/netinet/libalias/alias_db.c 77701 2001-06-04 15:09:51Z brian $ 29 */ 30 31/* |
2 Alias_db.c encapsulates all data structures used for storing 3 packet aliasing data. Other parts of the aliasing software 4 access data through functions provided in this file. 5 6 Data storage is based on the notion of a "link", which is 7 established for ICMP echo/reply packets, UDP datagrams and 8 TCP stream connections. A link stores the original source 9 and destination addresses. For UDP and TCP, it also stores --- 99 unchanged lines hidden (view full) --- 109 Added QueryUdpTcpIn and QueryUdpTcpOut to look for an aliasing 110 link but not actually add one. 111 112 Added FindRtspOut, which is closely derived from FindUdpTcpOut, 113 except that the alias port (from FindNewPortGroup) is provided 114 as input. 115 116 See HISTORY file for additional revisions. | 32 Alias_db.c encapsulates all data structures used for storing 33 packet aliasing data. Other parts of the aliasing software 34 access data through functions provided in this file. 35 36 Data storage is based on the notion of a "link", which is 37 established for ICMP echo/reply packets, UDP datagrams and 38 TCP stream connections. A link stores the original source 39 and destination addresses. For UDP and TCP, it also stores --- 99 unchanged lines hidden (view full) --- 139 Added QueryUdpTcpIn and QueryUdpTcpOut to look for an aliasing 140 link but not actually add one. 141 142 Added FindRtspOut, which is closely derived from FindUdpTcpOut, 143 except that the alias port (from FindNewPortGroup) is provided 144 as input. 145 146 See HISTORY file for additional revisions. |
117 118 $FreeBSD: head/sys/netinet/libalias/alias_db.c 77485 2001-05-30 14:24:35Z ru $ | |
119*/ 120 121 122/* System include files */ 123#include <errno.h> 124#include <stdlib.h> 125#include <stdio.h> 126#include <unistd.h> --- 2660 unchanged lines hidden --- | 147*/ 148 149 150/* System include files */ 151#include <errno.h> 152#include <stdlib.h> 153#include <stdio.h> 154#include <unistd.h> --- 2660 unchanged lines hidden --- |