File: trigger.h

package info (click to toggle)
dsniff 2.4b1%2Bdebian-22.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,808 kB
  • ctags: 2,266
  • sloc: ansic: 10,785; sh: 152; makefile: 116
file content (35 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * trigger.h
 *
 * Trigger interface.
 *
 * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
 *
 * $Id: trigger.h,v 1.5 2001/03/15 08:33:06 dugsong Exp $
 */

#ifndef TRIGGER_H
#define TRIGGER_H

#define TRIGGER_TCP_RAW_TIMEOUT		30

void	trigger_init_list(char *list);
void	trigger_init_magic(char *filename);
void	trigger_init_services(char *filename);

void	trigger_dump(void);

int	trigger_set_ip(int proto, char *name);
int	trigger_set_udp(int port, char *name);
int	trigger_set_tcp(int port, char *name);
int	trigger_set_rpc(int program, char *name);

void	trigger_ip(struct libnet_ipv4_hdr *ip);
void	trigger_udp(struct libnet_ipv4_hdr *ip);
void	trigger_tcp(struct tcp_stream *ts, void **conn_save);
void	trigger_tcp_raw(struct libnet_ipv4_hdr *ip);
void	trigger_tcp_raw_timeout(int signal);
void	trigger_rpc(int program, int proto, int port);

#endif /* TRIGGER_H */