]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r316435:
authorae <ae@FreeBSD.org>
Mon, 17 Apr 2017 09:42:05 +0000 (09:42 +0000)
committerae <ae@FreeBSD.org>
Mon, 17 Apr 2017 09:42:05 +0000 (09:42 +0000)
commitfed97f3094ee0c71bc2ae864dce888257108122c
tree183af123a8e5234f5555cf59f3154a14ffa856ae
parent93c66f329a5c7a8161ceef873184cc5c7b69431c
MFC r316435:
  Add ipfw_pmod kernel module.

  The module is designed for modification of a packets of any protocols.
  For now it implements only TCP MSS modification. It adds the external
  action handler for "tcp-setmss" action.

  A rule with tcp-setmss action does additional check for protocol and
  TCP flags. If SYN flag is present, it parses TCP options and modifies
  MSS option if its value is greater than configured value in the rule.
  Then it adjustes TCP checksum if needed. After handling the search
  continues with the next rule.

  Obtained from: Yandex LLC
  Relnotes: yes
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D10150
sbin/ipfw/ipfw.8
sbin/ipfw/ipfw2.c
sbin/ipfw/ipfw2.h
sys/conf/NOTES
sys/conf/files
sys/conf/options
sys/modules/Makefile
sys/modules/ipfw_pmod/Makefile [new file with mode: 0644]
sys/netpfil/ipfw/pmod/ip_fw_pmod.c [new file with mode: 0644]
sys/netpfil/ipfw/pmod/pmod.h [new file with mode: 0644]
sys/netpfil/ipfw/pmod/tcpmod.c [new file with mode: 0644]