1
/* $Id: defines.h,v 1.9 2001/07/24 18:20:26 fygrave Exp $ */
3
** Copyright (C) 2001 Fyodor Yarochkin <fygrave@tigerteam.net>,
4
** Ofir Arkin <ofir@sys-security.com>
6
** This program is free software; you can redistribute it and/or modify
7
** it under the terms of the GNU General Public License as published by
8
** the Free Software Foundation; either version 2 of the License, or
9
** (at your option) any later version.
11
** All material for nonprofit, educational use only.
13
** This program is distributed in the hope that it will be useful,
14
** but WITHOUT ANY WARRANTY; without even the implied warranty of
15
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
** GNU General Public License for more details.
18
** You should have received a copy of the GNU General Public License
19
** along with this program; if not, write to the Free Software
20
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
#define VERSION "0.0.1"
29
#define BANNER "X probe ver. "VERSION"\n------------------"
32
#define DEF_TIMEOUT 10
33
#define PACKBUF_SIZ 1024
36
#define UDP_PORT 32132
37
#define UDP_DATA_SIZE 70
38
#define UDP_LEN_ALL (sizeof(struct ip) + sizeof(struct udphdr) + UDP_DATA_SIZE)
40
#define UDP_CKSUM_BADDGRAM -1
41
#define UDP_CKSUM_ZERO 0
42
#define UDP_CKSUM_BAD 1
43
#define UDP_CKSUM_GOOD 2
45
/* we don't expect packets bigger than 1500 */
46
#define LPCAP_SNAPLEN 1500
47
#define LPCAP_TIMEOUT 2000
49
/* return values for ICMP_UNREACH length check */
51
#define ICMPUNREACH_LEN_OK 1
52
#define ICMPUNREACH_LEN_GT 2
53
#define ICMPUNREACH_LEN_LS 3
55
/* teturn values for frag bits test */
57
#define FRAG_BITS_OK 0
58
#define FRAG_BITS_FLIPPED 1
59
#define FRAG_BITS_ZERO 2
61
#endif /* DEFINES_H */