On Sun, 14 Oct 2007, Jan Engelhardt wrote:
This version folds in tcp option descriptions.
=== Patch begins here ===
Add libxt_TCPOPTSTRIP.
Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
<CUT>
+struct tcp_optionmap {
+ const char *name, *desc;
+ const int option;
+};
+
+static const struct option tcpoptstrip_opts[] = {
+ {"strip-options", true, NULL, '0'},
+ {NULL},
+};
+
+static const struct tcp_optionmap tcp_optionmap[] = {
+ {"wscale", "Window scale", TCPOPT_WINDOW},
+ {"mss", "Maximum Segment Size", TCPOPT_MAXSEG},
+ {"sack-permitted", "SACK permitted", TCPOPT_SACK_PERMITTED},
+ {"sack", "Selective ACK", TCPOPT_SACK},
+ {"timestamp", "Timestamp", TCPOPT_TIMESTAMP},
+ {"md5", "MD5 signature", TCPOPT_MD5SIG},
+ {NULL},
+};
Ahh, good. Thank you for considering my suggestions.
Just cosmetic: what about making it up to
http://www.iana.org/assignments/tcp-parameters:
s/Window scale/Window Scale/
s/SACK permitted/SACK Permitted/
s/MD5 signature/MD5 Signature/
Best regards,
Krzysztof Olędzki