tpws: check for kernel version in fixseg

This commit is contained in:
bol-van
2024-11-19 13:59:46 +03:00
parent 19e7fca627
commit e12dd237c2
4 changed files with 27 additions and 2 deletions

View File

@@ -1236,6 +1236,11 @@ void parse_params(int argc, char *argv[])
}
break;
case 65: /* fix-seg */
if (!socket_supports_notsent())
{
DLOG_ERR("--fix-seg is supported since kernel 4.6\n");
exit_clean(1);
}
if (optarg)
{
i = atoi(optarg);