aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw/ipfw2.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2017-04-03 03:07:48 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2017-04-03 03:07:48 +0000
commitaac74aeac76d148e852630a740403818f749a87b (patch)
tree15876d350a4e90d0fa47a2e832127ed426cfe687 /sbin/ipfw/ipfw2.h
parent11c56650f057c4e91f7d39f38000847e4e000619 (diff)
downloadsrc-aac74aeac76d148e852630a740403818f749a87b.tar.gz
src-aac74aeac76d148e852630a740403818f749a87b.zip
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 MFC after: 2 weeks Relnotes: yes Sponsored by: Yandex LLC No objection from: #network Differential Revision: https://reviews.freebsd.org/D10150
Notes
Notes: svn path=/head/; revision=316435
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 0b63e3ba4294..13018f899db3 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,
};
/*