-static struct xt_match xt_connmark_match[] = {
- {
- .name = "connmark",
- .family = AF_INET,
- .checkentry = checkentry,
- .match = match,
- .destroy = destroy,
- .matchsize = sizeof(struct xt_connmark_info),
-#ifdef CONFIG_COMPAT
- .compatsize = sizeof(struct compat_xt_connmark_info),
- .compat_from_user = compat_from_user,
- .compat_to_user = compat_to_user,
-#endif
- .me = THIS_MODULE
- },
- {
- .name = "connmark",
- .family = AF_INET6,
- .checkentry = checkentry,
- .match = match,
- .destroy = destroy,
- .matchsize = sizeof(struct xt_connmark_info),
- .me = THIS_MODULE
- },
+static struct xt_match connmark_mt_reg __read_mostly = {
+ .name = "connmark",
+ .revision = 1,
+ .family = NFPROTO_UNSPEC,
+ .checkentry = connmark_mt_check,
+ .match = connmark_mt,
+ .matchsize = sizeof(struct xt_connmark_mtinfo1),
+ .destroy = connmark_mt_destroy,
+ .me = THIS_MODULE,