Major cleanup of the base IPFilter:
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 28 Jul 2004 00:22:37 +0000 (00:22 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 28 Jul 2004 00:22:37 +0000 (00:22 +0000)
commit91865926d06a41f4e0e1d3fc8277608af2fdc290
tree150c63e44fc5dd9292c338e3b1a702f776469ea8
parent5499346e7c6089c1eada10e68808620277b3a85e
Major cleanup of the base IPFilter:

o Vendor's ChangeLog available in src/contrib/ipfilter/HISTORY.

o Update kernel and userland to version 3.4.35, major changes:

    * only allow non-fragmented packets to influence whether or
      not a logged packet is the same as the one logged before.

    * block packets that fail to create stable entries.

    * correct the ICMP packet checksum fixing up when processing
      ICMP errors for NAT.

    * implement a maximum for the number of entries in the NAT
      table (NAT_TABLE_MAX and ipf_nattable_max).

    * frsynclist() wasn't paying attention to all places where
      interface names are, like it should.

    * fix comparison of ICMP packets with established TCP state
      where only 8 bytes of header are returned in the ICMP
      error.

o Following files were removed from under src/contrib/ipfilter,
  because they were redundant:

      fil.c ip_auth.c ip_auth.h ip_compat.h ip_fil.c ip_fil.h
      ip_frag.c ip_frag.h ip_ftp_pxy.c ip_log.c ip_nat.c
      ip_nat.h ip_proxy.c ip_proxy.h ip_raudio_pxy.c ip_rcmd_pxy.c
      ip_state.c ip_state.h ipl.h mlfk_ipl.c

o Cast interface numbers to u_int instead of u_char, so that
  big numbered units don't get truncated. More information on
  this problem can be found at FreeBSD GNATS, PR kern/64584.

o Compile INET6 support into ipfilter unless NOINET6 is defined
  as Make variable.

o Update $FreeBSD$ CVS ID tags.

o Adjust minor style(9) changes, like prototypes, etc.

Tested by David Rhodus, Chris Beuchler and Chris Pressey.

Reviewed-by: Darren Reed <darrenr@freebsd.org> (earlier version)
             Matthew Dillon <dillon@apollo.backplane.com>
98 files changed:
contrib/ipfilter/BSD/kupgrade
contrib/ipfilter/HISTORY
contrib/ipfilter/Makefile
contrib/ipfilter/common.c
contrib/ipfilter/fil.c [deleted file]
contrib/ipfilter/fils.c
contrib/ipfilter/ip_auth.c [deleted file]
contrib/ipfilter/ip_auth.h [deleted file]
contrib/ipfilter/ip_compat.h [deleted file]
contrib/ipfilter/ip_fil.c [deleted file]
contrib/ipfilter/ip_fil.h [deleted file]
contrib/ipfilter/ip_frag.c [deleted file]
contrib/ipfilter/ip_frag.h [deleted file]
contrib/ipfilter/ip_ftp_pxy.c [deleted file]
contrib/ipfilter/ip_log.c [deleted file]
contrib/ipfilter/ip_nat.c [deleted file]
contrib/ipfilter/ip_nat.h [deleted file]
contrib/ipfilter/ip_proxy.c [deleted file]
contrib/ipfilter/ip_proxy.h [deleted file]
contrib/ipfilter/ip_raudio_pxy.c [deleted file]
contrib/ipfilter/ip_rcmd_pxy.c [deleted file]
contrib/ipfilter/ip_sfil.c
contrib/ipfilter/ip_state.c [deleted file]
contrib/ipfilter/ip_state.h [deleted file]
contrib/ipfilter/ipf.c
contrib/ipfilter/ipf.h
contrib/ipfilter/ipfs.c
contrib/ipfilter/ipft_ef.c
contrib/ipfilter/ipft_td.c
contrib/ipfilter/ipl.h [deleted file]
contrib/ipfilter/iplang/iplang_l.l
contrib/ipfilter/ipmon.c
contrib/ipfilter/ipnat.c
contrib/ipfilter/ipsend/ipsend.1
contrib/ipfilter/ipsend/ipsend.c
contrib/ipfilter/ipsend/ipsopt.c
contrib/ipfilter/ipt.c
contrib/ipfilter/kmem.c
contrib/ipfilter/man/ipf.5
contrib/ipfilter/man/ipf.8
contrib/ipfilter/man/ipfstat.8
contrib/ipfilter/man/ipl.4
contrib/ipfilter/man/ipmon.8
contrib/ipfilter/man/ipnat.5
contrib/ipfilter/mlfk_ipl.c [deleted file]
contrib/ipfilter/mln_ipl.c
contrib/ipfilter/natparse.c
contrib/ipfilter/parse.c
contrib/ipfilter/printnat.c
contrib/ipfilter/printstate.c
contrib/ipfilter/test/Makefile
contrib/ipfilter/test/dotest
contrib/ipfilter/test/dotest6
contrib/ipfilter/test/expected/in1
contrib/ipfilter/test/expected/ni1
contrib/ipfilter/test/expected/ni2
contrib/ipfilter/test/expected/ni3
contrib/ipfilter/test/expected/ni4
contrib/ipfilter/test/expected/ni5
contrib/ipfilter/test/hextest
contrib/ipfilter/test/input/f13
contrib/ipfilter/test/input/f17
contrib/ipfilter/test/input/ni1
contrib/ipfilter/test/input/ni2
contrib/ipfilter/test/input/ni3
contrib/ipfilter/test/input/ni4
contrib/ipfilter/test/input/ni5
contrib/ipfilter/test/intest
contrib/ipfilter/test/itest
contrib/ipfilter/test/logtest
contrib/ipfilter/test/mhtest
contrib/ipfilter/test/mtest
contrib/ipfilter/test/natipftest
contrib/ipfilter/test/nattest
contrib/ipfilter/test/regress/in1
sbin/ipf/Makefile
sbin/ipfstat/Makefile
sbin/ipnat/Makefile
sys/contrib/ipfilter/netinet/fil.c
sys/contrib/ipfilter/netinet/ip_compat.h
sys/contrib/ipfilter/netinet/ip_fil.c
sys/contrib/ipfilter/netinet/ip_fil.h
sys/contrib/ipfilter/netinet/ip_frag.c
sys/contrib/ipfilter/netinet/ip_frag.h
sys/contrib/ipfilter/netinet/ip_ftp_pxy.c
sys/contrib/ipfilter/netinet/ip_log.c
sys/contrib/ipfilter/netinet/ip_nat.c
sys/contrib/ipfilter/netinet/ip_nat.h
sys/contrib/ipfilter/netinet/ip_raudio_pxy.c
sys/contrib/ipfilter/netinet/ip_rcmd_pxy.c
sys/contrib/ipfilter/netinet/ip_state.c
sys/contrib/ipfilter/netinet/ip_state.h
sys/contrib/ipfilter/netinet/ipl.h
sys/net/ipfilter/Makefile
usr.sbin/ipftest/Makefile
usr.sbin/ipresend/Makefile
usr.sbin/ipsend/Makefile
usr.sbin/iptest/Makefile