Deleted Added
full compact
alias_local.h (99207) alias_local.h (120372)
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 99207 2002-07-01 11:19:40Z brian $
26 * $FreeBSD: head/sys/netinet/libalias/alias_local.h 120372 2003-09-23 07:41:55Z marcus $
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 *

--- 34 unchanged lines hidden (view full) ---

69 acc += acc >> 16; \
70 cksum = (u_short) acc; \
71 } \
72 } while (0)
73
74/* Globals */
75
76extern int packetAliasMode;
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 *

--- 34 unchanged lines hidden (view full) ---

69 acc += acc >> 16; \
70 cksum = (u_short) acc; \
71 } \
72 } while (0)
73
74/* Globals */
75
76extern int packetAliasMode;
77extern unsigned int skinnyPort;
77
78/* Prototypes */
79
80/* General utilities */
81u_short IpChecksum(struct ip *_pip);
82u_short TcpChecksum(struct ip *_pip);
83void DifferentialChecksum(u_short *_cksum, u_short *_new, u_short *_old,
84 int _n);

--- 122 unchanged lines hidden (view full) ---

207int AliasHandleUdpNbtNS(struct ip *_pip, struct alias_link *_link,
208 struct in_addr *_alias_address, u_short *_alias_port,
209 struct in_addr *_original_address, u_short *_original_port);
210
211/* CUSeeMe routines */
212void AliasHandleCUSeeMeOut(struct ip *_pip, struct alias_link *_link);
213void AliasHandleCUSeeMeIn(struct ip *_pip, struct in_addr _original_addr);
214
78
79/* Prototypes */
80
81/* General utilities */
82u_short IpChecksum(struct ip *_pip);
83u_short TcpChecksum(struct ip *_pip);
84void DifferentialChecksum(u_short *_cksum, u_short *_new, u_short *_old,
85 int _n);

--- 122 unchanged lines hidden (view full) ---

208int AliasHandleUdpNbtNS(struct ip *_pip, struct alias_link *_link,
209 struct in_addr *_alias_address, u_short *_alias_port,
210 struct in_addr *_original_address, u_short *_original_port);
211
212/* CUSeeMe routines */
213void AliasHandleCUSeeMeOut(struct ip *_pip, struct alias_link *_link);
214void AliasHandleCUSeeMeIn(struct ip *_pip, struct in_addr _original_addr);
215
216/* Skinny routines */
217void AliasHandleSkinny(struct ip *_pip, struct alias_link *_link);
218
215/* Transparent proxy routines */
216int ProxyCheck(struct ip *_pip, struct in_addr *_proxy_server_addr,
217 u_short *_proxy_server_port);
218void ProxyModify(struct alias_link *_link, struct ip *_pip,
219 int _maxpacketsize, int _proxy_type);
220
221enum alias_tcp_state {
222 ALIAS_TCP_STATE_NOT_CONNECTED,
223 ALIAS_TCP_STATE_CONNECTED,
224 ALIAS_TCP_STATE_DISCONNECTED
225};
226
227/*lint -restore */
228
229#endif /* !_ALIAS_LOCAL_H_ */
219/* Transparent proxy routines */
220int ProxyCheck(struct ip *_pip, struct in_addr *_proxy_server_addr,
221 u_short *_proxy_server_port);
222void ProxyModify(struct alias_link *_link, struct ip *_pip,
223 int _maxpacketsize, int _proxy_type);
224
225enum alias_tcp_state {
226 ALIAS_TCP_STATE_NOT_CONNECTED,
227 ALIAS_TCP_STATE_CONNECTED,
228 ALIAS_TCP_STATE_DISCONNECTED
229};
230
231/*lint -restore */
232
233#endif /* !_ALIAS_LOCAL_H_ */