This file is indexed.

/usr/include/scamper_list.h is in libscamperfile0-dev 20140122-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
 * scamper_list.h
 *
 * $Id: scamper_list.h,v 1.7 2011/09/16 03:15:44 mjl Exp $
 *
 * Copyright (C) 2005-2006 Matthew Luckie
 * Copyright (C) 2006-2008 The University of Waikato
 * Author: Matthew Luckie
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef __SCAMPER_LIST_H
#define __SCAMPER_LIST_H

/*
 * scamper_list:
 *
 * details regarding a list that was fed into scamper for probing.
 *
 * id:       some ID assigned to identify the list by a person
 * name:     the name assigned to the list
 * monitor:  the (optional) canonical name of the monitor
 * descr:    optional free-form text describing the list somehow.
 * refcnt:   a count of references to an instance of this struct
 */
typedef struct scamper_list
{
  uint32_t  id;
  char     *name;
  char     *descr;
  char     *monitor;
  int       refcnt;
} scamper_list_t;

/*
 * scamper_cycle:
 *
 * details of the cycle that scamper is currently making over the list.
 *
 * list:       the list id of the cycle.
 * id:         the cycle id.
 * start_time: time at which cycle began, seconds since the epoch
 * stop_time:  time at which cycle ended, seconds since the epoch
 * hostname:   optional record of the hostname at the beginning of the cycle.
 * refcnt:     a count of references to an instance of this struct
 */
typedef struct scamper_cycle
{
  scamper_list_t *list;
  uint32_t        id;
  uint32_t        start_time;
  uint32_t        stop_time;
  char           *hostname;
  int             refcnt;
} scamper_cycle_t;

/*
 * scamper_[list|cycle]_[alloc|use|free]
 *
 * in order to prevent list and cycle objects from being copied many times
 * for use by data objects, we use a reference counter in each structure
 * so that it is allocated just the once.
 */
scamper_list_t *scamper_list_alloc(const uint32_t id, const char *name,
				   const char *descr, const char *monitor);
scamper_list_t *scamper_list_use(scamper_list_t *list);
void scamper_list_free(scamper_list_t *list);
int scamper_list_cmp(const scamper_list_t *a, const scamper_list_t *b);

scamper_cycle_t *scamper_cycle_alloc(scamper_list_t *list);
scamper_cycle_t *scamper_cycle_use(scamper_cycle_t *cycle);
void scamper_cycle_free(scamper_cycle_t *cycle);
int scamper_cycle_cmp(scamper_cycle_t *a, scamper_cycle_t *b);

#endif /* __SCAMPER_LIST_H */