Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > 1b92a7171564d1c7299f16ad31027fe1 > files > 19

etrace-debug-1.1-8mdv2011.0.i586.rpm

/*
 * $Id: probes.h,v 1.1.1.1 2006/07/08 16:31:47 dave Exp $
 */
#ifndef __PROBES__
#define __PROBES__
#include "etrace.h"
#include "output.h"

enum __probe_t {
	ptUNKNOWN, ptICMP, ptTCP, ptUDP, ptPROTO} probe_t;

enum __icmptype {
	icmpUNKNOWN, icmpECHO, icmpTIMESTAMP, icmpADDRESSMASK, icmpINFO};

struct	probe_t {
	unsigned int		type;
	unsigned int		data;
	unsigned int		attempt;
	struct probe_t		*next;
};
typedef	struct probe_t		PROBE;

struct	probe_list_t {
	PROBE			*first;
	PROBE			*last;
};
typedef	struct probe_list_t	PROBE_LIST;

extern	char		*probetype_desc[];
extern	PROBE_LIST	probes;

void add_probe(int type, int data);
char *probe_desc (PROBE *probe);
void clear_probes(void);

#endif /* __PROBES__ */