This repository has been archived by the owner on Jun 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathnetmap.h
66 lines (53 loc) · 1.55 KB
/
netmap.h
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
/*
* This file is part of iouyap, a program to bridge IOU with
* network interfaces.
*
* Copyright (C) 2013, 2014 James E. Carpenter
*
* iouyap 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, either version 3 of the License, or
* (at your option) any later version.
*
* iouyap 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef NETMAP_H_
#define NETMAP_H_
#include <stdio.h>
#include "iouyap.h"
#define HT_SIZE 200
#define ID_MIN 1
#define ID_MAX 1024
#define SUBID_MIN 0
#define SUBID_MAX 15
#define PORT_MIN 0
#define PORT_MAX 255
#define BAY_MIN 0
#define BAY_MAX 15
#define UNIT_MIN 0
#define UNIT_MAX 15
extern node_t *iou_node_tmp;
extern FILE *yyin;
int parse_netmap (char *file);
int add_node (void);
void end_segment (void);
void delete_chain (list_head_t *chain);
#endif /* NETMAP_H_ */
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 2
* tab-width: 2
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=2 tabstop=2 expandtab:
* :indentSize=2:tabSize=2:noTabs=true:
*/