File: meta.tc

package info (click to toggle)
tcng 10b-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,632 kB
  • ctags: 2,515
  • sloc: ansic: 19,038; pascal: 4,640; yacc: 2,619; sh: 1,908; perl: 1,546; lex: 772; makefile: 755
file content (36 lines) | stat: -rw-r--r-- 976 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
/*
 * Meta-field definitions for tcng
 *
 * Written 2002 by Werner Almesberger
 * Copyright 2002 Werner Almesberger
 */

#ifndef __INCLUDED_FROM_FIELDS_TC
#warning meta.tc should only be included from fields.tc
#endif

#ifndef META_TC
#define META_TC

/*
 * Numbering scheme:
 *
 * - different types of fields start at blocks beginning at distinct
 *   multiples of 1024 bytes
 * - individual fields start at distinct multiples of 32 bytes
 *
 * This numbering scheme ensures that tcc will not try to merge
 * adjacent meta-fields into a single access.
 *
 * It is recommended that programs implementing meta fields use the field
 * name as the primary key, and read this file to extract the offset and
 * the field length. See meta.pl for an example.
 * 
 */

field meta_protocol = __meta[0].ns;	/* protocol above link layer */

field meta_nfmark = __meta[1024].nl;	/* firewall mark */
field meta_tc_index = __meta[1056].ns;	/* traffic control index */

#endif /* META_TC */