~ubuntu-branches/ubuntu/trusty/xprobe/trusty

« back to all changes in this revision

Viewing changes to defines.h

  • Committer: Bazaar Package Importer
  • Author(s): Richard Atterer
  • Date: 2005-02-22 22:54:24 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050222225424-6cqy8rr45pkna819
Tags: 0.2.2-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: defines.h,v 1.9 2001/07/24 18:20:26 fygrave Exp $ */
2
 
/*
3
 
** Copyright (C) 2001 Fyodor Yarochkin <fygrave@tigerteam.net>,
4
 
**                    Ofir Arkin       <ofir@sys-security.com>
5
 
**
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.
10
 
**
11
 
** All material for nonprofit, educational use only.
12
 
**
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.
17
 
**
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.
21
 
*/
22
 
 
23
 
#ifndef DEFINES_H
24
 
#define DEFINES_H
25
 
 
26
 
#ifndef VERSION
27
 
#define VERSION "0.0.1"
28
 
#endif
29
 
#define BANNER "X probe ver. "VERSION"\n------------------"
30
 
 
31
 
#define DATA_SIZE 20
32
 
#define DEF_TIMEOUT 10
33
 
#define PACKBUF_SIZ 1024
34
 
 
35
 
 
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)
39
 
 
40
 
#define UDP_CKSUM_BADDGRAM -1
41
 
#define UDP_CKSUM_ZERO      0
42
 
#define UDP_CKSUM_BAD       1
43
 
#define UDP_CKSUM_GOOD      2
44
 
 
45
 
/* we don't expect packets bigger than 1500 */
46
 
#define LPCAP_SNAPLEN       1500
47
 
#define LPCAP_TIMEOUT       2000
48
 
 
49
 
/* return values for ICMP_UNREACH length check */
50
 
 
51
 
#define ICMPUNREACH_LEN_OK  1
52
 
#define ICMPUNREACH_LEN_GT  2
53
 
#define ICMPUNREACH_LEN_LS  3
54
 
 
55
 
/* teturn values for frag bits test */
56
 
 
57
 
#define FRAG_BITS_OK        0
58
 
#define FRAG_BITS_FLIPPED   1
59
 
#define FRAG_BITS_ZERO      2
60
 
 
61
 
#endif /* DEFINES_H */