File: fields.tc

package info (click to toggle)
tcng 10b-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,644 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (39 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (5)
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
/*
 * Field definitions for tcng
 *
 * Written 2001,2002 by Werner Almesberger
 * Copyright 2001 EPFL-ICA, Network Robots
 * Copyright 2002 Network Robots, Werner Almesberger
 */

/*
 * Note: the field definition language is not sufficient for all constructs
 * one may encounter in IP packets. In particular, it has no loops (e.g. for
 * IP or TCP options, or for IPv6). There should be some useful ideas in the
 * PAX PDL (http://www.research.solidum.com/papers/pax-pdl/pax-pdl-00.html)
 * that could added to future versions of this part of tcng.
 */


#ifndef FIELDS_TC
#define FIELDS_TC

#define __INCLUDED_FROM_FIELDS_TC

/*
 * fields4.tc and fields6.tc use values defined in values.tc, so include it
 * first
 */
#include "values.tc"

#include "meta.tc"

#include "fields4.tc"
#include "fields6.tc"

/* idiomatic.tc uses fields defined above, so include it last */
#include "idiomatic.tc"

#undef __INCLUDED_FROM_FIELDS_TC

#endif /* FIELDS_TC */