alias.h (115650) | alias.h (120372) |
---|---|
1/* lint -save -library Flexelint comment for external headers */ 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 --- 11 unchanged lines hidden (view full) --- 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 * | 1/* lint -save -library Flexelint comment for external headers */ 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 --- 11 unchanged lines hidden (view full) --- 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.h 115650 2003-06-01 23:15:00Z ru $ | 28 * $FreeBSD: head/sys/netinet/libalias/alias.h 120372 2003-09-23 07:41:55Z marcus $ |
29 */ 30 31/*- 32 * Alias.h defines the outside world interfaces for the packet aliasing 33 * software. 34 * 35 * This software is placed into the public domain with no restrictions on its 36 * distribution. 37 */ 38 39#ifndef _ALIAS_H_ 40#define _ALIAS_H_ 41 42/* The external interface to libalias, the packet aliasing engine. */ 43 44/* Initialization and control functions. */ 45void PacketAliasInit(void); 46void PacketAliasSetAddress(struct in_addr _addr); 47void PacketAliasSetFWBase(unsigned int _base, unsigned int _num); | 29 */ 30 31/*- 32 * Alias.h defines the outside world interfaces for the packet aliasing 33 * software. 34 * 35 * This software is placed into the public domain with no restrictions on its 36 * distribution. 37 */ 38 39#ifndef _ALIAS_H_ 40#define _ALIAS_H_ 41 42/* The external interface to libalias, the packet aliasing engine. */ 43 44/* Initialization and control functions. */ 45void PacketAliasInit(void); 46void PacketAliasSetAddress(struct in_addr _addr); 47void PacketAliasSetFWBase(unsigned int _base, unsigned int _num); |
48void PacketAliasSetSkinnyPort(unsigned int _port); |
|
48unsigned int 49 PacketAliasSetMode(unsigned int _flags, unsigned int _mask); 50void PacketAliasUninit(void); 51 52/* Packet Handling functions. */ 53int PacketAliasIn(char *_ptr, int _maxpacketsize); 54int PacketAliasOut(char *_ptr, int _maxpacketsize); 55int PacketUnaliasOut(char *_ptr, int _maxpacketsize); --- 128 unchanged lines hidden --- | 49unsigned int 50 PacketAliasSetMode(unsigned int _flags, unsigned int _mask); 51void PacketAliasUninit(void); 52 53/* Packet Handling functions. */ 54int PacketAliasIn(char *_ptr, int _maxpacketsize); 55int PacketAliasOut(char *_ptr, int _maxpacketsize); 56int PacketUnaliasOut(char *_ptr, int _maxpacketsize); --- 128 unchanged lines hidden --- |