Fix compilation of ipt_time. Signed-off-by: Jan Engelhardt <jengelh@xxxxxx> Index: linux-2.6.21-rc5/net/ipv4/netfilter/ipt_time.c =================================================================== --- linux-2.6.21-rc5.orig/net/ipv4/netfilter/ipt_time.c +++ linux-2.6.21-rc5/net/ipv4/netfilter/ipt_time.c @@ -97,7 +97,6 @@ checkentry(const char *tablename, const struct xt_match *match, #endif void *matchinfo, - unsigned int matchsize, unsigned int hook_mask) { struct ipt_time_info *info = matchinfo; /* match info for rule */ @@ -127,9 +126,10 @@ checkentry(const char *tablename, return 1; } -static struct ipt_match time_match = { +static struct xt_match time_match = { .name = "time", .match = &match, + .family = AF_INET, #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) .matchsize = sizeof(struct ipt_time_info), #endif @@ -140,12 +140,12 @@ static struct ipt_match time_match = { static int __init init(void) { printk("ipt_time loading\n"); - return ipt_register_match(&time_match); + return xt_register_match(&time_match); } static void __exit fini(void) { - ipt_unregister_match(&time_match); + xt_unregister_match(&time_match); printk("ipt_time unloaded\n"); }