summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/ipfw2.h
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2017-04-17 09:42:05 +0000
committerLuiz Souza <luiz@netgate.com>2017-07-15 11:21:31 -0500
commit41eeaa7c0777efd001a354c9c43ede0311edd881 (patch)
tree54f72494685abf1767847c384e58ed3795ead83f /sbin/ipfw/ipfw2.h
parent98f18ec42aa161b14aef9626e9120aad27c5cc93 (diff)
downloadFreeBSD-src-41eeaa7c0777efd001a354c9c43ede0311edd881.zip
FreeBSD-src-41eeaa7c0777efd001a354c9c43ede0311edd881.tar.gz
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 (cherry picked from commit fed97f3094ee0c71bc2ae864dce888257108122c)
Diffstat (limited to 'sbin/ipfw/ipfw2.h')
-rw-r--r--sbin/ipfw/ipfw2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw2.h b/sbin/ipfw/ipfw2.h
index a311458..0218a4a 100644
--- a/sbin/ipfw/ipfw2.h
+++ b/sbin/ipfw/ipfw2.h
@@ -284,6 +284,8 @@ enum tokens {
TOK_INTPREFIX,
TOK_EXTPREFIX,
TOK_PREFIXLEN,
+
+ TOK_TCPSETMSS,
};
/*
OpenPOWER on IntegriCloud