vde_autolink: Add missing null entry in getopt_long array.
[vde.git] / vde-2 / src / vde_over_ns / pstack.h
blob87396750fb049afbcc122ca2d3eac6727f81ce50
1 /* ----------------------------------------------------------------------------
3 VDE_OVER_NS
4 (C) 2007 Daniele Lacamera
6 Derived from:
7 NSTX -- tunneling network-packets over DNS
9 (C) 2000 by Florian Heinz and Julien Oster
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License version 2, as
13 published by the Free Software Foundation.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 -------------------------------------------------------------------------- */
25 #ifndef _NSTXHDR_H
26 #error "Include nstx.h first"
27 #endif
29 #ifndef NSTX_PSTACK_H
30 #define NSTX_PSTACK_H
32 struct clist
34 int seq;
36 char *data;
37 int len;
38 struct clist *next;
41 struct nstx_item {
42 struct nstx_item *next;
43 struct nstx_item *prev;
45 unsigned short id;
46 unsigned int timestamp;
47 int frc;
49 struct clist *chunks;
52 struct nstx_senditem {
53 struct nstx_senditem *next;
55 unsigned char *data;
56 int id;
57 int len;
58 int offset;
59 int seq;
62 void nstx_handlepacket(const char *, size_t,
63 void(*)(const char*, size_t));
64 void init_pstack(int len);
66 #endif