alias.h (32560) | alias.h (35314) |
---|---|
1/*lint -save -library Flexelint comment for external headers */ 2 3/* 4 Alias.h defines the outside world interfaces for the packet 5 aliasing software. 6 7 This software is placed into the public domain with no restrictions 8 on its distribution. 9 | 1/*lint -save -library Flexelint comment for external headers */ 2 3/* 4 Alias.h defines the outside world interfaces for the packet 5 aliasing software. 6 7 This software is placed into the public domain with no restrictions 8 on its distribution. 9 |
10 $Id$ | 10 $Id: alias.h,v 1.7 1998/01/16 12:56:07 bde Exp $ |
11*/ 12 13 14#ifndef _ALIAS_H_ 15#define _ALIAS_H_ 16 17#ifndef NULL 18#define NULL 0 --- 12 unchanged lines hidden (view full) --- 31 PacketAliasUninit(void); 32 33 extern void 34 PacketAliasSetAddress(struct in_addr); 35 36 extern unsigned int 37 PacketAliasSetMode(unsigned int, unsigned int); 38 | 11*/ 12 13 14#ifndef _ALIAS_H_ 15#define _ALIAS_H_ 16 17#ifndef NULL 18#define NULL 0 --- 12 unchanged lines hidden (view full) --- 31 PacketAliasUninit(void); 32 33 extern void 34 PacketAliasSetAddress(struct in_addr); 35 36 extern unsigned int 37 PacketAliasSetMode(unsigned int, unsigned int); 38 |
39#ifndef NO_FW_PUNCH |
|
39 extern void 40 PacketAliasSetFWBase(unsigned int, unsigned int); | 40 extern void 41 PacketAliasSetFWBase(unsigned int, unsigned int); |
42#endif |
|
41 42/* Packet Handling */ 43 extern int 44 PacketAliasIn(char *, int maxpacketsize); 45 46 extern int 47 PacketAliasOut(char *, int maxpacketsize); 48 --- 96 unchanged lines hidden (view full) --- 145/* If PKT_ALIAS_RESET_ON_ADDR_CHANGE is set, then the table of dynamic 146 aliasing links will be reset whenever PacketAliasSetAddress() 147 changes the default aliasing address. If the default aliasing 148 address is left unchanged by this functions call, then the 149 table of dynamic aliasing links will be left intact. This 150 bit is set after a call to PacketAliasInit(). */ 151#define PKT_ALIAS_RESET_ON_ADDR_CHANGE 0x20 152 | 43 44/* Packet Handling */ 45 extern int 46 PacketAliasIn(char *, int maxpacketsize); 47 48 extern int 49 PacketAliasOut(char *, int maxpacketsize); 50 --- 96 unchanged lines hidden (view full) --- 147/* If PKT_ALIAS_RESET_ON_ADDR_CHANGE is set, then the table of dynamic 148 aliasing links will be reset whenever PacketAliasSetAddress() 149 changes the default aliasing address. If the default aliasing 150 address is left unchanged by this functions call, then the 151 table of dynamic aliasing links will be left intact. This 152 bit is set after a call to PacketAliasInit(). */ 153#define PKT_ALIAS_RESET_ON_ADDR_CHANGE 0x20 154 |
155#ifndef NO_FW_PUNCH |
|
153/* If PKT_ALIAS_PUNCH_FW is set, active FTP and IRC DCC connections 154 will create a 'hole' in the firewall to allow the transfers to 155 work. Where (IPFW "line-numbers") the hole is created is 156 controlled by PacketAliasSetFWBase(base, size). The hole will be 157 attached to that particular alias_link, so when the link goes away 158 so do the hole. */ 159#define PKT_ALIAS_PUNCH_FW 0x40 | 156/* If PKT_ALIAS_PUNCH_FW is set, active FTP and IRC DCC connections 157 will create a 'hole' in the firewall to allow the transfers to 158 work. Where (IPFW "line-numbers") the hole is created is 159 controlled by PacketAliasSetFWBase(base, size). The hole will be 160 attached to that particular alias_link, so when the link goes away 161 so do the hole. */ 162#define PKT_ALIAS_PUNCH_FW 0x40 |
163#endif |
|
160 161/* Return Codes */ 162#define PKT_ALIAS_ERROR -1 163#define PKT_ALIAS_OK 1 164#define PKT_ALIAS_IGNORED 2 165#define PKT_ALIAS_UNRESOLVED_FRAGMENT 3 166#define PKT_ALIAS_FOUND_HEADER_FRAGMENT 4 167 168#endif 169/*lint -restore */ | 164 165/* Return Codes */ 166#define PKT_ALIAS_ERROR -1 167#define PKT_ALIAS_OK 1 168#define PKT_ALIAS_IGNORED 2 169#define PKT_ALIAS_UNRESOLVED_FRAGMENT 3 170#define PKT_ALIAS_FOUND_HEADER_FRAGMENT 4 171 172#endif 173/*lint -restore */ |