diff options
author | laforge <laforge> | 2004-01-05 15:42:38 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-01-05 15:42:38 +0000 |
commit | 41b0756460701feb9ba5620c7c44a8db7f4c5711 (patch) | |
tree | 974ab82ef94ea703041adb1d7b2412a46b88c494 /extensions | |
parent | 6c2ea30f35c5e3d88268a8162d4a58dbf4d76295 (diff) |
fix deleting of time rules (SooYoun Cho) (Closes: #169)
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/libipt_time.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/libipt_time.c b/extensions/libipt_time.c index 909ca81..69c3570 100644 --- a/extensions/libipt_time.c +++ b/extensions/libipt_time.c @@ -291,13 +291,15 @@ save(const struct ipt_ip *ip, const struct ipt_entry_match *match) printf(" "); } +/* have to use offsetof() instead of IPT_ALIGN(), since kerneltime must not + * be compared when user deletes rule with '-D' */ static struct iptables_match timestruct = { NULL, "time", IPTABLES_VERSION, IPT_ALIGN(sizeof(struct ipt_time_info)), - IPT_ALIGN(sizeof(struct ipt_time_info)), + offsetof(struct ipt_time_info, kerneltime), &help, &init, &parse, |