Deleted Added
full compact
alias_local.h (188294) alias_local.h (223437)
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 188294 2009-02-07 18:49:42Z piso $
26 * $FreeBSD: head/sys/netinet/libalias/alias_local.h 223437 2011-06-22 20:00:27Z ae $
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 *

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

62#else
63#include "alias_sctp.h"
64#endif
65
66/* Sizes of input and output link tables */
67#define LINK_TABLE_OUT_SIZE 4001
68#define LINK_TABLE_IN_SIZE 4001
69
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 *

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

62#else
63#include "alias_sctp.h"
64#endif
65
66/* Sizes of input and output link tables */
67#define LINK_TABLE_OUT_SIZE 4001
68#define LINK_TABLE_IN_SIZE 4001
69
70#define GET_ALIAS_PORT -1
71#define GET_ALIAS_ID GET_ALIAS_PORT
72
70struct proxy_entry;
71
72struct libalias {
73 LIST_ENTRY(libalias) instancelist;
74
75 int packetAliasMode; /* Mode flags */
76 /* - documented in alias.h */
77

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

244u_short IpChecksum(struct ip *_pip);
245u_short TcpChecksum(struct ip *_pip);
246#endif
247void
248DifferentialChecksum(u_short * _cksum, void * _new, void * _old, int _n);
249
250/* Internal data access */
251struct alias_link *
73struct proxy_entry;
74
75struct libalias {
76 LIST_ENTRY(libalias) instancelist;
77
78 int packetAliasMode; /* Mode flags */
79 /* - documented in alias.h */
80

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

247u_short IpChecksum(struct ip *_pip);
248u_short TcpChecksum(struct ip *_pip);
249#endif
250void
251DifferentialChecksum(u_short * _cksum, void * _new, void * _old, int _n);
252
253/* Internal data access */
254struct alias_link *
255AddLink(struct libalias *la, struct in_addr src_addr, struct in_addr dst_addr,
256 struct in_addr alias_addr, u_short src_port, u_short dst_port,
257 int alias_param, int link_type);
258struct alias_link *
252FindIcmpIn(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr,
253 u_short _id_alias, int _create);
254struct alias_link *
255FindIcmpOut(struct libalias *la, struct in_addr _src_addr, struct in_addr _dst_addr,
256 u_short _id, int _create);
257struct alias_link *
258FindFragmentIn1(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr,
259 u_short _ip_id);

--- 138 unchanged lines hidden ---
259FindIcmpIn(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr,
260 u_short _id_alias, int _create);
261struct alias_link *
262FindIcmpOut(struct libalias *la, struct in_addr _src_addr, struct in_addr _dst_addr,
263 u_short _id, int _create);
264struct alias_link *
265FindFragmentIn1(struct libalias *la, struct in_addr _dst_addr, struct in_addr _alias_addr,
266 u_short _ip_id);

--- 138 unchanged lines hidden ---