mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
944f709824
Update loadalias to use the new libalias api. Update to version 1.1.
19 lines
724 B
C
19 lines
724 B
C
struct aliasHandlers {
|
|
char *(*PacketAliasGetFragment) (char *);
|
|
void (*PacketAliasInit) ();
|
|
int (*PacketAliasIn) (char *, int);
|
|
int (*PacketAliasOut) (char *, int);
|
|
struct alias_link *(*PacketAliasRedirectAddr)
|
|
(struct in_addr, struct in_addr);
|
|
struct alias_link *(*PacketAliasRedirectPort)
|
|
(struct in_addr, u_short, struct in_addr, u_short,
|
|
struct in_addr, u_short, u_char);
|
|
int (*PacketAliasSaveFragment) (char *);
|
|
void (*PacketAliasSetAddress) (struct in_addr);
|
|
unsigned (*PacketAliasSetMode) (unsigned, unsigned);
|
|
void (*PacketAliasFragmentIn) (char *, char *);
|
|
};
|
|
|
|
extern int loadAliasHandlers(struct aliasHandlers *);
|
|
extern void unloadAliasHandlers();
|