cvs commit: src/sys/net bridge.c if_ethersubr.c src/sys/netinet ip_fw.h ip_fw2.c ip_fw_pfil.c

Gleb Smirnoff glebius at FreeBSD.org
Fri Jan 14 01:00:47 PST 2005


glebius     2005-01-14 09:00:46 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bridge.c if_ethersubr.c 
    sys/netinet          ip_fw.h ip_fw2.c ip_fw_pfil.c 
  Log:
  o Clean up interface between ip_fw_chk() and its callers:
  
  - ip_fw_chk() returns action as function return value. Field retval is
    removed from args structure. Action is not flag any more. It is one
    of integer constants.
  - Any action-specific cookies are returned either in new "cookie" field
    in args structure (dummynet, future netgraph glue), or in mbuf tag
    attached to packet (divert, tee, some future action).
  
  o Convert parsing of return value from ip_fw_chk() in ipfw_check_{in,out}()
    to a switch structure, so that the functions are more readable, and a future
    actions can be added with less modifications.
  
  Approved by:    andre
  MFC after:      2 months
  
  Revision  Changes    Path
  1.88      +5 -3      src/sys/net/bridge.c
  1.181     +6 -4      src/sys/net/if_ethersubr.c
  1.96      +12 -4     src/sys/netinet/ip_fw.h
  1.87      +23 -26    src/sys/netinet/ip_fw2.c
  1.15      +74 -52    src/sys/netinet/ip_fw_pfil.c


More information about the cvs-src mailing list