My impression after looking at this patch is that you can simplify it
using 'struct timeval' and use select() to wait for the time you need.
Hi Pablo
Sure, I can send a v3 with the select. Just to clarify, here is what the
patch does -
iptables -w 2.1
0.01s sleep, retry
0.02s sleep, retry
0.03s sleep, retry
...
2.1s sleep, exit
Note that it sleeps for 10ms and retries rather than sleeping for a
single iteration for 2.1s seconds and then retrying.
Let me know if there are any concerns with this.
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora
Forum, a Linux Foundation Collaborative Project.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html