Lines Matching +full:min +full:- +full:os +full:- +full:version

7  * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * xtables interface for OS fingerprint matching module.
38 printf("OS fingerprint match options:\n" in osf_help()
39 "[!] --genre string Match a OS genre by passive fingerprinting.\n" in osf_help()
40 "--ttl level Use some TTL check extensions to determine OS:\n" in osf_help()
44 "--log level Log determined genres into dmesg even if they do not match desired one:\n" in osf_help()
57 .flags = XTOPT_PUT, XTOPT_POINTER(s, ttl), .min = 0, .max = 2},
59 .flags = XTOPT_PUT, XTOPT_POINTER(s, loglevel), .min = 0, .max = 2},
66 struct xt_osf_info *info = cb->data; in osf_parse()
69 switch (cb->entry->id) { in osf_parse()
71 if (cb->invert) in osf_parse()
72 info->flags |= XT_OSF_INVERT; in osf_parse()
73 info->len = strlen(info->genre); in osf_parse()
76 info->flags |= XT_OSF_TTL; in osf_parse()
79 info->flags |= XT_OSF_LOG; in osf_parse()
86 const struct xt_osf_info *info = (const struct xt_osf_info*) match->data; in osf_print()
88 printf(" OS fingerprint match %s%s", (info->flags & XT_OSF_INVERT) ? "! " : "", info->genre); in osf_print()
93 const struct xt_osf_info *info = (const struct xt_osf_info*) match->data; in osf_save()
95 if (info->flags & XT_OSF_INVERT) in osf_save()
98 printf(" --genre %s", info->genre); in osf_save()
99 if (info->flags & XT_OSF_TTL) in osf_save()
100 printf(" --ttl %u", info->ttl); in osf_save()
101 if (info->flags & XT_OSF_LOG) in osf_save()
102 printf(" --log %u", info->loglevel); in osf_save()
107 .version = XTABLES_VERSION,