Luigi Rizzo 7173b6e554 Various cleanup done in ipfw3-head branch including:
- use a uniform mtag format for all packets that exit and re-enter
  the firewall in the middle of a rulechain. On reentry, all tags
  containing reinject info are renamed to MTAG_IPFW_RULE so the
  processing is simpler.

- make ipfw and dummynet use ip_len and ip_off in network format
  everywhere. Conversion is done only once instead of tracking
  the format in every place.

- use a macro FREE_PKT to dispose of mbufs. This eases portability.

On passing i also removed a few typos, staticise or localise variables,
remove useless declarations and other minor things.

Overall the code shrinks a bit and is hopefully more readable.

I have tested functionality for all but ng_ipfw and if_bridge/if_ethersubr.
For ng_ipfw i am actually waiting for feedback from glebius@ because
we might have some small changes to make.
For if_bridge and if_ethersubr feedback would be welcome
(there are still some redundant parts in these two modules that
I would like to remove, but first i need to check functionality).
2010-01-04 19:01:22 +00:00
..
2010-01-03 20:40:54 +00:00
2010-01-04 03:40:46 +00:00
2010-01-02 17:32:40 +00:00
2009-12-28 20:08:01 +00:00
2009-12-29 20:15:52 +00:00
2010-01-03 23:31:58 +00:00
2009-12-03 18:16:14 +00:00
2010-01-03 20:40:54 +00:00
2010-01-03 20:40:54 +00:00
2010-01-04 12:39:42 +00:00
2009-12-29 19:47:34 +00:00
2009-12-08 00:54:08 +00:00
2009-11-29 20:47:43 +00:00
2010-01-03 20:40:54 +00:00
2010-01-03 20:40:54 +00:00
2009-12-21 19:39:10 +00:00