]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add "tcpmss" opcode to match the TCP MSS value.
authorae <ae@FreeBSD.org>
Fri, 21 Jun 2019 10:54:51 +0000 (10:54 +0000)
committerae <ae@FreeBSD.org>
Fri, 21 Jun 2019 10:54:51 +0000 (10:54 +0000)
commitc6d750cdc7006255ce3702dea338d6c47d9e5c39
tree3b4f2ef29d6880a58db7336fbeb58e824605f079
parent5b2895d685cc9e708a1fabc6acd2f25460e43526
Add "tcpmss" opcode to match the TCP MSS value.

With this opcode it is possible to match TCP packets with specified
MSS option, whose value corresponds to configured in opcode value.
It is allowed to specify single value, range of values, or array of
specific values or ranges. E.g.

 # ipfw add deny log tcp from any to any tcpmss 0-500

Reviewed by: melifaro,bcr
Obtained from: Yandex LLC
MFC after: 1 week
Sponsored by: Yandex LLC
sbin/ipfw/ipfw.8
sbin/ipfw/ipfw2.c
sbin/ipfw/ipfw2.h
sys/netinet/ip_fw.h
sys/netpfil/ipfw/ip_fw2.c
sys/netpfil/ipfw/ip_fw_sockopt.c