tcng version 8w

Werner Almesberger
Fri, 13 Sep 2002 07:46:10 -0000

... is on SourceForge, http://tcng.sourceforge.net/#src

This one has the first steps towards getting non-IPv4 classification
right:

 - I''ve added fields for skb meta-data (meta_protocol, etc.)
 - if USE_META_PROTOCOL is #defined (tcc -D... or tcsim -Xc,-D...),
   ip_hdr and ip6_hdr check the protocol number
 - if_u32 generates distinct classifier branches for each protocol
 - f_fw, f_tcindex, and f_u32 now default to ETH_P_ALL instead of
   ETH_P_IP

The latter change affects how u32 classification works !
tests/protu32 illustrates how protocol-aware classification
is used.

What''s missing:

 - C and tcc-ext-match need to support meta_protocol too
 - if_u32 does a few ugly things, and can also generate redundant
   filter stubs
 - remove USE_META_PROTOCOL :-)

The next version will make meta data classification visible at the
external interface, so if you''re using this interface, this change
will probably break your program. If you don''t want to add support
for meta fields to your program right now, you can simply work
around the problem by redefinition ip_hdr and ip6_hdr to their old
values (i.e. remove the if ... clause).

The full change log is below.

- Werner

---------------------------------- cut here -----------------------------------

Version 8w (13-SEP-2002)
------------------------

- added root of meta fields (__meta) and definitions for meta-fields in meta.tc
  (included via fields.tc)
- added some layer > 2 protocol numbers to values.tc
- tcsim''s send command now has a "protocol" attribute
(default: ETH_P_IP)
- updated documentation according to above changes
- ip_hdr and ip6_hdr now check meta_protocol if USE_META_PROTOCOL is #defined
- added protocol selection support to if_u32.c (tests/protu32)
- filters fw, tcindex, and u32, now default to ETH_P_ALL instad of ETH_P_IP
- updated tests/cbqroot, tests/egress, tests/named, tests/selpath,
  tests/selpathcbq, tests/selpathdup, and tests/setpathgred accordingly
- configure now detects and prints kernel extra version (e.g. pre7)

--
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/