/[base]
ViewVC logotype

Revision 332400


Jump to revision: Previous Next
Author: ae
Date: Wed Apr 11 10:24:47 2018 UTC (6 years, 2 months ago)
Changed paths: 4
Log Message:
MFC r331668:
  Rework ipfw rules parsing and printing code.

  Introduce show_state structure to keep information about printed opcodes.
  Split show_static_rule() function into several smaller functions. Make
  parsing and printing opcodes into several passes. Each printed opcode
  is marked in show_state structure and will be skipped in next passes.
  Now show_static_rule() function is simple, it just prints each part
  of rule separately: action, modifiers, proto, src and dst addresses,
  options. The main goal of this change is avoiding occurrence of wrong
  result of `ifpw show` command, that can not be parsed by ipfw(8).
  Also now it is possible to make some simple static optimizations
  by reordering of opcodes in the rule.

  PR:		222705


Changed paths

Path Details
Directorystable/11/ modified , props changed
Directorystable/11/sbin/ipfw/ipfw2.c modified , text changed
Directorystable/11/sbin/ipfw/ipfw2.h modified , text changed
Directorystable/11/sbin/ipfw/main.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27