~ubuntu-branches/ubuntu/oneiric/nmap/oneiric

« back to all changes in this revision

Viewing changes to TargetGroup.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, fyodor, Davide
  • Date: 2008-05-31 22:55:14 UTC
  • mfrom: (1.2.10 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080531225514-dej22l1clq3nj2o3
Tags: 4.62-1
[fyodor]

* new upstream release

[Davide]

* create an desktop file for zenmap.  Closes: #457799
* remove useless file /usr/bin/uninstall_zenmap.  Closes: #474511

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 * These restrictions only apply when you actually redistribute Nmap.  For *
41
41
 * example, nothing stops you from writing and selling a proprietary       *
42
42
 * front-end to Nmap.  Just distribute it by itself, and point people to   *
43
 
 * http://insecure.org/nmap/ to download Nmap.                             *
 
43
 * http://nmap.org to download Nmap.                                       *
44
44
 *                                                                         *
45
45
 * We don't consider these to be added restrictions on top of the GPL, but *
46
46
 * just a clarification of how we interpret "derived works" as it applies  *
79
79
 * Source code also allows you to port Nmap to new platforms, fix bugs,    *
80
80
 * and add new features.  You are highly encouraged to send your changes   *
81
81
 * to fyodor@insecure.org for possible incorporation into the main         *
82
 
 * distribution.  By sending these changes to Fyodor or one the            *
 
82
 * distribution.  By sending these changes to Fyodor or one of the         *
83
83
 * Insecure.Org development mailing lists, it is assumed that you are      *
84
84
 * offering Fyodor and Insecure.Com LLC the unlimited, non-exclusive right *
85
85
 * to reuse, modify, and relicense the code.  Nmap will always be          *
99
99
 *                                                                         *
100
100
 ***************************************************************************/
101
101
 
102
 
/* $Id: TargetGroup.h 6633 2007-12-22 06:32:03Z fyodor $ */
 
102
/* $Id: TargetGroup.h 6858 2008-02-28 18:52:06Z fyodor $ */
103
103
 
104
104
#ifndef TARGETGROUP_H
105
105
#define TARGETGROUP_H
134
134
  char get_targets_type() {return targets_type;};
135
135
  /* get the netmask */
136
136
  int get_mask() {return netmask;};
 
137
  /* is the current expression a named host */
 
138
  int get_namedhost() {return namedhost;};
137
139
  /* Skip an octet in the range array */
138
140
  int skip_range(_octet_nums octet);
139
141
 private:
160
162
                  the fields are not valid */
161
163
  unsigned long ipsleft; 
162
164
 
 
165
  // is the current target expression a named host
 
166
  int namedhost;
163
167
};
164
168
 
165
169
class HostGroupState {