~ubuntu-branches/ubuntu/hardy/prelude-manager/hardy

« back to all changes in this revision

Viewing changes to plugins/decodes/prelude-nids/passive-os-fingerprint.h

  • Committer: Bazaar Package Importer
  • Author(s): Mickael Profeta
  • Date: 2004-04-07 16:36:24 UTC
  • Revision ID: james.westby@ubuntu.com-20040407163624-atc9ndab836a8sx9
Tags: upstream-0.8.10
ImportĀ upstreamĀ versionĀ 0.8.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PASSIVE_OS_FINGERPRINT_H
 
2
#define _PASSIVE_OS_FINGERPRINT_H
 
3
 
 
4
/*****
 
5
*
 
6
* Copyright (C) 2002, 2003 Laurent Oudot <oudot.laurent@wanadoo.fr>
 
7
* All Rights Reserved
 
8
*
 
9
* This file is part of the Prelude program.
 
10
*
 
11
* This program is free software; you can redistribute it and/or modify
 
12
* it under the terms of the GNU General Public License as published by 
 
13
* the Free Software Foundation; either version 2, or (at your option)
 
14
* any later version.
 
15
*
 
16
* This program is distributed in the hope that it will be useful,
 
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
* GNU General Public License for more details.
 
20
*
 
21
* You should have received a copy of the GNU General Public License
 
22
* along with this program; see the file COPYING.  If not, write to
 
23
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
24
*
 
25
*****/
 
26
 
 
27
 
 
28
#include <inttypes.h>
 
29
#include <sys/types.h>
 
30
 
 
31
/* based on ettercap os fingerprint database */
 
32
/* WWWW:_MSS:TT:WS:S:N:D:T:F:LN */
 
33
 
 
34
#define FINGERPRINT_SIZE        28
 
35
 
 
36
typedef struct 
 
37
{
 
38
        int mss;
 
39
        int len;
 
40
        int wscale;
 
41
        
 
42
        uint16_t win;
 
43
        uint8_t ttl;
 
44
        uint8_t sackok;
 
45
        uint8_t nop;
 
46
        uint8_t df;
 
47
        uint32_t timestamp;
 
48
        uint8_t flags;
 
49
} pof_host_data_t;
 
50
 
 
51
 
 
52
void passive_os_fingerprint_zero(pof_host_data_t *p);
 
53
void passive_os_fingerprint_dump(idmef_alert_t *alert, pof_host_data_t *p);
 
54
 
 
55
#endif /* _PASSIVE_OS_FINGERPRINT_H */
 
56
 
 
57
 
 
58
 
 
59
 
 
60
 
 
61
 
 
62
 
 
63