Re: Passive OS fingerprint xtables match (iptables)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Tuesday, March 10, 2009 - 9:12 am

>static void osf_init(struct xt_entry_match *m)
You can remove this function, as it does no initialization.
Implicit NULL in struct xtables_match is handled.


This would allow specifying --ttl 12345.

Use of xtables_strtoui (v1.4.3-rc1+git) for bounds checking,
and use of optarg seem beneficial:

	unsigned int num;

	if (!xtables_strtoui(optarg, NULL, &num, 0, UINT8_MAX))
		exit_error(PARAMETER_PROBLEM, "*shrug*");
	info->ttl = num;


similarly.


Needs .family = NFPROTO_IPV4.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Passive OS fingerprint xtables match., Evgeniy Polyakov, (Tue Mar 10, 8:13 am)
Re: Passive OS fingerprint xtables match., Evgeniy Polyakov, (Tue Mar 10, 9:01 am)
Re: Passive OS fingerprint xtables match., Jan Engelhardt, (Tue Mar 10, 9:07 am)
Re: Passive OS fingerprint xtables match (iptables), Jan Engelhardt, (Tue Mar 10, 9:12 am)
Re: Passive OS fingerprint xtables match., Jesper Dangaard Brouer, (Tue Mar 10, 2:01 pm)
Re: Passive OS fingerprint xtables match., Evgeniy Polyakov, (Tue Mar 10, 2:54 pm)
Re: Passive OS fingerprint xtables match., Pablo Neira Ayuso, (Wed Mar 11, 2:54 am)
Re: Passive OS fingerprint xtables match., Evgeniy Polyakov, (Wed Mar 11, 3:00 am)
Re: Passive OS fingerprint xtables match., Evgeniy Polyakov, (Wed Mar 11, 2:43 pm)
Re: Passive OS fingerprint xtables match., Patrick McHardy, (Mon Mar 16, 7:40 am)
Re: Passive OS fingerprint xtables match., Patrick McHardy, (Mon Mar 16, 7:42 am)